You are on page 1of 11

HowtoinstallOracleApex4.0onOracleDatabase11gEERelease2 Preparedby: MKamalHossain dbhossain@yahoo.

com

Wecandivideourtotalinstallationintotwophases: OracleDatabase11gInstallation: DownloadtheOracledatabase11gEER2fromOracleOfficialsite: http://www.oracle.com/technology/software/products/database/index.html Or http://otn.oracle.com Youwillgettwoseparatefilesfromdownloadsource. File1andFile2 AfterdownloadingFile1youwillgetaZippedfileinitnamedwin32_11gR2_database_1of2 andforFile2youwillgetwin32_11gR2_database_2of2 Note:ifyoudownloadfor64bitthenitwillshowwin64andfor32bititwillshowwin32 Nowyouhavetounzipandstartinstallation,Unzippinglittlebittrickyhere.Duringinstallation youwillhavechancestogetsomeerrormessageofMissingfiles.Sotoavoidthiserrormessage andcompletingtheinstallationprocesssmoothlyfollowthebelowprocess: CreateaFoldernamedOracle11gEER2andmakeasubfolderintoitnamedOracle. ItwilllookasF:\Oracle11gEER2\Oracle Nowunzipfolderwin32_11gR2_database_1of1fromFile1.Afterunzippingopenthisfolder. NowcopyallthecontentsunderthisfolderandpasteintoOraclesubfolder.So,finallyyour File1contentwillresideas: InstallationofOracleDatabase11g InstallationofOracleApplicationExpress(4.0)

F:\Oracle11gEER2\Oracle\database Andwhenyouclickthisdatabasefolderitshouldshowbelowcontents:

Fig:1 NowtimetounzipFile2.NowunzipFile2andopenthisunzipfolderandgoto Database>Stage>Components: Nowcopytheentirefolderunderthisdirectoryandgoto asF:\Oracle11gEER2\Oracle\database\stage\Components:

Fig:2 NowpasteintothisdirectoryasshowninFig2

ThatmeansyouhavemovedtheentirecontentofComponentsfolderfromFile2(after unzipping)toComponentfolderoffile1(afterunzipping). NowyouhavegotyourcompleteOracleDatabase11gEER2Softwareinasinglefile. Nowopensetup.exefromOracleDatabase11gEER2/databasefolderandcontinuethe installationprocess.

Fig:4showingtheapexfolderthatcreatedautomaticallywhenOracle11gEER2installed successfully. Note: AftersuccessfullyinstallationofOracledatabase11gEER2,Apexinstalledandconfigured automaticallyandthatversionis3.0(asshowninfig4).Ifversion3.0isenoughtomeetthe Applicationdevelopmentdemandthenneednottoinstallapex4.0,buthereIassumeApex4.0 isamusttomeetcurrentdemand.So,IamgoingtoinstallApex4.0inthebelowsteps. Apex4.0Installation:

NowdownloadApex4.0fromhttp://apex.oracle.comorhttp://otn.oracle.com Afterdownloadingunzipandkeepinthedirectoryas: F:\apex_4.0_en\Apex NowyouhavetoopenthecommandpromptandloginasSYSwithSYSDBAprivilege Asshowninthefig3

Fig:3 NowYouneedtocreateaTablespaceas: SQL> CREATE TABLESPACE APEX_SPACE datafile 'E:\app\Administrator\oradata\micromax\APEX_SPACE.DBF' SIZE 5000M EXTENT MANAGEMENT LOCAL SEGMENT SPACE MANAGEMENT AUTO;
Note: E:\app\Administrator\oradata\micromax\thisdirectoryyoucanassigndifferent.

AftersuccessfullycreatedthetablespacenowquitfromSQL>typingQuitasshowninFig5

Fig5 NowgetintothedirectoryoncommandpromptF:\apex_4.0_en\apexasshownfig5and finallyitwilllookasinthecommandprompt: F:\apex_4.0_en\apex NowloginagainasSYSwithSYSDBAprivilegeasshowninfig3 Infig6shownthecontentofapexfolderandapexins.sqlscriptneedtoexecutetostart installationofapex4.0. Toexecuteapexins.sqlscripttypethebelowcommandandmentioninwhichTABLESPACEwill bedefaultforapexinstallationfiles. SQL > @apexins APEX_SPACE APEX_SPACE Nowpressenterandtheinstallationwillbestarted. Itwilltake30to40minutestocompletetheinstallation. TEMP /i/

Fig6 Aftercompletingtheinstallationthenyouhavetoloadthenecessaryimagestothedatabase. Andtheseimageslocatedinthefollowingdirectory: F:\apex_4.0_en\apex\images InthisstageifthedirectoryunlikeF:\apex_4.0_en\apexinthecommandprompt ThenfollowthestepsasshowninFig5togetintotheF:\apex_4.0_en\apexdirectory. AndloginagainSYSwithSYSDBAprivilegeasshowninFig5. Nowyouhavetoexecutetheapxldimg.sqlscripttoloadtheimages. Toexecutethistypethebelowcommand SQL > @apxldimg.sql Nowyouwillbeaskedtoenterthevaluefor1 Simpletypebelow: F:/apex_4.0_en AndpressEnterandtheimageloadingwillbestarted.

Note: Ifyouopentheapxldimg.sql(F:\apex_4.0_en\apex)scriptwithWordPadandyouwillsee thereisabindvariable&1asshowninfig7.So,forentervaluefor1youwillinputonlythe directorybeforetheapexfolder. So,ourdirectoryforapexwasF:\apex_4.0_en\apex.Asapex/imagesalreadyfixedinthe commandasshowninfig7,sohereputonlytheF:/apex_4.0_en Andtheslashshouldbe/insteadof\

Fig7 Aftercompletingtheabovepart,againifthedirectoryunlikeF:\apex_4.0_en\apexinthe commandprompt ThenfollowthestepsasshowninFig5togetintotheF:\apex_4.0_en\apexdirectory.

NowloginagainSYSwithSYSDBAprivilegeasshowninFig5. Nowyouhavetoexecutetheapxconf.sqlscriptandtypethebelowcommand SQL > @apxconf.sql Andpressenteryouwillbeaskedtoassignapasswordforadmin:typeyourdesiredpassword Andpressenter. ThenyouwillbeaskedtoenterpasswordforXDBHTTPport:typeyourdesiredport.hereyou cankeep8080orcanchangelike7778 Andthenpressenterandyourinstallationinthisstageisdone. ButyouneedtounlockfewoftheschemathatisrelatedtoApexapplication.Nowunlockthe schemaas: TounlockschemayoucanusecommandpromptorEnterprisemanagerconsole TounlockfromcommandpromptyoumustloginasSYSwithSYSDBAprivilege SQL>ALTER USER ANONYMOUS ACCOUNT UNLOCK; SQL>ALTER USER XDB ACCOUNT UNLOCK; SQL>ALTER USER APEX_040000 ACCOUNT UNLOCK; SQL>ALTER USER FLOWS_FILES ACCOUNT UNLOCK; SQL>ALTER USER APEX_PUBLIC_USER ACCOUNT UNLOCK; Nowisthetimetoopentheapexapplication Openabrowerwindowandtypetheurlas http://<computername>:<Port>/apex Example:Ifcomputernameismicromaxandportis7778thenURLwillbelike http://micromax:7778/apex

Fig8 Workspace:internal Username:admin Password:admin

Thenyouwillbepromptedtochangethepassword.Afterchangingpasswordreturntologin wizardandtypeyourpasswordagainandnowyouareinsidetheapexhomehomepage.

Fig:8 Inthefigure8youcanseetherearetwoschemasAPEX_030200andAPEX_040000. HereAPEX_030200istheoldschemathatmeanstheoldapexapplication(3.0)thatwas installedinitiallyduringoracledatabase11gInstallation.LaterwhenwehaveinstalledApex4.0 thenschemaAPEX_040000hasbeencreated.

AndSystemautomaticallyhasactivatedthelatestSchemaanditsapplication.Here APEX_040000isthelatest. So,whenyoutypetheurllikehttp://micromax:7778/apexthen Apex4.0applicationwillbeopened.So,NowyoucandropordestroytheAPEX_030200asits occupiedthespace.Interestingthingisyoucanswitchyoursystemtoapex3.0fromapex4.0 typingswitchingcommand. Iwillshowhowtoswitchfromoneschematoanotherschemalater. Thankyouandgoodluck Kamalhossain

You might also like