Title | How to install oracle |
---|---|
Course | Bases de Dados |
Institution | Universidade Nova de Lisboa |
Pages | 11 |
File Size | 808.2 KB |
File Type | |
Total Downloads | 31 |
Total Views | 152 |
How to install Oracle - pratical...
HowtoinstallOracleApex4.0onOracleDatabase11gEERelease2
Wecandivideourtotalinstallationintotwophases: • •
InstallationofOracleDatabase11g InstallationofOracleApplicationExpress(4.0)
OracleDatabase11gInstallation: DownloadtheOracledatabase11gEER2fromOracleOfficialsite: http://www.oracle.com/technology/software/products/database/index.html Or http://otn.oracle.com Youwillgettwoseparatefilesfromdownloadsource. File1andFile2 AfterdownloadingFile1youwillgetaZippedfileinitnamed“win32_11gR2_database_1of2” andforFile2youwillget“win32_11gR2_database_2of2” Note:ifyoudownloadfor64bitthenitwillshowwin64andfor32bititwillshowwin32 Nowyouhavetounzipandstartinstallation,Unzippinglittlebittrickyhere.Duringinstallation youwillhavechancestogetsomeerrormessageofMissingfiles.Sotoavoidthiserrormessage andcompletingtheinstallationprocesssmoothlyfollowthebelowprocess: CreateaFoldernamed“Oracle11gEER2”andmakeasubfolderintoitnamed“Oracle”. ItwilllookasF:\Oracle11gEER2\Oracle Nowunzipfolder“win32_11gR2_database_1of1”fromFile1.Afterunzippingopenthisfolder. NowcopyallthecontentsunderthisfolderandpasteintoOraclesubfolder.So,finallyyour File1contentwillresideas:
F:\Oracle11gEER2\Oracle\database Andwhenyouclickthisdatabasefolderitshouldshowbelowcontents:
Fig:1 NowtimetounzipFile2.NowunzipFile2andopenthisunzipfolderandgoto Database>Stage>Components: Nowcopytheentirefolderunderthisdirectoryandgoto asF:\Oracle11gEER2\Oracle\database\stage\Components:
Fig:2 NowpasteintothisdirectoryasshowninFig‐2
ThatmeansyouhavemovedtheentirecontentofComponentsfolderfromFile2(after unzipping)toComponentfolderoffile1(afterunzipping). NowyouhavegotyourcompleteOracleDatabase11gEER2Softwareinasinglefile. Nowopensetup.exefromOracleDatabase11gEER2/databasefolderandcontinuethe installationprocess.
Fig:4showingtheapexfolderthatcreatedautomaticallywhenOracle11gEER2installed successfully. Note: AftersuccessfullyinstallationofOracledatabase11gEER2,Apexinstalledandconfigured automaticallyandthatversionis3.0(asshowninfig‐4).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 Asshowninthefig‐3
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.
Aftersuccessfullycreatedthetablespacenowquitfrom“SQL>”typingQuitasshowninFig‐5
Fig‐5 NowgetintothedirectoryoncommandpromptF:\apex_4.0_en\apexasshownfig‐5and finallyitwilllookasinthecommandprompt: F:\apex_4.0_en\apex NowloginagainasSYSwithSYSDBAprivilegeasshowninfig‐3 Infig‐6shownthecontentofapexfolderandapexins.sqlscriptneedtoexecutetostart installationofapex4.0. Toexecuteapexins.sqlscripttypethebelowcommandandmentioninwhichTABLESPACEwill bedefaultforapexinstallationfiles. SQL > @apexins APEX_SPACE APEX_SPACE Nowpressenterandtheinstallationwillbestarted. Itwilltake30to40minutestocompletetheinstallation.
TEMP
/i/
Fig‐6 Aftercompletingtheinstallationthenyouhavetoloadthenecessaryimagestothedatabase. Andtheseimageslocatedinthefollowingdirectory: F:\apex_4.0_en\apex\images InthisstageifthedirectoryunlikeF:\apex_4.0_en\apexinthecommandprompt ThenfollowthestepsasshowninFig‐5togetintotheF:\apex_4.0_en\apexdirectory. AndloginagainSYSwithSYSDBAprivilegeasshowninFig‐5. 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&1asshowninfig‐7.So,forentervaluefor1youwillinputonlythe directorybeforetheapexfolder. So,ourdirectoryforapexwasF:\apex_4.0_en\apex.Asapex/imagesalreadyfixedinthe commandasshowninfig‐7,sohereputonlytheF:/apex_4.0_en Andtheslashshouldbe“/”insteadof“\”
Fig‐7 Aftercompletingtheabovepart,againifthedirectoryunlikeF:\apex_4.0_en\apexinthe commandprompt ThenfollowthestepsasshowninFig‐5togetintotheF:\apex_4.0_en\apexdirectory.
NowloginagainSYSwithSYSDBAprivilegeasshowninFig‐5. Nowyouhavetoexecutetheapxconf.sqlscriptandtypethebelowcommand SQL > @apxconf.sql Andpressenter…youwillbeaskedtoassignapasswordforadmin: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://:/apex Example:Ifcomputernameismicromaxandportis7778thenURLwillbelike http://micromax:7778/apex
Fig‐8 Workspace:internal Username:admin Password:admin
Thenyouwillbepromptedtochangethepassword.Afterchangingpasswordreturntologin wizardandtypeyourpasswordagainandnowyouareinsidetheapexhomehomepage.
Fig:8 Inthefigure‐8youcanseetherearetwoschemasAPEX_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.
...