ORACLE ENTERPRISE MANAGER 12c
Grand Tour VM Cheat sheet
OracleEnterpriseManager12cHandsonLabCheatSheet
A. ClientMachineRequirements
BrowseranyoneofthefollowingFirefoxversion8,7,5,4,3.6orInternetExplorerversion9.x,8,7
AdobeFlashPlayer10
VNCviewer(anyversion)
AdobeAcrobatReader(latestversion)
B. AccessingyourexclusiveEnterpriseManager12cLabEnvironment
1. InyourWindowslaptop,addthefollowingtoC:\WINDOWS\system32\drivers\etc\hostsfile
<EM12cVMIPaddress>
[Link]
em12
TipVerifythatyougetresponse,whenyourunpingem12commandfromWindowsStartmenuRun.
2. FromFirefoxbrowsergotoURL[Link]
Tip:YoucanbookmarktheaboveURL(asEM12c)foraccessingEMlater.
Note:AboveinstructionswillworkonWindowsXPOSonly.
Windows7usersMakesureyouopenNotepadapplicationviarightclickandselectRunasAdministrator.
C. Startingthelabenvironment
[Link],[Link]
theexercisesyouintendtodo,youwillstartthelabtargetsbyrunningthefollowingscripts.
Note:[Link].
Scriptstoberun
Lab
(availableunder/home/oracle/scripts/)
LifecycleManagement
noscriptsrequired.
Frameworkand
DatabaseManagement
MiddlewareManagement
1db_lab_start.sh
2mw_lab_start.sh
Note:Middlewarediagnosticsrunseveryhouranddiagnostics
[Link]
givenlabstartscriptshouldberuninadvanceaccordingly.
D. AccessingtheLinuxterminalofEM12cVMusingsshorVNC
ForrunningthescriptyoucanconnecttotheLinuxVMusingeithersshorVNC.
Usingssh
IntheWindowscommandprompttypesshem12
ClickOKonthewarningdialog.
Loginusingoracle/oracle12
UsingVNC
LaunchVNCviewer(RealVNC,UltraVNC,etc)
Providefollowingvalues
o Servername
:
[Link]
o VNCPassword
:
oracle12
o OSpassword
:
oracle12
Page1of2
ORACLE ENTERPRISE MANAGER 12c
Grand Tour VM Cheat sheet
RightclickontheLinuxdesktopandselectOpenTerminal.
E. Credentials
Intheexercises,[Link],allofthecredentialsaredetailedbelow
foryourreference.
User
Password
NamedCredentialsInEM
EnterpriseManagerUsers
oracle
oracle12
NA
HOSTORACLE,
HostUsers
oracle,root
oracle12
HOSTROOT
Database(test)
sys,system,dbsnmp
oracle12
DBTESTSYS
Database(prod)
sys,system,dbsnmp
oracle12
DBPRODSYS
F. Scripts
Overviewofthemostcommonlyusedscripts.
ScriptName
Purpose
StartsEMandrediscoversMW
0start_env_first_time.sh [Link]
targets.
[Link]
targets.
Starts/Stopsprodandtest
1start_db_lab.sh/
databases+listenerandDB
3stop_db_lab.sh
load
0start_env.sh
2mw_lab_start.sh/ Starts/StopstestDB,JVMD
4mw_lab_stop.sh
Mgr,Medrectargets
5stop_all.sh
Stopstheentireenvironment
Comments
Takesabout15minutestoexecute.
ToberunbylabadministratorwhenVM
isbootedforthefirsttimeoranytimeIP
addresschanges.
[Link]
berunbystudents.
Toberunbystudentsbeforestartingthe
DatabaseManagementexercises.
Toberunbylabadministratoror
studentsatleastanhourbeforestarting
theMiddlewareManagementexercises.
Toberunbylabadministratoratthe
endoflab.
G. Scriptsforadministeringindividualcomponents.
([Link].)
Target/component
Environmentscript
Start
Stop
EMRepository
REP_ENV
rep_start.sh
rep_stop.sh
EMOMS
OMS_ENV
oms_start.sh
oms_stop.sh
EMAgent
AGENT_ENV
agent_start.sh
agent_stop.sh
Databaseprod
PROD_DB_ENV
prod_start.sh
prod_stop.sh
Databasetest
TEST_DB_ENV
test_start.sh
test_stop.sh
MiddlewareTargets
NA
medrec_start.sh
medrec_stop.sh
Sourcetheenvironmentscriptforsettingtheenvironmentvariablestorunoneoffcommands,like
emctl,sqlplusetc.
start/stopscriptscanberundirectlywithoutsourcingenvironmentscripts.
Page2of2