Difference between revisions of "Oracle"
Line 4: | Line 4: | ||
Make sure you have ORADEV account. If you do not have ORADEV account password, | Make sure you have ORADEV account. If you do not have ORADEV account password, | ||
− | + | * sign in to Oracle Identity Manager | |
− | + | * My Access - Accounts - Windows Unified Domain - Reset Password. | |
(or create account) | (or create account) | ||
Line 14: | Line 14: | ||
get Kerberos ticket | get Kerberos ticket | ||
− | > ade okinit | + | <pre>ade okinit</pre> |
create ADE view | create ADE view | ||
− | > ade createview YOURVIEWNAME -series BIFNDN_MAIN_WINDOWS.X64 -populated | + | <pre>ade createview YOURVIEWNAME -series BIFNDN_MAIN_WINDOWS.X64 -populated</pre> |
use ADE view | use ADE view | ||
− | > ade useview YOURVIEWNAME | + | <pre>ade useview YOURVIEWNAME</pre> |
Start IDE - inside your view | Start IDE - inside your view | ||
− | > cd C:\ADE\YOURVIEWNAME\bifndn\analytics_web\main | + | <pre> |
− | + | cd C:\ADE\YOURVIEWNAME\bifndn\analytics_web\main | |
+ | startide.bat | ||
+ | </pre> | ||
Using Command Line (sawbuild.bat) to build - inside your view | Using Command Line (sawbuild.bat) to build - inside your view | ||
− | > cd C:\ADE\YOURVIEWNAME\bifndn\analytics_web\main | + | <pre> |
− | + | cd C:\ADE\YOURVIEWNAME\bifndn\analytics_web\main | |
− | |||
sawbuild bipsmatsbuildlite (for debug version, "sawbuild r bipsmatsbuildlite" for release version) | sawbuild bipsmatsbuildlite (for debug version, "sawbuild r bipsmatsbuildlite" for release version) | ||
sawbuild preparemats | sawbuild preparemats | ||
setenv | setenv | ||
sawserverD -updateGuidAndStart | sawserverD -updateGuidAndStart | ||
+ | </pre> | ||
== Running BI on your browser == | == Running BI on your browser == | ||
Line 41: | Line 43: | ||
Go to tomcat directory C:\Program Files\Apache Software Foundation\Tomcat 7.0\conf\Catalina\localhost and create a file tyun.xml. | Go to tomcat directory C:\Program Files\Apache Software Foundation\Tomcat 7.0\conf\Catalina\localhost and create a file tyun.xml. | ||
+ | <pre> | ||
## tyun.xml ### | ## tyun.xml ### | ||
<Context docBase="C:/ADE/tyun_view/bifndn/analytics_web/main/app-link" /> | <Context docBase="C:/ADE/tyun_view/bifndn/analytics_web/main/app-link" /> | ||
############ | ############ | ||
+ | </pre> | ||
Open browser and go to http://localhost:8080/tyun | Open browser and go to http://localhost:8080/tyun | ||
Line 53: | Line 57: | ||
Setting up and Using Visual Studio (8/13/2013) | Setting up and Using Visual Studio (8/13/2013) | ||
− | + | * Indentation | |
Tool - Options - All Languages - Tab | Tool - Options - All Languages - Tab | ||
− | + | Tab size: 3 | |
− | + | Indent size: 3 | |
and check "Insert spaces". | and check "Insert spaces". | ||
− | + | * Shortcuts | |
Ctrl + F7: compile only this file | Ctrl + F7: compile only this file | ||
− | + | * Adding breakpoints | |
right click on the desired position - breakpoint - Insert breakpoint | right click on the desired position - breakpoint - Insert breakpoint | ||
− | + | * Adding a subSystem (called hello) | |
Inside C:\ADE\tyun_view\bifndn\analytics_web\main\project\websubsystems\sssearch.cpp, | Inside C:\ADE\tyun_view\bifndn\analytics_web\main\project\websubsystems\sssearch.cpp, | ||
Line 84: | Line 88: | ||
and add the following in an appropriate location | and add the following in an appropriate location | ||
+ | <pre> | ||
// hello world | // hello world | ||
SAW_ADD_HTTPCOMMAND(rRegistrar,hello, SearchSubsystem, kNormalCall); | SAW_ADD_HTTPCOMMAND(rRegistrar,hello, SearchSubsystem, kNormalCall); | ||
+ | </pre> | ||
Now define the function inside a header file sssearch.h in the same directory: | Now define the function inside a header file sssearch.h in the same directory: | ||
+ | <pre> | ||
//hello world | //hello world | ||
void hello(NQHttpStream & rStream, const saw::Handle<ClientSession>& hClientSession, const saw::HttpArgs & rArgs); | void hello(NQHttpStream & rStream, const saw::Handle<ClientSession>& hClientSession, const saw::HttpArgs & rArgs); | ||
+ | </pre> |
Revision as of 15:48, 21 August 2013
Setting Up Hosted Windows Dev Environment
Use "Microsoft Windows 2008 Enterprise R2 (Intel x64, Developer)" image for your hosted machine. (Need MSDN license.)
Make sure you have ORADEV account. If you do not have ORADEV account password,
- sign in to Oracle Identity Manager
- My Access - Accounts - Windows Unified Domain - Reset Password.
(or create account)
Log-on using remote desktop (run "mstsc"). username: ORADEV\YOURGLOBALID
Run Visual Studio 2010 X64 Command Prompt (Administrator).
get Kerberos ticket
ade okinit
create ADE view
ade createview YOURVIEWNAME -series BIFNDN_MAIN_WINDOWS.X64 -populated
use ADE view
ade useview YOURVIEWNAME
Start IDE - inside your view
cd C:\ADE\YOURVIEWNAME\bifndn\analytics_web\main startide.bat
Using Command Line (sawbuild.bat) to build - inside your view
cd C:\ADE\YOURVIEWNAME\bifndn\analytics_web\main sawbuild bipsmatsbuildlite (for debug version, "sawbuild r bipsmatsbuildlite" for release version) sawbuild preparemats setenv sawserverD -updateGuidAndStart
Running BI on your browser
Install tomcat 7.0 (everything default, username/pass: admin/admin)
Go to tomcat directory C:\Program Files\Apache Software Foundation\Tomcat 7.0\conf\Catalina\localhost and create a file tyun.xml.
## tyun.xml ### <Context docBase="C:/ADE/tyun_view/bifndn/analytics_web/main/app-link" /> ############
Open browser and go to http://localhost:8080/tyun
log in Administrator / Admin123
Visual Studio Set-ups and Tips
Setting up and Using Visual Studio (8/13/2013)
- Indentation
Tool - Options - All Languages - Tab Tab size: 3 Indent size: 3 and check "Insert spaces".
- Shortcuts
Ctrl + F7: compile only this file
- Adding breakpoints
right click on the desired position - breakpoint - Insert breakpoint
- Adding a subSystem (called hello)
Inside C:\ADE\tyun_view\bifndn\analytics_web\main\project\websubsystems\sssearch.cpp,
define function:
// hello world void SearchSubsystem::hello(NQHttpStream & httpStream, const saw::Handle<ClientSession>& hClientSession, const HttpArgs & rArgs) { NQWString hello = L"hello world"; httpStream << hello; }
and add the following in an appropriate location
// hello world SAW_ADD_HTTPCOMMAND(rRegistrar,hello, SearchSubsystem, kNormalCall);
Now define the function inside a header file sssearch.h in the same directory:
//hello world void hello(NQHttpStream & rStream, const saw::Handle<ClientSession>& hClientSession, const saw::HttpArgs & rArgs);