Sqlplus V10.2.0.4 in 11gR2 OracleHome?
Hi all,
SLES 11
Oracle 11gR2
Is my sqlplus version correct or incorrect? Or something weird happened or is it normal?
oracle@sdb51:/u01/app/oracle/product/11.2.0/dbhome_1/bin> ./sqlplus
SQL*Plus: Release 10.2.0.4.0 - Production on Wed Apr 3 17:55:14 2013
Copyright (c) 1982, 2007, Oracle. All Rights Reserved.
Enter user-name:Can you try yours please....
Thanks a lot,
zxy
yxes2013 wrote:
Hi all,
SLES 11
Oracle 11gR2
Is my sqlplus version correct or incorrect? Or something weird happened or is it normal?
oracle@sdb51:/u01/app/oracle/product/11.2.0/dbhome_1/bin> ./sqlplus
SQL*Plus: Release 10.2.0.4.0 - Production on Wed Apr 3 17:55:14 2013
Copyright (c) 1982, 2007, Oracle. All Rights Reserved.
Enter user-name:Can you try yours please....
Thanks a lot,
zxyWEIRD
[oracle@localhost ~]$ cd $ORACLE_HOME/bin/
[oracle@localhost bin]$ pwd
/home/oracle/app/oracle/product/11.2.0/dbhome_2/bin
[oracle@localhost bin]$ ./sqlplus
SQL*Plus: Release 11.2.0.2.0 Production on Tue Apr 2 18:56:06 2013
Copyright (c) 1982, 2010, Oracle. All rights reserved.
Similar Messages
-
Installation of Application Management Pack 3 Failed
Hi All,
Please help me.
I've experienced an error while installing the Application Management Pack 3 on Linux Machine (OS: Oracle Enterprise Linux 5.3 32-bit) with EM Grid Control 10g Release 5. I want to install the Grid Control Plug-in Oracle E-Business Suite Management Pack 3 to manage our EBS Oracle Apps R12, but it was failed due to error. Below was the logs for error:
Log: /u01/app/oraInventory/logs/installActions2010-07-06_03-00-11PM.log
RepManager was not able to run successfully.
/applications/em/em/WEB-INF/lib/myjar.jar:/u01/app/oracle/OracleHomes/oms10g/sysman/jlib/emCfg.jar:/u01/a
pp/oracle/OracleHomes/oms10g/jlib/ojmisc.jar:/u01/app/oracle/OracleHomes/oms10g/sysman/jlib/emUpgrade.jar
:/u01/app/oracle/OracleHomes/oms10g/sysman/jlib/emagentSDK.jar oracle.apps.oms_extn.util.EBSOUIUtil RepMa
nager /u01/app/oracle/OracleHomes/oms10g ${s_encrreposDBAPwd} (DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOC
OL=TCP)(HOST=oem.kccmalls.com)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=emrep.kccmalls.com)))
/u01/app/oracle/OracleHomes/oms10g/sysman/admin/emdrep/bin/RepManager -connect (DESCRIPTION=(ADDRESS_LIST
=(ADDRESS=(PROTOCOL=TCP)(HOST=oem.kccmalls.com)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=emrep.kccmalls.co
m))) -sys_password **** -repos_user sysman -repos_password ******** -action upgrade -verbose
RepManager was not able to run successfully.
Please see /u01/app/oracle/OracleHomes/oms10g/cfgtoollogs/appsemca-2010-7-6_15-558.out for more details.
Execution of the plugin was aborted
INFO: Configuration assistant "APPS plugin Repository Upgrade Assistant" was canceled.
INFO: The "/u01/app/oracle/OracleHomes/oms10g/cfgtoollogs/configToolFailedCommands" script contains all c
ommands that failed, were skipped or were cancelled. This file may be used to run these configuration ass
istants outside of OUI. Note that you may have to update this script with passwords (if any) before execu
ting the same.
INFO: Created a new file /u01/app/oracle/OracleHomes/oms10g/cfgtoollogs/configToolFailedCommands
INFO: Since the option is to overwrite the existing /u01/app/oracle/OracleHomes/oms10g/cfgtoollogs/config
ToolFailedCommands file, backing it up
INFO: The backed up file name is /u01/app/oracle/OracleHomes/oms10g/cfgtoollogs/configToolFailedCommands.
bak
SEVERE: OUI-25031:Some of the configuration assistants failed. It is strongly recommended that you retry
the configuration assistants at this time. Not successfully running any "Recommended" assistants means yo
ur system will not be correctly configured.
1. Check the Details panel on the Configuration Assistant Screen to see the errors resulting in the failu
res.
2. Fix the errors causing these failures.
3. Select the failed assistants and click the 'Retry' button to retry them.
INFO: User Selected: Yes/OK
Log: /u01/app/oracle/OracleHomes/oms10g/cfgtoollogs/appsemca-2010-7-6_15-558.out
Getting temporary tablespace from database...
Found temporary tablespace: TEMP
Environment :
ORACLE HOME = /u01/app/oracle/OracleHomes/oms10g
REPOSITORY HOME = /u01/app/oracle/OracleHomes/oms10g
SQLPLUS = /u01/app/oracle/OracleHomes/oms10g/bin/sqlplus
SQL SCRIPT ROOT = /u01/app/oracle/OracleHomes/oms10g/sysman/admin/emdrep/sql
EXPORT = /u01/app/oracle/OracleHomes/oms10g/bin/exp
IMPORT = /u01/app/oracle/OracleHomes/oms10g/bin/imp
LOADJAVA = /u01/app/oracle/OracleHomes/oms10g/bin/loadjava
JAR FILE ROOT = /u01/app/oracle/OracleHomes/oms10g/sysman/admin/emdrep/lib
JOB TYPES ROOT = /u01/app/oracle/OracleHomes/oms10g/sysman/admin/emdrep/bin
Arguments :
Connect String = (DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=oem.kccmalls.com)(PORT=152
1)))(CONNECT_DATA=(SERVICE_NAME=emrep.kccmalls.com)))
Action = upgrade
Repos User = SYSMAN
Default tablespace = MGMT_TABLESPACE
Default Data file = mgmt.dbf
Dflt Dfile Init size = 20m
Dflt Dfile Ext size = 20m
ECM tablespace = MGMT_ECM_DEPOT_TS
ECM Data file = mgmt_ecm_depot1.dbf
ECM Dfile Init size = 100m
ECM Dfile Ext size = 100m
ECM CSA tablespace = MGMT_TABLESPACE
ECM CSA Data file = mgmt_ecm_csa1.dbf
ECM CSA Dfile Init size = 100m
ECM CSA Dfile Ext size = 100m
TEMP tablespace = TEMP
Create options = 3
Verbose output = 1
Output File = /u01/app/oracle/OracleHomes/oms10g/sysman/log/emrepmgr.log.10108
Repos creation mode = CENTRAL
MyOracleSupport user name = NOTAVAILABLE_
MyOracleSupport URL = http://updates.oracle.com
Export Directory = /u01/app/oracle/OracleHomes/oms10g/sysman/log
Import Directory = /u01/app/oracle/OracleHomes/oms10g/sysman/log
Path Separator = :
Checking SYS Credentials ... rem error switch
ECM CSA Dfile Init size = 100m
ECM CSA Dfile Ext size = 100m
TEMP tablespace = TEMP
Create options = 3
Verbose output = 1
Output File = /u01/app/oracle/OracleHomes/oms10g/sysman/log/emrepmgr.log.10108
Repos creation mode = CENTRAL
MyOracleSupport user name = NOTAVAILABLE_
MyOracleSupport URL = http://updates.oracle.com
Export Directory = /u01/app/oracle/OracleHomes/oms10g/sysman/log
Import Directory = /u01/app/oracle/OracleHomes/oms10g/sysman/log
Path Separator = :
Checking SYS Credentials ... rem error switch
Return code = 0.OK.
rem error switch
Upgrading the repository..
Checking for Repos User ... Return code = 0.Exists.
Verifying Audit Master Table --> Passed
Verifying Time Coefficient Table --> Didn't Pass
Verifying SYSMAN Referential Integrity --> Passed
Verifying SYSMAN Trigger Check --> Passed
Verifying Max Enabled Roles --> Passed
Verifying Global User Context --> Passed
Verifying Exempt Access Policy --> Passed
Verifying SYSMAN Queue Tables Check --> Passed
Verifying VPD Basic Policy Function --> Passed
Verifying VPD Valid Policy Function --> Passed
------------- SANITY VIOLATION ----------------
Verification has not passed for schema upgrade
to ensure basic sanity conditions of the SYSMAN schema.
There are the following violations:
Schema Sanity Violation: Time Coefficient Table is expected 1 row but contains 0 row
Please contact Oracle Support for schema validations
before attempting to perform schema upgrade
Any help much appreciated.
Regards,
CyrusTake a look at: APPS Plugin Repository Upgrade fails with "Schema Sanity Violation: Time Coefficient Table is expected 1 row but contains 0 row" [ID 883703.1]
on support.oracle.com
https://support.oracle.com/CSP/ui/flash.html#tab=KBHome%28page=KBHome&id=%28%29%29,%28page=KBNavigator&id=%28bmDocTitle=APPS%20Plugin%20Repository%20Upgrade%20fails%20with%20%22Schema%20Sanity%20Violation:%20Time%20Coefficient%20Table%20is%20expected%201%20row%20but%20contains%200%20row%22&bmDocDsrc=KB&bmDocType=PROBLEM&bmDocID=883703.1&viewingMode=1143&from=BOOKMARK%29%29
Regards
Rob
http://oemgc.wordpress.com -
Sqlplus 11gr2 in black&white plaintext win 7
hi friends,
I installed 11gr2 client on my win7 64-bit, real smooth. however the sqlplus interface is a plain text version like the one found in unix command line. so all the advantages of graphical sqlplus like the special copy-paste functionality are gone. did I do something wrong or is everybody else experiencing the same situation?
thks , rgds.
ClaudioClaudio Solares wrote:
hi friends,
I installed 11gr2 client on my win7 64-bit, real smooth. however the sqlplus interface is a plain text version like the one found in unix command line. And the problem with that would be ... ???
so all the advantages of graphical sqlplus like the special copy-paste functionality are gone. did I do something wrong or is everybody else experiencing the same situation?
thks , rgds.
ClaudioThe text version of sqlplus has the same copy and paste capabilities as the OS command prompt processor. And it's really the same functionality as SQLPLUSW. It's there, it just works a little differently.
Try this:
Put a shortcut to cmd.exe on your desktop.
right click the icon and open 'properties'
Under the 'options' tab, select 'quick edit'
save it and open the shortcut.
Now, you can select text like always, and copy it by pressing the 'enter' key.
You can paste text by right clicking the mouse, or with 'ctrl-v'.
You can also access the edit features by right clicking the icon in the upper left corner of the open cmd.exe window.
start sqlplus from here and all of the above edit features will be inherited by sqlplus. -
Sqlplus client for 11gR2 ?
Sqlplus client for 11gR2
===============
Hi,
Thanks for your replies. I downloaded/installed the Oracle 11gR2. I find the SqlPlus as Dos window/command line type. Do we have the separate SqlPlus Client piece (GUIi type) for 11g?
What is the download link for it?
Thanks in helping us out.
RIIf you mean to say that you want the sqlplusw which is sql*plus client over Windows, it's deprecated from 11.1 itself. Please see,
http://download.oracle.com/docs/cd/B28359_01/install.111/b32006/whatsnew.htm#sthref12
HTH
Aman.... -
Is oracle 11gr2 comptible with devloper 5 and sqlplus realse 3.3.4
i installing oracle 11gr2 in windowes server 2008
and am using from 6 and from 5
once i connect from 6 it connect fin
but once i use from 5 i get problem
ERROR: ORA-12203: TNS:unable to connect to destination
how i can reslove this problemausing from 6 work fin
using this :
sdont =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS =
(COMMUNITY = tcp.world)
(PROTOCOL = TCP)
(Host = 10.20.3.4)
(Port = 1521)
(CONNECT_DATA = (SID = ORC1)
from 5 entry (not working):
sdont.world =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS =
(COMMUNITY = tcp.world)
(PROTOCOL = TCP)
(Host = 10.20.3.4)
(Port = 1521)
(ADDRESS =
(COMMUNITY = tcp.world)
(PROTOCOL = TCP)
(Host = 10.20.3.4)
(Port = 1521)
(CONNECT_DATA = (SID = ORC1)
) -
Root.sh fails, sles10 sp3 64-bit, 11gr2
When i run the root.sh on first node, it fails.
In the rootcrs_node1.log file i can see bellow entries
2010-05-08 11:36:15: Executing as oracle: /u01/grid/11gr2/bin/asmca -silent -diskGroupName GRID_DG -diskList ORCL:ASMDISK1,ORCL:ASMDISK2,ORCL:ASMDISK3,ORCL:ASMDISK4 -redundancy EXTERNAL -configureLocalASM
2010-05-08 11:36:15: Running as user oracle: /u01/grid/11gr2/bin/asmca -silent -diskGroupName GRID_DG -diskList ORCL:ASMDISK1,ORCL:ASMDISK2,ORCL:ASMDISK3,ORCL:ASMDISK4 -redundancy EXTERNAL -configureLocalASM
2010-05-08 11:36:15: Invoking "/u01/grid/11gr2/bin/asmca -silent -diskGroupName GRID_DG -diskList ORCL:ASMDISK1,ORCL:ASMDISK2,ORCL:ASMDISK3,ORCL:ASMDISK4 -redundancy EXTERNAL -configureLocalASM" as user "oracle"
2010-05-08 11:36:32: Configuration of ASM failed, see logs for details
2010-05-08 11:36:32: Did not succssfully configure and start ASM
2010-05-08 11:36:32: Exiting exclusive mode
I am using device mapper multipath with oracleasm, the ORACLEASM_SCANORDER="dm" and ORACLEASM_SCANEXCLUDE="sd" set in /etc/sysconfig/oracleasm file.
when i run the root.sh, the bellow will be displayed
[main] [ 2010-05-08 11:36:16.871 IST ] [UsmcaCmdLineParser.discoverRAC:222] Cluster Existence Check
[main] [ 2010-05-08 11:36:16.907 IST ] [Version.isPre:274] version to be checked 11.2.0.1.0 major version to check against10
[main] [ 2010-05-08 11:36:16.907 IST ] [Version.isPre:285] isPre.java: Returning FALSE
[main] [ 2010-05-08 11:36:16.912 IST ] [OCR.loadLibrary:308]
Inside constructor of OCR
[main] [ 2010-05-08 11:36:16.933 IST ] [OCR.loadLibrary:316] Going to load the ocr library
[main] [ 2010-05-08 11:36:16.934 IST ] [sPlatform.isHybrid:66] osName=Linux osArch=amd64 JVM=64 rc=false
[main] [ 2010-05-08 11:36:16.935 IST ] [sPlatform.isHybrid:66] osName=Linux osArch=amd64 JVM=64 rc=false
[main] [ 2010-05-08 11:36:16.936 IST ] [Library.load:254] Loading library /u01/grid/11gr2/lib/libsrvmocr11.so
[main] [ 2010-05-08 11:36:16.951 IST ] [OCR.loadLibrary:318] loaded ocr libraries
[main] [ 2010-05-08 11:36:16.952 IST ] [OCR.isCluster:939] Calling OCRNative for isCluster()
[main] [ 2010-05-08 11:36:16.956 IST ] [OCR.isCluster:943] OCR Result status = true
[main] [ 2010-05-08 11:36:16.956 IST ] [OCR.isCluster:955] Bolean result = true
[main] [ 2010-05-08 11:36:16.962 IST ] [HASContext.<init>:100] moduleInit = 7
[main] [ 2010-05-08 11:36:16.962 IST ] [sPlatform.isHybrid:66] osName=Linux osArch=amd64 JVM=64 rc=false
[main] [ 2010-05-08 11:36:16.963 IST ] [sPlatform.isHybrid:66] osName=Linux osArch=amd64 JVM=64 rc=false
[main] [ 2010-05-08 11:36:16.964 IST ] [Library.load:254] Loading library /u01/grid/11gr2/lib/libsrvmhas11.so
[main] [ 2010-05-08 11:36:16.968 IST ] [Util.<init>:86] Util Instance created.
[main] [ 2010-05-08 11:36:16.979 IST ] [ClusterAlias.<init>:86] ClusterAlias Instance created.
[main] [ 2010-05-08 11:36:17.030 IST ] [UsmcaCmdLineParser.discoverRAC:226] cluster existence:true
[main] [ 2010-05-08 11:36:17.039 IST ] [OracleHome.getNodeNames:311] inside getNodeNames
[main] [ 2010-05-08 11:36:17.408 IST ] [InventoryUtil.getOUIInvSession:347] setting OUI READ level to ACCESSLEVEL_READ_LOCKLESS
[main] [ 2010-05-08 11:36:17.415 IST ] [OracleHome.isClusterInstalled:293] bClusterInstalled=true
[main] [ 2010-05-08 11:36:17.415 IST ] [UsmcaCmdLineParser.discoverRAC:240] Cluster flag true
[main] [ 2010-05-08 11:36:23.946 IST ] [NetworkUtils.checkListenerStatus:420] Checking default listener status
[main] [ 2010-05-08 11:36:23.947 IST ] [NetworkUtils.checkListenerStatus:425] Checking listener status: LISTENER
[main] [ 2010-05-08 11:36:24.000 IST ] [NetworkUtils.checkListenerStatus:431] lsnrct status output
LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 08-MAY-2010 11:36:23
Copyright (c) 1991, 2009, Oracle. All rights reserved.
Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
TNS-12541: TNS:no listener
TNS-12560: TNS:protocol adapter error
TNS-00511: No listener
Linux Error: 111: Connection refused
[main] [ 2010-05-08 11:36:24.160 IST ] [OracleHome.getVersion:877] OracleHome.getVersion called. Current Version: null
[main] [ 2010-05-08 11:36:24.211 IST ] [InventoryUtil.getOUIInvSession:347] setting OUI READ level to ACCESSLEVEL_READ_LOCKLESS
[main] [ 2010-05-08 11:36:24.211 IST ] [OracleHome.getVersion:896] Homeinfo /u01/grid/11gr2,1
[main] [ 2010-05-08 11:36:24.556 IST ] [OracleHome.getVersion:943] Current Version From Inventory: null
[main] [ 2010-05-08 11:36:24.556 IST ] [OracleHome.getVersion:948] using sqlplus: /u01/grid/11gr2/bin/sqlplus
[main] [ 2010-05-08 11:36:24.557 IST ] [OracleHome.getVersion:981] adding oracle home to sqlplus env
[main] [ 2010-05-08 11:36:24.784 IST ] [OracleHome.getVersion:988] /u01/grid/11gr2/bin/sqlplus Banner:
SQL*Plus: Release 11.2.0.1.0 Production
[main] [ 2010-05-08 11:36:24.784 IST ] [OracleHome.getVersion:1006] Current version from sqlplus: 11.2.0.1.0
[main] [ 2010-05-08 11:36:24.784 IST ] [OracleHome.getVersion:877] OracleHome.getVersion called. Current Version: 11.2.0.1.0
[main] [ 2010-05-08 11:36:24.784 IST ] [OracleHome.getVersion:943] Current Version From Inventory: 11.2.0.1.0
[main] [ 2010-05-08 11:36:24.785 IST ] [OracleHome.getVersion:948] using sqlplus: /u01/grid/11gr2/bin/sqlplus
[main] [ 2010-05-08 11:36:24.786 IST ] [OracleHome.getVersion:877] OracleHome.getVersion called. Current Version: 11.2.0.1.0
[main] [ 2010-05-08 11:36:24.786 IST ] [OracleHome.getVersion:943] Current Version From Inventory: 11.2.0.1.0
[main] [ 2010-05-08 11:36:24.787 IST ] [OracleHome.getVersion:948] using sqlplus: /u01/grid/11gr2/bin/sqlplus
[main] [ 2010-05-08 11:36:24.787 IST ] [SQLPlusEngine.getCmmdParams:222] m_home 11.2.0.1.0
[main] [ 2010-05-08 11:36:24.787 IST ] [SQLPlusEngine.getCmmdParams:223] version > 112 true
[main] [ 2010-05-08 11:36:24.788 IST ] [SQLEngine.getEnvParams:547] Default NLS_LANG: AMERICAN_AMERICA.AL32UTF8
[main] [ 2010-05-08 11:36:24.788 IST ] [SQLEngine.getEnvParams:557] NLS_LANG: AMERICAN_AMERICA.AL32UTF8
[main] [ 2010-05-08 11:36:24.789 IST ] [SQLEngine.initialize:317] Execing SQLPLUS/SVRMGR process...
[main] [ 2010-05-08 11:36:24.794 IST ] [SQLEngine.initialize:354] m_bReaderStarted: false
[main] [ 2010-05-08 11:36:24.794 IST ] [SQLEngine.initialize:358] Starting Reader Thread...
[main] [ 2010-05-08 11:36:24.807 IST ] [OracleHome.getVersion:877] OracleHome.getVersion called. Current Version: null
[main] [ 2010-05-08 11:36:24.810 IST ] [InventoryUtil.getOUIInvSession:347] setting OUI READ level to ACCESSLEVEL_READ_LOCKLESS
[main] [ 2010-05-08 11:36:24.811 IST ] [OracleHome.getVersion:896] Homeinfo /u01/grid/11gr2,1
[main] [ 2010-05-08 11:36:24.967 IST ] [OracleHome.getVersion:943] Current Version From Inventory: null
[main] [ 2010-05-08 11:36:24.967 IST ] [OracleHome.getVersion:948] using sqlplus: /u01/grid/11gr2/bin/sqlplus
[main] [ 2010-05-08 11:36:24.968 IST ] [OracleHome.getVersion:981] adding oracle home to sqlplus env
[main] [ 2010-05-08 11:36:24.988 IST ] [OracleHome.getVersion:988] /u01/grid/11gr2/bin/sqlplus Banner:
SQL*Plus: Release 11.2.0.1.0 Production
[main] [ 2010-05-08 11:36:24.989 IST ] [OracleHome.getVersion:1006] Current version from sqlplus: 11.2.0.1.0
[main] [ 2010-05-08 11:36:29.761 IST ] [KfodUtil.kfodOutput:232] /u01/grid/11gr2/bin/kfod
[main] [ 2010-05-08 11:36:29.761 IST ] [KfodUtil.kfodOutput:232] nohdr=TRUE
[main] [ 2010-05-08 11:36:29.762 IST ] [KfodUtil.kfodOutput:232] OP=DISKS DISK=ASM DS=TRUE
[main] [ 2010-05-08 11:36:29.762 IST ] [KfodUtil.kfodOutput:232] status=true
[main] [ 2010-05-08 11:36:30.801 IST ] [ClusterUtil.<init>:65] ClusterUtil Instance created
[main] [ 2010-05-08 11:36:30.802 IST ] [ClusterUtil.<init>:68] ClusterUtil m_bSKGXN=true
[main] [ 2010-05-08 11:36:30.803 IST ] [ClusterUtil.<init>:65] ClusterUtil Instance created
[main] [ 2010-05-08 11:36:30.803 IST ] [ClusterUtil.<init>:68] ClusterUtil m_bSKGXN=true
[main] [ 2010-05-08 11:36:30.803 IST ] [ClusterUtil.getCSSMode:463] Returned from native code
[main] [ 2010-05-08 11:36:30.804 IST ] [ClusterUtil.getCSSMode:465] Returned from native code
[main] [ 2010-05-08 11:36:30.806 IST ] [USMInstance.createASMInitFile:3227] creating init file /u01/grid/11gr2/dbs/init+ASM1.ora
[main] [ 2010-05-08 11:36:30.810 IST ] [InitParamAttributes.sortParams:3774] m_sortOn:-1 sortOn:4
[main] [ 2010-05-08 11:36:30.840 IST ] [InitParamAttributes.createInitFile:1808] Processing init param asm_power_limit
[main] [ 2010-05-08 11:36:30.841 IST ] [InitParamAttributes.createInitFile:1813] The value is 1
[main] [ 2010-05-08 11:36:30.841 IST ] [InitParamAttributes.createInitFile:1808] Processing init param diagnostic_dest
[main] [ 2010-05-08 11:36:30.841 IST ] [InitParamAttributes.createInitFile:1813] The value is /etc/oracle
[main] [ 2010-05-08 11:36:30.842 IST ] [InitParamAttributes.createInitFile:1808] Processing init param instance_type
[main] [ 2010-05-08 11:36:30.842 IST ] [InitParamAttributes.createInitFile:1813] The value is asm
[main] [ 2010-05-08 11:36:30.842 IST ] [InitParamAttributes.createInitFile:1808] Processing init param large_pool_size
[main] [ 2010-05-08 11:36:30.842 IST ] [InitParamAttributes.createInitFile:1813] The value is 12M
[main] [ 2010-05-08 11:36:30.843 IST ] [InitParamAttributes.createInitFile:1808] Processing init param remote_login_passwordfile
[main] [ 2010-05-08 11:36:30.843 IST ] [InitParamAttributes.createInitFile:1813] The value is EXCLUSIVE
[main] [ 2010-05-08 11:36:30.845 IST ] [SQLEngine.done:2148] Done called
[main] [ 2010-05-08 11:36:30.846 IST ] [OracleHome.getVersion:877] OracleHome.getVersion called. Current Version: null
[main] [ 2010-05-08 11:36:30.849 IST ] [InventoryUtil.getOUIInvSession:347] setting OUI READ level to ACCESSLEVEL_READ_LOCKLESS
[main] [ 2010-05-08 11:36:30.849 IST ] [OracleHome.getVersion:896] Homeinfo /u01/grid/11gr2,1
[main] [ 2010-05-08 11:36:30.995 IST ] [OracleHome.getVersion:943] Current Version From Inventory: null
[main] [ 2010-05-08 11:36:30.995 IST ] [OracleHome.getVersion:948] using sqlplus: /u01/grid/11gr2/bin/sqlplus
[main] [ 2010-05-08 11:36:30.996 IST ] [OracleHome.getVersion:981] adding oracle home to sqlplus env
[main] [ 2010-05-08 11:36:31.130 IST ] [OracleHome.getVersion:988] /u01/grid/11gr2/bin/sqlplus Banner:
SQL*Plus: Release 11.2.0.1.0 Production
[main] [ 2010-05-08 11:36:31.131 IST ] [OracleHome.getVersion:1006] Current version from sqlplus: 11.2.0.1.0
[main] [ 2010-05-08 11:36:31.131 IST ] [OracleHome.getVersion:877] OracleHome.getVersion called. Current Version: 11.2.0.1.0
[main] [ 2010-05-08 11:36:31.131 IST ] [OracleHome.getVersion:943] Current Version From Inventory: 11.2.0.1.0
[main] [ 2010-05-08 11:36:31.131 IST ] [OracleHome.getVersion:948] using sqlplus: /u01/grid/11gr2/bin/sqlplus
[main] [ 2010-05-08 11:36:31.132 IST ] [OracleHome.getVersion:877] OracleHome.getVersion called. Current Version: 11.2.0.1.0
[main] [ 2010-05-08 11:36:31.132 IST ] [OracleHome.getVersion:943] Current Version From Inventory: 11.2.0.1.0
[main] [ 2010-05-08 11:36:31.132 IST ] [OracleHome.getVersion:948] using sqlplus: /u01/grid/11gr2/bin/sqlplus
[main] [ 2010-05-08 11:36:31.133 IST ] [SQLPlusEngine.getCmmdParams:222] m_home 11.2.0.1.0
[main] [ 2010-05-08 11:36:31.133 IST ] [SQLPlusEngine.getCmmdParams:223] version > 112 true
[main] [ 2010-05-08 11:36:31.133 IST ] [SQLEngine.getEnvParams:547] Default NLS_LANG: AMERICAN_AMERICA.AL32UTF8
[main] [ 2010-05-08 11:36:31.134 IST ] [SQLEngine.getEnvParams:557] NLS_LANG: AMERICAN_AMERICA.AL32UTF8
[main] [ 2010-05-08 11:36:31.135 IST ] [SQLEngine.initialize:317] Execing SQLPLUS/SVRMGR process...
[main] [ 2010-05-08 11:36:31.142 IST ] [SQLEngine.initialize:354] m_bReaderStarted: false
[main] [ 2010-05-08 11:36:31.142 IST ] [SQLEngine.initialize:358] Starting Reader Thread...
[main] [ 2010-05-08 11:36:31.160 IST ] [OracleHome.getVersion:877] OracleHome.getVersion called. Current Version: null
[main] [ 2010-05-08 11:36:31.163 IST ] [InventoryUtil.getOUIInvSession:347] setting OUI READ level to ACCESSLEVEL_READ_LOCKLESS
[main] [ 2010-05-08 11:36:31.163 IST ] [OracleHome.getVersion:896] Homeinfo /u01/grid/11gr2,1
[main] [ 2010-05-08 11:36:31.276 IST ] [OracleHome.getVersion:943] Current Version From Inventory: null
[main] [ 2010-05-08 11:36:31.276 IST ] [OracleHome.getVersion:948] using sqlplus: /u01/grid/11gr2/bin/sqlplus
[main] [ 2010-05-08 11:36:31.277 IST ] [OracleHome.getVersion:981] adding oracle home to sqlplus env
[main] [ 2010-05-08 11:36:31.298 IST ] [OracleHome.getVersion:988] /u01/grid/11gr2/bin/sqlplus Banner:
SQL*Plus: Release 11.2.0.1.0 Production
[main] [ 2010-05-08 11:36:31.298 IST ] [OracleHome.getVersion:1006] Current version from sqlplus: 11.2.0.1.0
[main] [ 2010-05-08 11:36:32.044 IST ] [SQLEngine.done:2148] Done called
[main] [ 2010-05-08 11:36:32.045 IST ] [USMInstance.configureLocalASM:2743] ORA-48141: error creating directory during ADR initialization [etc/oracle/diag]
ORA-48189: OS command to create directory failed
[main] [ 2010-05-08 11:36:32.045 IST ] [SQLEngine.reInitialize:730] Reinitializing SQLEngine...
[main] [ 2010-05-08 11:36:32.045 IST ] [OracleHome.getVersion:877] OracleHome.getVersion called. Current Version: 11.2.0.1.0
[main] [ 2010-05-08 11:36:32.046 IST ] [OracleHome.getVersion:943] Current Version From Inventory: 11.2.0.1.0
[main] [ 2010-05-08 11:36:32.046 IST ] [OracleHome.getVersion:948] using sqlplus: /u01/grid/11gr2/bin/sqlplus
[main] [ 2010-05-08 11:36:32.046 IST ] [OracleHome.getVersion:877] OracleHome.getVersion called. Current Version: 11.2.0.1.0
[main] [ 2010-05-08 11:36:32.046 IST ] [OracleHome.getVersion:943] Current Version From Inventory: 11.2.0.1.0
[main] [ 2010-05-08 11:36:32.047 IST ] [OracleHome.getVersion:948] using sqlplus: /u01/grid/11gr2/bin/sqlplus
[main] [ 2010-05-08 11:36:32.047 IST ] [OracleHome.getVersion:877] OracleHome.getVersion called. Current Version: 11.2.0.1.0
[main] [ 2010-05-08 11:36:32.047 IST ] [OracleHome.getVersion:943] Current Version From Inventory: 11.2.0.1.0
[main] [ 2010-05-08 11:36:32.048 IST ] [OracleHome.getVersion:948] using sqlplus: /u01/grid/11gr2/bin/sqlplus
[main] [ 2010-05-08 11:36:32.048 IST ] [SQLPlusEngine.getCmmdParams:222] m_home 11.2.0.1.0
[main] [ 2010-05-08 11:36:32.048 IST ] [SQLPlusEngine.getCmmdParams:223] version > 112 true
[main] [ 2010-05-08 11:36:32.049 IST ] [SQLEngine.getEnvParams:547] Default NLS_LANG: AMERICAN_AMERICA.AL32UTF8
[main] [ 2010-05-08 11:36:32.049 IST ] [SQLEngine.getEnvParams:557] NLS_LANG: AMERICAN_AMERICA.AL32UTF8
[main] [ 2010-05-08 11:36:32.050 IST ] [SQLEngine.initialize:317] Execing SQLPLUS/SVRMGR process...
[main] [ 2010-05-08 11:36:32.057 IST ] [SQLEngine.initialize:354] m_bReaderStarted: false
[main] [ 2010-05-08 11:36:32.057 IST ] [SQLEngine.initialize:358] Starting Reader Thread...
[main] [ 2010-05-08 11:36:32.058 IST ] [SQLEngine.initialize:407] Waiting for m_bReaderStarted to be true
[main] [ 2010-05-08 11:36:32.094 IST ] [SQLEngine.done:2148] Done called
[main] [ 2010-05-08 11:36:32.111 IST ] [OsUtilsBase.deleteFile:1711] OsUtilsBase.deleteFile: /u01/grid/11gr2/dbs/init+ASM1.ora
ASM failed to start. Check /etc/oracle/cfgtoollogs/asmca/asmca-10050811AM3616.log for details.
Configuration of ASM failed, see logs for detailsHi,
this:
Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
TNS-12541: TNS:no listener
TNS-12560: TNS:protocol adapter error
TNS-00511: No listener
Linux Error: 111: Connection refused
Could indicate a problem with identifiying the hostname correctly or a firewall problem.
So either your hostname command does not return something correctly or your /etc/hosts contains errors or your firewall blocks the connection to the host.
But since it does not contain a hostname, I guess a configuration error with the host.
Sebastian -
Question: 10gR2 database can not see the 11gR2 ASM diskgroup?
Hi there,
env:
uname -rm
2.6.18-92.1.22.el5xen x86_64
Single server(non-RAC)
note: we don't want to upgrade 10gr2 database into 11gR2 yet. But we created the 11gR2 ASM, then a 11gr2 database on ASM, and plan to migrate datafile in 10gR2 database to 11gR2 ASM
1. oracle 10gR2 installed first version: 10.2.0.3.0
2. then install 11gR2 Grid Infrastructure, and created ASM (version 11gr2)
$ sqlplus / as sysasm
SQL*Plus: Release 11.2.0.1.0 Production on Tue Oct 19 10:30:56 2010
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Automatic Storage Management option
SQL> col name form a15
SQL> col COMPATIBILITY form a15
SQL> col DATABASE_COMPATIBILITY form a15
SQL> l
1* select name , STATE, COMPATIBILITY, DATABASE_COMPATIBILITY from v$asm_diskgroup
SQL> /
NAME STATE COMPATIBILITY DATABASE_COMPAT
ORCL_DATA1 MOUNTED 11.2.0.0.0 10.1.0.0.0
ORA_DATA MOUNTED 10.1.0.0.0 10.1.0.0.0
3. in 10gR2 database
sqlplus /
SQL*Plus: Release 10.2.0.3.0 - Production on Tue Oct 19 12:12:31 2010
Copyright (c) 1982, 2006, Oracle. All Rights Reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bit Production
With the Partitioning and Data Mining options
SQL> select * from v$asm_diskgroup;
no rows selected
4. pin the node into css
# /u01/app/product/11.2.0/grid/bin/crsctl pin css -n mynodename
CRS-4000: Command Pin failed, or completed with errors.
Question: 10gR2 database can not see the 11gR2 ASM diskgroup?
please help
Thanks
ScottWhat is the output of
olsnodes -t -n
Also, see unix error log and ohasd error log if you find anything in that -
Oracle Client 11gR2 installation issue on RHEL v5.4 64-bit
Hi,
I am trying to install Oracle Client software 11gR2 on RHEL v5.4 64-bit. I have resolved all the libraries dependency as well as Kernel changes as suggested by the installer. The error in the log file is as attached. At present I have "skipped" this error and proceeded with installation.
While installing the client, the installer fails while configuring the Net CA with error:
INFO: Done parsing command line arguments.
INFO: Oracle Net Services Configuration:
INFO: #
INFO: # An unexpected error has been detected by HotSpot Virtual Machine:
INFO: #
INFO: # SIGSEGV (0xb) at pc=0xe5e97498, pid=27377, tid=4160075984
INFO: #
INFO: # Java VM: Java HotSpot(TM) Client VM (1.5.0_17-b02 mixed mode)
INFO: # Problematic frame:
INFO: # C [libnnz11.so+0x3c498]
INFO: #
INFO: # An error report file with more information is saved as hs_err_pid27377.log
INFO: #
INFO: # If you would like to submit a bug report, please visit:
INFO: # http://java.sun.com/webapps/bugreport/crash.jsp
INFO: #
WARNING: /home/oracle/app/oracle/product/11.2.0/client_1/bin/netca: line 178: 27377 Aborted $JRE $JRE_OPTIONS -classpath $CLASSPATH oracle.ne
t.ca.NetCA $*
WARNING:
INFO:
INFO: Completed Plugin named: Oracle Net Configuration Assistant
INFO: Oracle Net Configuration Assistant failed.
INFO: Oracle Net Configuration Assistant failed.
Also when I invoke the SQL Client; sqlplus user@db and enter the password, the sqlplus exits without any error and returns to the terminal console. Please note earlier I has getting a SELinux violation and have changed it to "permissive" mode
Please let me know how to resolve NetCA installation and the sqplus issue.
Thanks & regards,
VinayHi,
Thet NetCA error occurs during installation and I believe the installer should take care of the ORACLE_HOME variable setting.
But before invoking sqlplus I have set the ORACLE_HOME and LD_LIBRARY_PATH setting in the .bash_profile as mentioned in the installation guide. The snippet of the profile file is:
export ORACLE_HOME=~/app/oracle/product/11.2.0/client_1
export JAVA_HOME=$ORACLE_HOME/jdk
export PATH=$ORACLE_HOME/bin:$JAVA_HOME/bin:$PATH;
export LD_LIBRARY_PATH=$ORACLE_HOME:$LD_LIBRARY_PATH
export TNS_ADMIN=$ORACLE_HOME/network/admin
export TWO_TASK=mmcoedb
I am able to tnsping to the server/service name too but when I try to login using the user/password using sqlplus, it simply exits without any error.
Please let me know how to resolve the error.
Best regards,
Vinay -
Oracle 11gR2 Express Edition on Linux Ubuntu 11.10 howto
h1. Oracle 11gR2 Express Edition on Linux Ubuntu 11.10 howto
Author: Dude
Version: D
Last modified: 14-Jan-2012
You are welcome to add comments, but please do not discuss your installation issues in this thread. If you have a question about the instructions, please add a simple note to the link of your own thread. The instructions are the result of my own research and development. If you would like to use any of the information for your own blog or website, please include a link to this reference to include future changes.
Oracle 11gR2 Express Edition on Linux Ubuntu 11.10 howto
h2. Purpose
This document outlines instructions how to install Oracle XE under Ubuntu 11.10.
Ubuntu or Debian based Linux is not on the list of supported operation systems according to the Oracle documentation at http://download.oracle.com/docs/cd/E17781_01/install.112/e18802/toc.htm. You may want to consider virtualization software like Oracle Virtualbox and install Oracle Enterprise Linux as a free and professional alternative to installing XE under Ubuntu. You can also download pre-build virtual machines that include Oracle XE. You can browse http://otn.oracle.com/community/developer-vm for more information.
h2. Topics
h4. 1) Install Linux Ubuntu
h4. 2) Remote Terminal
h4. 3) Install Additional Software
h4. 4) Managing Swap Space
h4. 5) Modify Kernel Parameters
h4. 6) Oracle Home Directory
...a) Resize the Root Partition
...b) Setup External Storage
h4. 7) ORA-00845: MEMORY_TARGET
h4. 8) Installing Oracle 11gR2 Express Edition
h4. 9) Post-Installation
h4. 10) Tips and Troubleshooting
...a) Port 1521 appears to be in use by another application
...b) cannot touch `/var/lock/subsys/listener': No such file or directory
...c) ORA-00845: MEMORY_TARGET
...d) Apex ADMIN password
...e) SYS and SYSTEM password
...f) Uninstall Oracle 11g XE
...g) Reconfigure Oracle 11g XE
...h) Gnome Classic desktop
...i) Unix vi cursor keys
...j) Backup Database
h4. 11) History
h4. 12) References
h2. 1) Install Linux Ubuntu
The following assumes you have installed Ubuntu 11.10 Desktop Edition for AMD 64-bit, or upgraded from a previous version. Keep in mind that Oracle 11gR2 Express Edition is only available for 64-bit architecture. It is not necessarily a requirement, but I would not bother to install Oracle 11gR2 XE on a system with less than 2 GB of RAM installed. You can download Ubuntu for free at: http://www.ubuntu.com/download/ubuntu and install it using the default settings provided.
You can apply the latest OS patch-sets by clicking the power button icon in the upper right hand corner of the screen and selecting "Updates available..."
h2. 2) Remote Terminal
You will need command line access to perform the installation tasks. Select the top "Dash Home" button of the Unity toolbar and enter the word "terminal", or use CTRL-ALT-t. If you prefer to open a remote terminal session use SSH. Ubuntu does not come with a secure shell login by default. To install it, use the following command:
sudo apt-get install openssh-serverYou cannot login as root unless you set a root password using the "sudo passwd root" command. However, you can get root user access using the "sudo" command, which requires only to re-enter the password of your personal account. Access to "sudo" is controlled by the /etc/sudoers file.
The best way to establish a remote command line session as root is to login with your personal account, e.g.: ssh [email protected], and then type "sudo su -" to become root, or use "sudo <command>" to execute individual commands. If your account does not have "sudo" access you can login as root using "su - root", but will need to know the root password.
h2. 3) Install Additional Software
Oracle 11g Express Edition requires additional software that is not installed by default:
sudo apt-get install alien libaio1 unixodbch2. 4) Managing Swap Space
Oracle demands that the minimum swap space for Oracle Database XE is 2 GB (2095100 KB) or twice the size of RAM, whichever is lesser. Enter the following shell command to verify your swap space:
cat /proc/meminfo | grep -i swap
SwapCached: 0 kB
SwapTotal: 2095100 kB
SwapFree: 2095100 kBYou can increase available swap space by using a swap file as long as disk space permits. The advantage of a swap file versus a swap partition is flexible space management because you can add or delete swap space on demand as necessary. The following will create and enable an additional 1 GB swap file at system startup, located in the /home directory:
Login as root:
sudo su -Enter the following commands:
dd if=/dev/zero of=/home/swapfile bs=1024 count=1048576
mkswap /home/swapfile
swapon /home/swapfile
swapon -aCreate a backup of the original "fstab" file and add the new swap file:
cp /etc/fstab /etc/fstab.backup_`date +%N`
echo '/home/swapfile swap swap defaults 0 0' >> /etc/fstabExit from root and verify the new swap space:
exit
swapon -s
Filename Type Size Used Priority
/dev/sda5 partition 2095100 0 -1
/home/swapfile file 1048572 0 -2Swap space is not a substitute for installed RAM. Swap space is a safeguard that allows the system to move idle processes to disk before the OOM killer will begin to terminate processes in order to free up enough real memory to keep the system operational. The general rule for sizing the swap space depends on the size of installed RAM. If your system has less then 4 GB of RAM the swap space should usually be at least twice this size. If you have more than 8 GB of RAM installed you may consider to use an equal size as swap space. The more RAM you have installed, the less likely you are going to run into memory starvation, and the less likely you are going to need swap space, unless you have a bad process.
h2. 5) Modify Kernel Parameters
Oracle 11gR2 Express Edition requires the following Kernel parameters. Enter the commands exactly as shown:
Login as root:
sudo su -Cut & paste the following directly into a command shell (not a text editor):
cat > /etc/sysctl.d/60-oracle.conf <<-EOF
# Oracle 11g XE kernel parameters
fs.file-max=6815744
net.ipv4.ip_local_port_range=9000 65500
kernel.sem=250 32000 100 128
# kernel.shmmax=429496729
kernel.shmmax=107374183
EOFLoad and verify the new kernel parameters:
service procps start
sudo sysctl -q fs.file-max
sudo sysctl -q kernel.shmmax
sudo sysctl -q net.ipv4.ip_local_port_range
sudo sysctl -q kernel.sem The SHMMAX kernel parameter defines the upper memory limit of a process. It is a safeguard to stop a bad process from using all memory and causing RAM starvation. The Linux default is 32 MB. The official Oracle XE installation documentation suggests a value of 4 GB -1 bytes (429496729). Since Oracle 11g XE has a 1 GB memory limit, a smaller footprint will be a better safeguard for the complete system. Setting the SHMMAX parameter to 107374183 will be sufficient.
h2. 6) Oracle Home Directory
At the time of this writing, Enterprise Linux 6 is not supported for Oracle database yet. It is therefore not possible to confirm Oracle ext4 filesystem compatibility, which is default in Ubuntu 11. According to various information, ext4 may cause a performance problem for Oracle 11g database. The following will show you how to add a ext3 partition to your existing setup.
h3. 6.a) Resize the Root Partition
Provided you have sufficient free disk space, you should be able to resize the root partition to create an extra ext3 filesystem. Considering the 11 GB user datafile limit of the Express Edition, 18 GB should be more than enough.
You can use the free Gparted Live CD to shrink your startup volume. Gparted downloads are available at http://sourceforge.net/projects/gparted/files/gparted-live-stable. When burning the CD, pay attention to burn the raw .iso image and not the possibly "mounted" image. If you are using a virtual machine like Oracle Virtualbox, you can mount the .iso image directly. There are going to be a few prompts when the system starts from the CD, but you can press Return to accept the defaults.
When the Gparted window appears:
- Select your ext4 root partition, usually /dev/sda1
- Select the "Resize/Move" button from the toolbar.
- Enter 18000 into the "Free space following" field and press the Return key.
Be careful not not change the start of the partition!
- Click the "Resize/Move" of the dialog and then then the "Apply" toolbar button.
The process may take several minutes - do not abandon it!
- Select the new unallocated free space of ~ 18 GB and push the "New" button.
- Set the file system to "ext3" and label it "oraclexe" and click the "Add" button.
Be sure to label it oraclexe, otherwise the follow-up instructions will fail.
- Finally select "Apply from the toolbar to apply the changes.
- Quit "Gparted", select "Exit" from the desktop and choose "Reboot" to restart the system.
{code}
After the system has restarted, open a terminal command shell.
Login as root:
{code}
sudo su -
{code}
Backup "fstab" and add the UUID of the partition. The "tr" command remove the quotes:
{code}
cp /etc/fstab /etc/fstab_`date +%N`
uuid=`blkid | grep oraclexe | awk '{print $3}'`
uuid=`echo $uuid | tr -d '\042'`
echo $uuid
echo "$uuid /u01 ext3 errors=remount-ro 0 1" >> /etc/fstab
{code}
The UUID is a unique number and should look similar to:
{code}
UUID=d1db753e-b5dd-4a4c-a61e-259c69867b58
{code}
Restart the system:
{code}
reboot
{code}
Verify the success:
{code}
df -h /u01
{code}
h3. 6.b) Setup External Storage
If you prefer to setup an external drive to install Oracle XE, beware that it can be a fatal mistake to make an entry in /etc/fstab to automount your external storage device. An unavailable device in /etc/fstab will prevent a system startup and prompt for appropriate actions at the console.
The following is an example of how to prepare an external storage device to be used for Oracle 11g, including a script to automatically mount an external drive at system startup without the disadvantages of /etc/fstab. The script will also take into consideration that a device name might shift if you attach additional devices.
To find out which USB devices are connected:
{code}
sudo parted -l
{code}
Look for the device that matches your USB storage. For example: /dev/sdb1
{code}
Model: USB 2.0 Flash Disk (scsi)
Disk /dev/sdb: 2064MB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Number Start End Size File system Name Flags
1 20.5kB 1929MB 1929MB hfs+ mystick
{code}
Initialize the device using ext3 filesystem - this will erase all data. The "-c" option will check for bad blocks (read-only), "-L" is the volume label:
{code}
sudo umount /dev/sdb1
sudo mkfs.ext3 -c -L oraclexe /dev/sdb1
{code}
Install the pmount distribution package:
{code}
sudo apt-get install pmount
{code}
Login as root:
{code}
sudo su -
{code}
Cut & paste the following into the command prompt (not a text editor):
{code}
cat > /etc/init.d/oracle-mount <<-EOF
#! /bin/sh
# /etc/init.d/oracle-mount
VOL_UUID=alphanumeric
VOL_LABEL=oraclexe
VOL_SYMLINK=/u01
mount=/usr/bin/pmount
uuid2dev() {
VOL_DEVICE="\`blkid | grep \$VOL_UUID | awk '{print \$1}'\`"
VOL_DEVICE="\`echo \$VOL_DEVICE | tr -d ':'\`"
echo \$VOL_DEVICE
case "\$1" in
start)
echo "Starting script /etc/init.d/oracle-mount"
uuid2dev
\$mount \$VOL_DEVICE \$VOL_LABEL
if [ -d /media/\$VOL_LABEL ]; then
echo "Mount \$VOL_DEVICE success"
ln -sf /media/\$VOL_LABEL \$VOL_SYMLINK
else
echo "Error mouting \$VOL_DEVICE"
fi
stop)
echo "Stopping script /etc/init.d/oracle-mount"
uuid2dev
/bin/umount \$VOL_DEVICE 2>/dev/null
if [ "\`/usr/bin/pmount | /bin/grep \$VOL_DEVICE\`" ]; then
echo "Error unmounting \$VOL_DEVICE"
else
rm -f \$VOL_SYMLINK
fi
echo "Usage: /etc/init.d/oracle-u01 {start|stop}"
exit 1
esac
### BEGIN INIT INFO
# Provides: oracle-mount
# Required-Start: \$remote_fs \$syslog
# Required-Stop: \$remote_fs \$syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start daemon at boot time
# Description: Mount hotplug-usb drive and create symlink
### END INIT INFO
EOF
{code}
Install the oracle-mount init script:
{code}
chmod 755 /etc/init.d/oracle-mount
update-rc.d oracle-mount defaults 01 99
{code}
Get the UUID of the volume "oraclexe" and update the VOL_UUID in the init script accordingly:
{code}
uuid=`blkid | grep oraclexe | awk '{print $3}'`
echo $uuid
sed -i "s/^VOL_UUID=.*/VOL_$uuid/g" /etc/init.d/oracle-mount
{code}
The UUID of your device will be a unique number, but should be similar to:
{code}
UUID="3f5e9963-b328-49f3-b3e8-a3561ae34106"
{code}
Logout of root and test the init script:
{code}
exit
sudo /etc/init.d/oracle-mount stop
ls /u01
sudo /etc/init.d/oracle-mount start
ls /u01
{code}
Your output should look like:
{code}
Stopping script /etc/init.d/oracle-mount
/dev/sdb1
ls: cannot access /u01: No such file or directory
Starting script /etc/init.d/oracle-mount
/dev/sdb1
Mount /dev/sdb1 success
lost+found
{code}
h2. 7) ORA-00845: MEMORY_TARGET
Oracle 11gR2 XE under Ubuntu 11.10 will result in "ORA-00845: MEMORY_TARGET not support on this system" either at Oracle database startup or during the initial installation. Ubuntu 11.10 uses a new version of the "systemd" system and session manager and has migrated away from /dev/shm and other common directories in favor of /run.
There are several ways how to address the problem. You can either enable /dev/shm shared memory, or change the default memory management of Oracle 11g from AMM (Automatic Memory Management) to ASMM (Automatic Shared Memory Management) as it was in used the previous 10g version. Since AMM is one of the new features of 11g, the following will show you how to make to make AMM work.
Login as root:
{code}
sudo su -
{code}
Cut & paste the following into the command prompt (not a text editor):
{code}
cat > /etc/init.d/oracle-shm <<-EOF
#! /bin/sh
# /etc/init.d/oracle-shm
case "\$1" in
start)
echo "Starting script /etc/init.d/oracle-shm"
# Run only once at system startup
if [ -e /dev/shm/.oracle-shm ]; then
echo "/dev/shm is already mounted, nothing to do"
else
rm -f /dev/shm
mkdir /dev/shm
mount -B /run/shm /dev/shm
touch /dev/shm/.oracle-shm
fi
stop)
echo "Stopping script /etc/init.d/oracle-shm"
echo "Nothing to do"
echo "Usage: /etc/init.d/oracle-shm {start|stop}"
exit 1
esac
### BEGIN INIT INFO
# Provides: oracle-shm
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Bind /run/shm to /dev/shm at system startup.
# Description: Fix to allow Oracle 11g use AMM.
### END INIT INFO
EOF
{code}
Install the oracle-shm init script:
{code}
chmod 755 /etc/init.d/oracle-shm
update-rc.d oracle-shm defaults 01 99
{code}
Restart the system:
{code}
reboot
{code}
Verify the success:
{code}
sudo cat /etc/mtab | grep shm
{code}
{code}
none /run/shm tmpfs rw,nosuid,nodev 0 0
/run/shm /dev/shm none rw,bind 0 0
{code}
The upper limit of shared memory under Linux is set to 50 % of the installed RAM by default. If your system has less than 2 GB of RAM installed, there is still a chance to run into ORA-00845 error if your shared memory is used by other software.
The verify available shared memory, type the following commands:
{code}
sudo df -h /run/shm
{code}
h2. 8) Installing Oracle 11gR2 Express Edition
The final release version of Oracle 11gR2 Express Edition can be downloaded for free at http://otn.oracle.com/database/express-edition/downloads. The software should automatically downloaded into the "Downloads" folder of your home directory.
Enter the following commands to unpack the installer:
{code}
cd ~/Downloads
unzip oracle-xe-11.2.0-1.0.x86_64.rpm.zip
rm oracle-xe-11.2.0-1.0.x86_64.rpm.zip
{code}
The Debian Linux based package management of Ubuntu is not compatible with the Red Hat package manager. The Oracle installer needs to be converted using the following commands:
{code}
cd ~/Downloads/Disk1
sudo alien --to-deb --scripts oracle-xe-11.2.0-1.0.x86_64.rpm
(This may take a few minutes)
rm oracle-xe-11.2.0-1.0.x86_64.rpm
{code}
The following needs to be set for compatibility:
{code}
sudo ln -s /usr/bin/awk /bin/awk
sudo mkdir /var/lock/subsys
{code}
Ubuntu uses different tools to manage services and system startup scripts. The "chkconfig" tool required by the Oracle installer is not available in Ubuntu. The following will create a file to simulate the "chkconfig" tool.
Login as root:
{code}
sudo su -
{code}
Copy & paste the following *directly* into the command prompt to create a file:
{code}
cat > /sbin/chkconfig <<-EOF
#!/bin/bash
# Oracle 11gR2 XE installer chkconfig hack for Debian based Linux (by dude)
# Only run once.
echo "Simulating /sbin/chkconfig..."
if [[ ! \`tail -n1 /etc/init.d/oracle-xe | grep INIT\` ]]; then
cat >> /etc/init.d/oracle-xe <<-EOM
### BEGIN INIT INFO
# Provides: OracleXE
# Required-Start: \\\$remote_fs \\\$syslog
# Required-Stop: \\\$remote_fs \\\$syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Oracle 11g Express Edition
### END INIT INFO
EOM
fi
update-rc.d oracle-xe defaults 80 01
EOF
{code}
Exit root:
{code}
exit
{code}
Set execute privileges:
{code}
sudo chmod 755 /sbin/chkconfig
{code}
Install Oracle 11gR2 Express Edition entering the following commands:
{code}
cd ~/Downloads/Disk1
sudo dpkg --install ./oracle-xe_11.2.0-2_amd64.deb
(This may take a couple of minutes)
{code}
Run the configuration script to create (clone) the database and follow the screen. Accept the default answers, including "y" to startup the database automatically, or modify as required.
{code}
sudo /etc/init.d/oracle-xe configure
(This can take a few minutes - the installation completed successfully.)
{code}
To verify success, the procedure should end showing:
{code}
Starting Oracle Net Listener...Done
Configuring database...Done
Starting Oracle Database 11g Express Edition instance...Done
Installation completed successfully.
{code}
Set a password for the Oracle account:
{code}
sudo passwd oracle
{code}
h2. 9) Post-Installation
In order to use sqlplus and other tools, the Oracle account requires specific environment variables. The following will set these variables automatically at every Oracle login:
Login as the Oracle user:
{code}
su - oracle
{code}
Copy the default account skeleton files and add the Oracle env script to .profile:
{code}
cp /etc/skel/.bash_logout ./
cp /etc/skel/.bashrc ./
cp /etc/skel/.profile ./
echo "" >>./.profile
echo '. /u01/app/oracle/product/11.2.0/xe/bin/oracle_env.sh' >>./.profile
{code}
By default, the Oracle Database XE graphical user interface is only available at the local server, but not remotely. The following will enable remote logins:
Login as the Oracle user:
{code}
su - oracle
{code}
Login as SYSDBA and execute the following:
{code}
sqlplus / as sysdba
SQL> EXEC DBMS_XDB.SETLISTENERLOCALACCESS(FALSE);
exit
{code}
See http://download.oracle.com/docs/cd/E17781_01/admin.112/e18585/toc.htm for more information.
h3. a) Unity desktop configurations
The Oracle XE menu under the previous Gnome Classic desktop shows several useful scripts to backup the database, start and stop the database, etc. Under the Unity based desktop this menu is not available. You can either switch to the Gnome Classic desktop as outlined in chapter 2, or perform the following steps to modify and copy the scripts as outlined below. The start and stop database scripts will also be modified to perform a progress feedback.
Login as user root:
{code}
sudo su -
{code}
Convert desktop files:
{code}
cd /usr/share/applications
sed -i 's/Categories.*/Categories=Database;Office;Development;/g' oraclexe*
sed -i 's/MultipleArgs/X-MultipleArgs/g' oraclexe*
sed -i 's/MimeType.*/MimeType=application\/x-database/g' oraclexe*
sed -i 's/.png//g' oraclexe*
sed -i 's/Terminal=false/Terminal=true/g' oraclexe-startdb.desktop
sed -i 's/Terminal=false/Terminal=true/g' oraclexe-stopdb.desktop
{code}
Exit root:
{code}
exit
{code}
Login as user Oracle:
{code}
su - oracle
{code}
Modify database start and stop scripts:
{code}
cd /u01/app/oracle/product/11.2.0/xe/config/scripts
cp startdb.sh start.sh_orig
cp stopdb.sh stopdb.sh_orig
sed -i 's/>.*//g' startdb.sh
sed -i 's/>.*//g' stopdb.sh
{code}
You will need SYSDBA privileges and set Oracle environment variables in order to use your regular user account.
Login to your regular user account:
{code}
su - dude
{code}
Enter the folowing command:
{code}
sudo usermod -a -G dba dude
{code}
Then update your profile to automatically set the necessary Oracle environment variables:
{code}
echo "" >>./.profile
echo '. /u01/app/oracle/product/11.2.0/xe/bin/oracle_env.sh' >>./.profile
{code}
Update your Desktop folder to contain useful Oracle XE scripts:
{code}
cp /usr/share/applications/oraclexe* ~/Desktop
chmod 750 ~/Desktop/oraclexe*
{code}
To verify success re-login and try "sqlplus":
{code}
su - oracle
sqlplus / as sysdba
{code}
h2. 10) Tips and Troubleshooting
h3. 10. a) Port 1521 appears to be in use by another application
Error: Port 1521 appears to be in use by another application. Specify a different port.This error happens after a previously unsuccessful configuration attempt using /etc/init.d/oracle-xe configure script. The script was able to start the Listener process, but most likely failed to continue to clone the database, e.g. ORA-00845. The following should correct the problem:
Determine the oracle listener process that is already running:
{code}
$ ps -ef | grep oracle
{code}
Your output should be similar to:
{code}
oracle 19789 1 0 19:46 ? 00:00:00 /u01/app/oracle/product/11.2.0/xe/bin/tnslsnr
{code}
Then kill the process, using the appropriate process id, for instance:
{code}
$ sudo kill -9 19789
{code}
h3. 10.b) cannot touch `/var/lock/subsys/listener': No such file or directory
Starting Oracle Net Listener...touch: cannot touch `/var/lock/subsys/listener': No such file or directoryThis error occurs when you run /etc/init.d/oracle-xe configure, but failed the preinstallation step to create the /var//lock/subsys directory as outlined in chapter 8.
h3. 10.c) ORA-00845: MEMORY_TARGET
ORA-00845: MEMORY_TARGET not supported on this system See chapter 7 to enable /dev/shm and verify free space available in /run/shm
h3. 10.d) Apex ADMIN password
According to the Oracle documentation, the password for the INTERNAL and ADMIN Oracle Application Express user accounts is initially the same as the SYS and SYSTEM administrative user accounts. Well, I tried several times without success. To reset the Apex Admin password:
Login as user oracle:
{code}
su - oracle
{code}
Login as SYSDBA and type the following:
{code}
sqlplus / as sysdba
{code}
At the SQL prompt, type the following to be prompted to change the password:
{code}
SQL> @?/apex/apxxepwd.sql
exit
{code}
When done, open your browser and go to http://127.0.0.1:8080/apex
Workspace: Internal
Username: ADMIN
Password: password you set with apxxepwd.sql
I will prompt you to reset the password:
old password: password you set with apxxepwd.sql
new password: final_password
You can also login as the Apex Admin using http://127.0.0.1:8080/apex/apex_admin
h3. 10.e) SYS and SYSTEM password
Use the following commands to reset the SYS and SYSTEM passwords if necessary:
Login as the Oracle user:
{code}
su - oracle
{code}
Login as SYSDBA and type the following at the SQL prompt:
{code}
sqlplus / as sysdba
SQL> alter user sys identified by "password" account unlock;
SQL> alter user system identified by "password" account unlock;
SQL> exit
{code}
h3. 10.f) Uninstall Oracle 11g XE
The following will completely uninstall and remove Oracle 11g XE:
Open a terminal seesion and login as user root:
{code}
sudo su -
{code}
Enter the following:
{code}
/etc/init.d/oracle-xe stop
dpkg --purge oracle-xe
rm -r /u01/app
rm /etc/default/oracle-xe
update-rc.d -f oracle-xe remove
update-rc.d -f oracle-mount remove
update-rc.d -f oracle-shm remove
{code}
h3. 10.g) Reconfigure Oracle 11g XE
Type the following commands in a terminal window:
{code}
sudo /etc/init.d/oracle-xe stop
sudo rm /etc/default/oracle-xe
sudo /etc/init.d/oracle-xe configure
{code}
h3. 10.h) Gnome Classic desktop
Ubuntu 11 moved from the Gnome Classic desktop to Unity and removed the "Ubuntu Classic" login option. Unity was designed to make more efficient use of space given a limited screen size and touch screens. If you prefer to use the Gnome Classic desktop, enter the following into a terminal window:
{code}
sudo apt-get install gnome-panel
{code}
To log into the Gnome Classic desktop, select the "Gearwheel" at the login screen and select "Gnome Classic".
h3. 10.i) Unix vi cursor keys
The instructions in this tutorial do not require the use of any text editor. However, if you would like use the backspace and cursor keys in the "vi-editor", the following needs to be installed:
{code}
sudo apt-get install vim
{code}
h3. 10.j) Backup Database
In order to perform an online database backup using the supplied "Backup Database" script, the database needs to run in Archive-Log mode. This can be setup using the following commands:
Login as the Oracle user:
{code}
su - oracle
{code}
Login as SYSDBA and type the following:
{code}
sqlplus / as sysdba
SQL> shutdown immediate
SQL> startup mount
SQL> alter database archivelog;
SQL> alter database open;
SQL> exit
{code}
h2. 11) History
Version: A, 24-Oct-2011
- first release
Version: B, 25-Oct-2011
- reduced instructions.
- corrected errors in 6a and 8.
- new strategy addressing ORA-00845 error.
- rework of chapter 10.
Version: C, 30-Nov-2011
- corrected typo in 6a
- new procedures in 9a.
- added progress feedback to database scripts.
Version D, 14-Jan-2012
- corrected presentation errors.
- reorganized instructions.
h3. 12) References
http://download.oracle.com/docs/cd/E17781_01/install.112/e18802/toc.htm
http://askubuntu.com/questions/57297/why-has-var-run-been-migrated-to-run
http://lwn.net/Articles/436012/
https://forums.oracle.com/forums/thread.jspa?threadID=2300750&tstart=0
Kind regards and best of luck!
Dude.Excellent Blog. Thank You
Small clarification on Step **6) Oracle Home Directory, ...a) Resize the Root Partition**
Ubuntu 11.10 has Gparted available as a Ubuntu software download, DONT use that while trying the above step, instead download the ISO file from http://sourceforge.net/projects/gparted/files/gparted-live-stable/ gparted-live-0.12.0-5.iso (124.6 MB)
Burn that ISO file on a Blank DVD, reboot the Ubuntu , during startup select Boot from DVD Option if not already selected. this will take to Boot Menu Options of Gparted Live then select the first menu option, and this allows to do further action such as Re-sizing .
and once you have chosen and executed step a) . do NOT run step b) also that is "Setup External Storage"
I hope this minor clarification can avoid some confusion
Regards
Madhusudhan Rao
Edited by: MadhusudhanRao on Mar 24, 2012 11:30 PM -
Install Oracle 11gR2 Express Edition on Ubuntu Linux 11.04 (64-bit) Howto
h2. Install Oracle 11gR2 Express Edition on Ubuntu Linux 11.04 (64-bit) Howto
Version: B
Author: Dude, 24. May 2011
The following are step by step instructions how to install Oracle 11gR2 Express Edition (Beta) under Linux Ubuntu 11.04, 64-bit.
Access to the Internet is required.
The instructions cover the following additional topics:
- Converting Red Hat based Oracle XE installer to Ubuntu.
- Work-around for missing /sbin/chkconfig tool.
- Install Oracle XE into a different directory or disk volume.
- Relocate and configure the Oracle user and default login directory.
- Uninstall, reconfigure and perform first database backup.
- Notes and web links.
- Troubleshooting
h3. A) System Setup and Prerequisites
h4. A.1. System Access
You will need terminal command line, root and system console access to perform the setup tasks.
To open a Terminal at the system console:
Menu Applications > Accessories > TerminalThe following commands will enable remote ssh login with root access:
sudo apt-get install openssh-server
sudo passwd root
Verify:
ssh root@xe_server_host_nameh4. A.2. Software Prerequisites
The following is required in order to install Oracle 11gR2 XE:
sudo apt-get install alien libaio1 unixodbcThe following is not required, but it will fix backspace and arrow keys in case you prefer using the vi-editor:
sudo apt-get install vimh4. A.3. System Swap space
Minimum swap space required is 2 GB. You can increase swap space if necessary using a swap file:
To analyze current swap space and memory configuration:
sudo cat /proc/meminfo
To install a 1 GB swapfile named swapfile in /, for example:
sudo dd if=/dev/zero of=/swapfile bs=1024 count=1048576
(this may take a while)
sudo mkswap /swapfile
sudo swapon /swapfile
sudo cp /etc/fstab /etc/fstab.orig
sudo echo '/swapfile swap swap defaults 0 0' >> /etc/fstab
Verify:
sudo swapon -a
sudo swapon -sh4. A.4. Kernel Parameters
Oracle 11g XE requires the following additional kernel parameters:
sudo nano /etc/sysctl.d/60-oracle.conf
(Enter the following)
# Oracle 11g XE kernel parameters
fs.file-max=6815744
net.ipv4.ip_local_port_range=9000 65000
kernel.sem=250 32000 100 128
kernel.shmmax=536870912
(Save the file)
Note: kernel.shmmax = max possible value, e.g. size of physical RAM.
Verify: sudo cat /etc/sysctl.d/60-oracle.conf
Load new kernel parameters:
sudo service procps start
Verify:
sudo sysctl -q fs.file-max
-> fs.file-max = 6815744h4. A.5. Oracle Installation Directory
The current Oracle Installation Guide uses the same directory like in previous versions: /usr/lib/oracle/xe/app/oracle/product/11.2.0/server. However, the current Beta installation uses Oracle Flexible Architecture (OFA) and installs into /u01/app/oracle/product/11.2.0/xe. Due to size limitations of Oracle XE it may not be necessary to store the installation to a specific directory or separate volume, but it is possible:
Install Oracle XE to separate disk volume:
From the system console menu: System > Administration > Disk Utility
Select "ext3" filesystem for Oracle compatibility and specify a Volume label, e.g. Oracle.
Notice the device name e.g. /dev/sdb
Get the drive UUID:
sudo blkid
e.g. /dev/sdb: UUID="d19a2d8f-da43-4802-8bdb-0703c855e23a"
Modify /etc/fstab to automatically mount the volume at system startup:
sudo cp /etc/fstab /etc/fstab.original
sudo nano /etc/fstab
(Add the following, using determined UUID, for exmple)
UUID=d19a2d8f-da43-4802-8bdb-0703c855e23a /u01 ext3 defaults,errors=remount-ro 0 1
(Save the file)
Create the mount-point, mount the new volume and set ownership and privileges:
sudo mkdir /u01
sudo mount -a
sudo chown root:root /u01
sudo chmod 755 /u01
Verify:
df -h
or restart the systemYou can also install Oracle XE into a specific directory:
Create a symbolic link to store the installation into an existing directory, for instance:
sudo mkdir /home/oracle-xe
sudo ln -s /home/oracle-xe /u01h3. C) Oracle 11g XE Download and Installation
h4. C.1. Download and convert the Installer from Red Hat to Ubuntu
Please see section E.3. to download the Oracle 11gR2 XE installer.
Select the version listed for Linux x64.
sudo unzip linux.x64_11gR2_OracleXE.zip
sudo alien --to-deb --scripts oracle-xe-11.2.0-0.5.x86_64.rpm
(This may take a while)h4. C.2. Create a special chkconfig script
The Red Hat based installer of Oracle XE 11gR2 beta relies on +/sbin/chkconfig+, which is not used in Ubuntu. The chkconfig package available for the current version of Ubuntu produces errors and my not be safe to use. Below is a simple trick to get around the problem and install Oracle XE successfully:
Create /sbin/chconfig:
sudo nano /sbin/chkconfig
(Cut and paste the following)
#!/bin/bash
# Oracle 11gR2 XE installer chkconfig hack for Debian by Dude
file=/etc/init.d/oracle-xe
if [[ ! `tail -n1 $file | grep INIT` ]]; then
echo >> $file
echo '### BEGIN INIT INFO' >> $file
echo '# Provides: OracleXE' >> $file
echo '# Required-Start: $remote_fs $syslog' >> $file
echo '# Required-Stop: $remote_fs $syslog' >> $file
echo '# Default-Start: 2 3 4 5' >> $file
echo '# Default-Stop: 0 1 6' >> $file
echo '# Short-Description: Oracle 11g Express Edition' >> $file
echo '### END INIT INFO' >> $file
fi
update-rc.d oracle-xe defaults 80 01
(Save the file)
Set appropriate execute privileges:
chmod 755 /sbin/chkconfig
Note: You should remove the /sbin/chkconfig file after successful installation of Oracle XE.
h4. C.3. Install and configure Oracle XE
sudo dpkg --install ./oracle-xe_11.2.0-1.5_amd64.deb
/etc/init.d/oracle-xe configure
(This will take a while)
Remove the /sbin/chkconfig script, which is no longer needed.
sudo rm /sbin/chkconfigh4. C.4. Relocate and Configure the Oracle user login
The Oracle XE installer specifies /u01/app/oracle as the login directory for the Oracle user. Although not really necessary, the following will relocate the Oracle user $HOME to a standard location and create standard /etc/skel login files:
Exit all Oracle user sessions:
sudo /etc/init.d/oracle-xe stop
sudo kill -9 `ps -ef | grep oracle | grep -v grep | awk '{print $2}'`
sudo userdel oracle
sudo useradd -s /bin/bash -G dba -g dba -m oracle
sudo passwd oracle
Verify:
sudo id oracle
-> uid=1001(oracle) gid=1001(dba) groups=1001(dba)h4. C.5. Setup Oracle environment variables
In order to use sqlplus and other tools, the Oracle account requires certain environment variables. The following will set these variables automatically at every interactive Oracle login:
sudo echo '. /u01/app/oracle/product/11.2.0/xe/bin/oracle_env.sh' >> /home/oracle/.bashrch4. C.6. Oracle sudo root access
It is not essential to allow the Oracle user to use sudo, but it is convenient:
usermod -G admin oracle
Verify:
id oracle
-> uid=1001(oracle) gid=1001(dba) groups=1001(dba),120(admin)
sudo su -
-> Enter Oracle account passwordh4. C.7. Oracle 11g XE Post-installation
After you install Oracle Database XE, its graphical user interface is only available from the local server, but not remotely.
The following will correct the problem if necessary:
Login as user Oracle or use:
su - oracle
sqlplus / as sysdba
At the SQL prompt, enter the following command:
EXEC DBMS_XDB.SETLISTENERLOCALACCESS(FALSE);
exith3. D) Unintstall, Reconfigure and Troubleshooting
h4. D.1. Uninstall Oracle 11g XE
The following will completely uninstall and remove Oracle 11g XE:
Login as user root:
sudo su -
/etc/init.d/oracle-xe stop
dpkg --purge oracle-xe
rm -r /u01/app
rm /etc/default/oracle-xe
update-rc.d -f oracle-xe removeh4. D.2. Reconfigure Oracle 11g XE
Type the following in a terminal window:
/etc/init.d/oracle-xe stop
sudo rm /etc/default/oracle-xe
/etc/init.d/oracle-xe configureh4. D.3. Enable Archivelog mode and perform a database backup
Login as user Oracle:
su - oracle
sqlplus / as sysdba
At the SQL prompt, enter the following commands:
shutdown immediate
startup mount
alter database archivelog;
alter database open;
exit
Login to system console of the Oracle user account:
Select Applications > Oracle Database 11g Express Edition > Backup Databaseh3. E) Notes
h4. E.1. Oracle 11g XE limitiations overview
- It will consume, at most, processing resources equivalent to one CPU.
- Only one installation of Oracle Database XE can be performed on a single computer.
- The maximum amount of user data in an Oracle Database XE database cannot exceed 11 GB.
- The maximum amount of RAM that Oracle XE uses cannot exceed 1 GB, even if more is available.
- HTTPS is not supported natively with the HTTP listener built into Oracle Database XE.
h4. E.2. Documentation and Links
Official documentation for Oracle 11gR2 XE can be found at:
http://www.oracle.com/pls/xe112/homepage
h4. E.3. Oracle 11g XE downloads
The Installer is available from the Oracle Technology Network at:
http://www.oracle.com/technology/products/database/xe
http://www.oracle.com/technetwork/database/express-edition/downloads/index.html
h4. E.4 APEX links and archives
The APEX archives can be found at:
http://www.oracle.com/technetwork/developer-tools/apex/application-express/all-archives-099381.html
The APEX download site is:
http://www.oracle.com/technetwork/developer-tools/apex/downloads/index.html
h3. F) Troubleshooting
... in progress
Regards and best of luck!
Edited by: Dude on May 25, Version B: various corrections. chkconfig package (A.2.) not required.even though I am admin user.Admin user is a MS Windows term, that does not apply to Linux or Unix in the same fashion.
The configuration script tells you "You must be root user to run the configure script. Login as root user and
then run the configure script."
This is most likely correct because your account is not root and does not have UID 0. What you can do is to login as root e.g. sudo su -, as the message suggest, or use "sudo /etc/init.d/oracle-xe configure", provided your account is defined in the /etc/sudoers file to perform root/admin actions.
Btw, do not modify /etc/passwd and /etc/group to give you admin privileges or try to create a another root account under a different name. That's not the way it works and usually leads to nasty problems. -
Owbsys.wb_rt_api_exec.open fails after upgrade to OWB 11gR2
The following code is used as a PLSQL wrapper to execute OWB mappings and is based on the good old run_my_own_stuff.sql. We have been mandated to use Tivoli as the corporate scheduler, meaning we do not have Workflow as a solution. We have implemented the audit_execution_id as an input parameter to all the mappings to be able to link the data to the OWBSYS audit tables, as well as return mapping performance and success info to the execution process/session. I have implemented this exact same procedure in 10gR1, 10gR2 and 11gR1 (current dev env) with no problems at all - the code ports easily. However following an upgrade (actually an export/import of the repository from 11gR1 on a 64bit solaris to 11gR2 on Exadata running enterprise linux 5) - actually the test server (I know, I know, I said the same thing!), the code now fails on the wb_rt_api_exec.open line (highlighted).
CREATE OR REPLACE PROCEDURE bi_ref_data.map (p_map_name IN VARCHAR2)
-- Procedure to execute ETL mapping package via command line call
-- Mapping names are held in the BI_REF_DATA.MAP_NAME table
-- with the mapping type and location data
AS
v_repos_owner VARCHAR2 (30) := <repository_owner>;
v_workspace_owner VARCHAR2 (30) := <workspace_owner>;
v_workspace_name VARCHAR2 (30) := <workspace_name>;
v_loc_name VARCHAR2 (30);
v_map_type VARCHAR2 (30);
v_map_name VARCHAR2 (30) := UPPER (p_map_name);
v_retval VARCHAR2 (255);
v_audit_execution_id NUMBER; -- Audit Execution Id
v_audit_result NUMBER;
v_start_time timestamp := LOCALTIMESTAMP;
v_end_time timestamp;
v_execution_time NUMBER;
v_record_rate NUMBER := 0;
v_records_selected NUMBER;
v_records_inserted NUMBER;
v_records_updated NUMBER;
v_records_deleted NUMBER;
v_records_merged NUMBER;
v_errors NUMBER;
v_failure VARCHAR2 (4000);
e_no_data_found_in_audit exception;
v_audit_exec_count NUMBER;
e_execution_id_error exception;
BEGIN
SELECT UPPER (loc_name), UPPER (map_type)
INTO v_loc_name, v_map_type
FROM bi_ref_data.owb_map_table
WHERE UPPER (map_name) = UPPER (v_map_name);
IF UPPER (v_map_type) = 'PLSQL'
THEN
v_map_type := 'PLSQL';
ELSIF UPPER (v_map_type) = 'SQL_LOADER'
THEN
v_map_type := 'SQLLoader';
ELSIF UPPER (v_map_type) = 'SAP'
THEN
v_map_type := 'SAP';
ELSIF UPPER (v_map_type) = 'DATA_AUDITOR'
THEN
v_map_type := 'DataAuditor';
ELSIF UPPER (v_map_type) = 'PROCESS'
THEN
v_map_type := 'ProcessFlow';
END IF;
-- Changed code for owb11gr2
-- owbsys.wb_workspace_management.set_workspace (v_workspace_name, v_workspace_owner);
owbsys.wb_rt_script_util.set_workspace (v_workspace_owner || '.' || v_workspace_name);
v_audit_execution_id := owbsys.wb_rt_api_exec.open (v_map_type, v_map_name, v_loc_name);
IF v_audit_execution_id IS NULL
OR v_audit_execution_id = 0
THEN
RAISE e_execution_id_error;
END IF;
v_retval := v_retval || 'audit_execution_id=' || TO_CHAR (v_audit_execution_id);
v_audit_result := owbsys.wb_rt_api_exec.execute (v_audit_execution_id);
IF v_audit_result = owbsys.wb_rt_api_exec.result_success
THEN
v_retval := v_retval || ' --> SUCCESS';
ELSIF v_audit_result = owbsys.wb_rt_api_exec.result_warning
THEN
v_retval := v_retval || ' --> WARNING';
ELSIF v_audit_result = owbsys.wb_rt_api_exec.result_failure
THEN
v_retval := v_retval || ' --> FAILURE';
ELSE
v_retval := v_retval || ' --> UNKNOWN';
END IF;
DBMS_OUTPUT.put_line (v_retval);
owbsys.wb_rt_api_exec.close (v_audit_execution_id);
v_end_time := LOCALTIMESTAMP;
v_execution_time := bi_ref_data.get_seconds_from_interval (v_end_time - v_start_time);
v_retval := 'Execution time = ' ||
v_execution_time ||
' seconds.';
DBMS_OUTPUT.put_line (v_retval);
SELECT COUNT (w.rta_select)
INTO v_audit_exec_count
FROM owbsys.owb$wb_rt_audit w
WHERE w.rte_id = v_audit_execution_id;
IF v_audit_exec_count = 0
THEN
RAISE e_no_data_found_in_audit;
END IF;
SELECT w.rta_select,
w.rta_insert,
w.rta_update,
w.rta_delete,
w.rta_merge,
rta_errors
INTO v_records_selected,
v_records_inserted,
v_records_updated,
v_records_deleted,
v_records_merged,
v_errors
FROM owbsys.owb$wb_rt_audit w
WHERE w.rte_id = v_audit_execution_id;
v_retval := v_records_selected || ' records selected';
DBMS_OUTPUT.put_line (v_retval);
IF v_records_inserted > 0
THEN
v_retval := v_records_inserted || ' inserted';
DBMS_OUTPUT.put_line (v_retval);
END IF;
IF v_records_updated > 0
THEN
v_retval := v_records_updated || ' updated';
DBMS_OUTPUT.put_line (v_retval);
END IF;
IF v_records_deleted > 0
THEN
v_retval := v_records_deleted || ' deleted';
DBMS_OUTPUT.put_line (v_retval);
END IF;
IF v_records_merged > 0
THEN
v_retval := v_records_merged || ' merged';
DBMS_OUTPUT.put_line (v_retval);
END IF;
IF v_errors > 0
THEN
v_retval := v_errors || ' errors';
DBMS_OUTPUT.put_line (v_retval);
END IF;
IF v_execution_time > 0
THEN
v_record_rate := TRUNC ( (v_records_inserted + v_records_updated + v_records_deleted + v_records_merged) / v_execution_time, 2);
v_retval := v_record_rate || ' records/sec';
DBMS_OUTPUT.put_line (v_retval);
END IF;
IF (v_audit_result = owbsys.wb_rt_api_exec.result_failure
OR v_audit_result = owbsys.wb_rt_api_exec.result_warning)
THEN
FOR cursor_error
IN (SELECT DISTINCT aml.plain_text
FROM owbsys.owb$wb_rt_audit_messages am
INNER JOIN
owbsys.owb$wb_rt_audit_message_lines aml
ON am.audit_message_id = aml.audit_message_id
WHERE am.audit_execution_id = v_audit_execution_id)
LOOP
DBMS_OUTPUT.put_line (cursor_error.plain_text);
END LOOP;
END IF;
-- OWBSYS.wb_rt_api_exec.close (v_audit_execution_id);
COMMIT;
EXCEPTION
WHEN e_execution_id_error
THEN
raise_application_error (-20011, 'Invalid execution ID returned from OWB');
-- RAISE;
WHEN e_no_data_found_in_audit
THEN
raise_application_error (-20010, 'No data found in audit table for execution_id - ' || v_audit_execution_id);
-- RAISE;
WHEN NO_DATA_FOUND
THEN
raise_application_error (-20001, 'Error in reading data from OWBSYS tables.');
-- RAISE;
END;
Does anyone out there know if there is a difference between 11gR1 and R2 in the way that the wb_rt_api_exec function works?
Is there a simple way to retrieve the audit_id before executing the mapping, or at a push during the mapping so that we can maintain the link between the session data and the OWBSYS audit data?
MartinHi David, I have been reading some of your posts and blogs around OWB and I still have not found the answer.
OK, thereis/was a script that Oracle Support/forums/OTN sent out a while ago called "run_my_iowb_stuff" - I am sure you will be familiar with it. I based the code I uploaded on it and added additional functionality. In essence, I wanted to use the audit_id as an input parameter tot he mapping, so that I can register the audit_id in the management tables, and associate each row of loaded data with a specific mapping_id which would allow a simple link to the owbsys audit tables to complete the audit circle. To that end, I used the owbsys.wb_rt_api_exec.open procedure to register the mapping execution, and then on the execute procedure of the same package, I passed this audit_id in as a custom parameter:
<<snip>>
owbsys.wb_workspace_management.set_workspace (v_workspace_name, v_workspace_owner);
v_audit_execution_id := owbsys.wb_rt_api_exec.open (v_map_type, v_map_name, v_loc_name, 'PLSQL');
IF v_audit_execution_id IS NULL
OR v_audit_execution_id = 0
THEN
RAISE e_execution_id_error;
END IF;
v_retval := v_retval || 'audit_execution_id=' || TO_CHAR (v_audit_execution_id);
IF v_include_mapping_id > 0 -- if non-zero, submit owb execution id as an input parameter to the map process
THEN
owbsys.wb_rt_api_exec.override_input_parameter (
v_audit_execution_id,
'p_execution_id',
TO_CHAR (v_audit_execution_id),
owbsys.wb_rt_api_exec.parameter_kind_custom
END IF;
<<snip>>
The execution is closed, also by the use of the audit_id ( "owbsys.wb_rt_api_exec.close (v_audit_execution_id)" )
I can also use the audit_id to inspect the audit tables to retrieve the records processed as well as any associated error messages, and format them for the calling application (owSQL*Plus, which is normally the context of our current use).
This procedure has been working weel up to now until we moved over to 11gR2 when all of a sudden the audit_id is not returned when executing "v_audit_execution_id := owbsys.wb_rt_api_exec.open (v_map_type, v_map_name, v_loc_name);". Prior to 11gR2 this worked like a charm - now it has crashed to a halt.
As an interesting twist, I have tried to substitute a sequence number for the audit_id, and then tried to get the audit_id after the mapping completes, so that I can put both the sequence and audit id in a table so it maintains the link. However in attempting to use the owbsys.wb_rt_script_util.run_task procedure which now appears to be the only thing left working, I was astonished to see the following output in sqlplus:
SQL> exec map1('stg_brand')
Stage 1: Decoding Parameters
| location_name=STAGE_MOD
| task_type=PLSQLMAP
| task_name=STG_BRAND
Stage 2: Opening Task
| l_audit_execution_id=2135
Stage 3: Overriding Parameters
Stage 4: Executing Task
| l_audit_result=1 (SUCCESS)
Stage 5: Closing Task
Stage 6: Processing Result
| exit=1
--> SUCCESS
Execution time = .647362 seconds.
records/sec
PL/SQL procedure successfully completed.
SQL>
This output seems so identical to the "run_my_owb_stuff" that either Oracle support generated their "run_my_owb_stuff" as a lightweight owbsys.wb_rt_script_util.run_task procedure, or Oracle incorporated the "run_my_owb_stuff" script into their owbsys.wb_rt_script_util.run_task procedure! Which way round I cannot say, but it is surely one or the other! To make matters worse, I have raised this with Oracle Support, and they have the temerity to claim that they do not support the "run_my_owb_stuff" script, but think enough of it to incorporate it into their own package in a production release!
To overcome my problems, in the short term, I need to be able to access the audit_id either during or after the execution of the mapping, so that I can at least associate that with a sequence number I am having to pass in as a parameter to each mapping. In the longer term, i would like a solution to be able to access the audit_id before I execute the mapping, as I could by calling the "owbsys.wb_rt_api_exec.open " procedure. Ideally this would be solved first and I would not need to use a sequence at all.
Hope this clarifies things a bit.
Regards
Martin -
11gR2 Install Error, Listener is not up or database service is not registered with it
Hi all,
I'm currently studying towards my OCA, I've passed 1z0-051 (SQL Fundementals I), and now I'm moving onto 1z0-052 (Admin 1).
Im really having trouble creating a database in Oracle 11g R2 Enterprise Edition. I install the software no problem. Then I create a database, and during the creation I have to createsa listener which uses TCP (default port:1521) and IPC. whilst creating the database I get the following error
'Listener is not up or database service is not registered with it. Start the Listener and register database service and run EM configuration Assistant again.'
Now, before you lynch me, I have searched this forum for answer to this for a day and a half. I've also tried google, i just can't find a answer that sorts out my problem. please assist me.
I'm running on Windows 7 Professional (32bit) (I have previously tried on the 64 bit version with teh same results).
Here's teh contents of my listener.ora file:
# listener.ora Network Configuration File: C:\app\Damien\product\11.2.0\dbhome_1\network\admin\listener.ora
# Generated by Oracle configuration tools.
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = CLRExtProc)
(ORACLE_HOME = C:\app\Damien\product\11.2.0\dbhome_1)
(PROGRAM = extproc)
(ENVS = "EXTPROC_DLLS=ONLY:C:\app\Damien\product\11.2.0\dbhome_1\bin\oraclr11.dll")
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = ipc))
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.10.4)(PORT = 1521))
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
ADR_BASE_LISTENER = C:\app\Damien
Here's the contents of my tsnames.ora:
# tnsnames.ora Network Configuration File: C:\app\Damien\product\11.2.0\dbhome_1\network\admin\tnsnames.ora
# Generated by Oracle configuration tools.
ORACLR_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
(CONNECT_DATA =
(SID = CLRExtProc)
(PRESENTATION = RO)
Here is the last fe lines of my emConfig.log:
Jan 18, 2014 9:38:22 AM oracle.sysman.emcp.util.GeneralUtil isLocalConnectionRequired
CONFIG: isLocalConnectionRequired: true
Jan 18, 2014 9:38:22 AM oracle.sysman.emcp.util.GeneralUtil initSQLEngine
CONFIG: isLocalConnectionRequired: true. Connecting to database instance locally.
Jan 18, 2014 9:38:22 AM oracle.sysman.emcp.util.GeneralUtil initSQLEngineLoacly
CONFIG: SQLEngine connecting with SID: orcl, oracleHome: C:\app\Damien\product\11.2.0\dbhome_1, and user: SYSMAN
Jan 18, 2014 9:38:22 AM oracle.sysman.emcp.util.GeneralUtil initSQLEngineLoacly
CONFIG: SQLEngine created successfully and connected
Jan 18, 2014 9:38:23 AM oracle.sysman.emcp.ParamsManager checkListenerStatusForDBControl
CONFIG: ORA-12514: TNS:listener does not currently know of service requested in connect descriptor
oracle.sysman.assistants.util.sqlEngine.SQLFatalErrorException: ORA-12514: TNS:listener does not currently know of service requested in connect descriptor
at oracle.sysman.assistants.util.sqlEngine.SQLEngine.executeImpl(SQLEngine.java:1655)
at oracle.sysman.assistants.util.sqlEngine.SQLEngine.executeSql(SQLEngine.java:1903)
at oracle.sysman.emcp.ParamsManager.checkListenerStatusForDBControl(ParamsManager.java:3230)
at oracle.sysman.emcp.EMReposConfig.unlockMGMTAccount(EMReposConfig.java:1001)
at oracle.sysman.emcp.EMReposConfig.invoke(EMReposConfig.java:346)
at oracle.sysman.emcp.EMReposConfig.invoke(EMReposConfig.java:158)
at oracle.sysman.emcp.EMConfig.perform(EMConfig.java:253)
at oracle.sysman.assistants.util.em.EMConfiguration.run(EMConfiguration.java:583)
at oracle.sysman.assistants.dbca.backend.PostDBCreationStep.executeImpl(PostDBCreationStep.java:968)
at oracle.sysman.assistants.util.step.BasicStep.execute(BasicStep.java:210)
at oracle.sysman.assistants.util.step.Step.execute(Step.java:140)
at oracle.sysman.assistants.util.step.StepContext$ModeRunner.run(StepContext.java:2667)
at java.lang.Thread.run(Thread.java:595)
Jan 18, 2014 9:38:23 AM oracle.sysman.emcp.EMConfig perform
SEVERE: Listener is not up or database service is not registered with it. Start the Listener and register database service and run EM Configuration Assistant again .
Refer to the log file at C:\app\Damien\cfgtoollogs\dbca\orcl\emConfig.log for more details.
Jan 18, 2014 9:38:23 AM oracle.sysman.emcp.EMConfig perform
CONFIG: Stack Trace:
oracle.sysman.emcp.exception.EMConfigException: Listener is not up or database service is not registered with it. Start the Listener and register database service and run EM Configuration Assistant again .
at oracle.sysman.emcp.ParamsManager.checkListenerStatusForDBControl(ParamsManager.java:3245)
at oracle.sysman.emcp.EMReposConfig.unlockMGMTAccount(EMReposConfig.java:1001)
at oracle.sysman.emcp.EMReposConfig.invoke(EMReposConfig.java:346)
at oracle.sysman.emcp.EMReposConfig.invoke(EMReposConfig.java:158)
at oracle.sysman.emcp.EMConfig.perform(EMConfig.java:253)
at oracle.sysman.assistants.util.em.EMConfiguration.run(EMConfiguration.java:583)
at oracle.sysman.assistants.dbca.backend.PostDBCreationStep.executeImpl(PostDBCreationStep.java:968)
at oracle.sysman.assistants.util.step.BasicStep.execute(BasicStep.java:210)
at oracle.sysman.assistants.util.step.Step.execute(Step.java:140)
at oracle.sysman.assistants.util.step.StepContext$ModeRunner.run(StepContext.java:2667)
at java.lang.Thread.run(Thread.java:595)
Jan 18, 2014 9:38:23 AM oracle.sysman.emcp.EMConfig restoreOuiLoc
CONFIG: Restoring oracle.installer.oui_loc to C:\app\Damien\product\11.2.0\dbhome_1\oui
My Listner status output is here:
LSNRCTL for 32-bit Windows: Version 11.2.0.1.0 - Production on 18-JAN-2014 10:14:39
Copyright (c) 1991, 2010, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=ipc)))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for 32-bit Windows: Version 11.2.0.1.0 - Production
Start Date 18-JAN-2014 09:27:34
Uptime 0 days 0 hr. 47 min. 6 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File C:\app\Damien\product\11.2.0\dbhome_1\network\admin\listener.ora
Listener Log File c:\app\damien\diag\tnslsnr\LONDON\listener\alert\log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\ipcipc)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.10.4)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1521ipc)))
Services Summary...
Service "CLRExtProc" has 1 instance(s).
Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
I can login as sys into my database through sqlplus, so it seems the database is up and running, it just seems to be a listener problem maybe??
Many thanks for any assistance that you give. I'm learning so be gentle...
DamienSOLVED!
OK all solved now, thanks to the link to Ed Stevens website that Baris posted (mucho respect )
Seems that like Barus said I was not using Dynamic Registration, which means that I would need to manua
ly update the listerner.ora file. On top of that it seems that for some my tnsnames.ora wasn't resolving mt database name so the tnsping wasfailing.
What I did to solve the name resolution problem
1. Opened the
Network Configuration Assistant and saw that my listener didnt have my DB registered with it. So I added it. What this horrible GUI tool does is update the tnsnames and listener.ora files for you. So once that was done I went to the command prompt and did ;'tnsping <dn name> and hey presto it was getting a nice response.
Then I re-ran my DB Configuration Assistant and tried to reconfigure my database. However it aing failed and gave me the same message that I was originally getting about the DB Service not being registered etc..the lister status still said that same thing:
Services Summary...
Service "CLRExtProc" has 1 instance(s).
Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
the 'unknown' means that the DB didnt tell the listener that it was there but instead the listener is in manual mode and will just use the configuration in the listener.ora to know where the DB is.
So then I followed the steps on the ED Stevens website (follow the link). He has steps which show how to enable Dynanmic registration so that your DB regusters itself with the listener. In a nutshell, he states that he listener actually doesnt need the listerner.ora if using dynamic registration. I shutdown the DB, stopped the listener then I renamed the lsitener.ora to listerner.old, then started the lietener and checked the status and it said 'the listener supports no service' I then started the DB and, then resched teh listener status, it then read 'status: READY'... hooray!, the DB had dynamically registered itself with the listener. I then was able to successfully start up and run Enterprise Manager.
Thanks for all your help Baris, and Ed Steven website.
I know more now than when I started so I'm happy.
Thanks. -
Error while installing 11gR1 RDBMS software on 11gR2 GI
I am getting the following error while installing 11gR1 (11.1.0.6) RDBMS software on 11gR2 GI.
0. Oracle Enterprise linux 5.4 x_86_64 bit
1. cluvfy verfication is successful
2. 11gR2 GI looks fine - logged in to asm in all nodes, check the asm disksgroups
3. ssh connectivity is fine - able to do ssh from all 6 nodes to all nodes
Error:
On the Install page, after setup successful stage, (it finised 57%), the pop-up messages says
"Error in execution of additional utility tool" and giving me the options to retry, skip or continue.
* I dont want to continue until i fixed this issue *
-- I wish Oracle tells me, what tool its failing
Here is the error from log file:
INFO: No of Tools: 1
INFO: Starting to execute the additional tools
INFO: Command = /u01/app/oracle/product/11.1.0/oracle/bin/diagsetup basedir=/u01/app/oracle localnode=tstdb1 nodelist=tstdb1,tstdb2,tstdb3,tstdb4,tstdb5,tstdb6 remotenodes=tstdb2,tstdb3,tstdb4,tstdb5,tstdb6 oraclehome=/u01/app/oracle/product/11.1.0/oracle
PRKC-1002 : All the submitted commands did not execute successfully
DiagSetup-00008: Diag Setup Usage error: unable to perform RAC operations
Command = /u01/app/oracle/product/11.1.0/oracle/bin/diagsetup has failed
Execution Error : PRKC-1002 : All the submitted commands did not execute successfully
oracle.ops.mgmt.cluster.RemoteFileOperationException: PRKC-1002 : All the submitted commands did not execute successfully
at oracle.ops.mgmt.cluster.ClusterCmd.transferDirToNodes(ClusterCmd.java:2570)
at oracle.ops.mgmt.cluster.ClusterCmd.transferDirToNodes(ClusterCmd.java:2375)
at oracle.diagfw.adr.diagsetup.DiagSetup.transferRacDirs(DiagSetup.java:418)
at oracle.diagfw.adr.diagsetup.DiagSetup.createDirs(DiagSetup.java:323)
at oracle.diagfw.adr.diagsetup.DiagSetup.executeMain(DiagSetup.java:263)
at oracle.diagfw.adr.diagsetup.DiagSetup.main(DiagSetup.java:226)
DiagSetup-00008: Diag Setup Usage error: unable to perform RAC operations
oracle.diagfw.adr.diagsetup.DiagSetupException: DiagSetup-00008: Diag Setup Usage error: unable to perform RAC operations
at oracle.diagfw.adr.diagsetup.DiagSetup.transferRacDirs(DiagSetup.java:434)
at oracle.diagfw.adr.diagsetup.DiagSetup.createDirs(DiagSetup.java:323)
at oracle.diagfw.adr.diagsetup.DiagSetup.executeMain(DiagSetup.java:263)
at oracle.diagfw.adr.diagsetup.DiagSetup.main(DiagSetup.java:226)
INFO: Complete execution of additional toolsHi Levi Pereira, Thanks for the link.
During install I got the below error
""Error in execution of additional utility tool" and I initially thought it might be because of network or due to user equivalence not set correct. So cancelled installation , rechecked it and verified and both were fine. user equivalence works fine. but still i'm getting the same error . However the below oracle documentation links shows that its a bug (reference Bug 6271506, though I couldnt get any relevant info on this bug number)
http://download.oracle.com/docs/cd/B28359_01/readmes.111/b28280/toc.htm
As per the above doc I just clicked on 'Continue' and installation was successful with no errors. I hope itdoesnt cause any issues later.
Your blog is quite nice . I have few questions on ASM , device mapper and multipathing , porbably I shall post few questions on ASM in your blog.
Thanks,
Sasi -
ORA-12547 tns lost contact while creating 11gr2 database using dbca
Hi All,
I am installing oracle 11gr2 rac on centos 4. Grid infrastrucure and oracle home is successfully installed.
When i try to create database using dbca during that time i am getting an error that PRCR-1079: Failed to start resource ora.racdb.db
ORA-12547: TNS lost contact.
when i check the database on node 1, Its running fine.
However its giving me an error on the second node.
on Node 1
[oracle@rac1 dbs]$ sqlplus "/as sysdba"
SQL*Plus: Release 11.2.0.1.0 Production on Sun Aug 28 19:31:55 2011
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Testing options
SQL> select instance_name , host_name from v$instance;
INSTANCE_NAME
HOST_NAME
racdb1
rac1.oracle.com
on node 2:
[oracle@rac2 ~]$ sqlplus "/as sysdba"
SQL*Plus: Release 11.2.0.1.0 Production on Sun Aug 28 19:33:05 2011
Copyright (c) 1982, 2009, Oracle. All rights reserved.
ERROR:
ORA-12547: TNS:lost contact
Enter user-name:
I tried to installed to many a time but no luck.
Please help me on this.
Your assistance in this regards is much appreciated.
Thanks in advance.Do you have a support.oracle.com User Account?
If yes search there for TNS-12547 and you will get a huge list of possible root causes.
Just to name a few (which you can check - also compare with your first node):
Permission oracle executable
Kernel Parameter
Environment variables
etc.etc.
Regards
Sebastian -
Error getting while creating dbconsole repository in 11gR2
Hi
Repository dropped properly but I got following error while starting to create repository in 11gR2
[oracle@isgmmlds250 geni11g]$ emca -config dbcontrol db -repos create
STARTED EMCA at Jun 9, 2010 7:23:50 PM
EM Configuration Assistant, Version 11.2.0.0.2 Production
Copyright (c) 2003, 2005, Oracle. All rights reserved.
Enter the following information:
Database SID: geni11g
Exception in thread "main" oracle.sysman.emcp.exception.DatabaseUnavailableException: Database instance unavailable.
at oracle.sysman.emcp.DatabaseChecks.throwDBUnavailableException(DatabaseChecks.java:151)
at oracle.sysman.emcp.DatabaseChecks.checkDbAvailabilityImpl(DatabaseChecks.java:144)
at oracle.sysman.emcp.DatabaseChecks.checkDbAvailability(DatabaseChecks.java:163)
at oracle.sysman.emcp.DatabaseChecks.getDbServiceName(DatabaseChecks.java:582)
at oracle.sysman.emcp.EMConfigAssistant.performConfiguration(EMConfigAssistant.java:1267)
at oracle.sysman.emcp.EMConfigAssistant.statusMain(EMConfigAssistant.java:573)
at oracle.sysman.emcp.EMConfigAssistant.main(EMConfigAssistant.java:521)
Please give any solution
Thanks
shdHi I continued testings and basically this is the problem, I entered to cmd in windows 7 as administrator.
1) works
C:\Users\JReyes.DAZASOFTWARE2>%JRE_JAVA% -DDISPLAY=%DISPLAY% -DORACLE_HOME=%OH% oracle.sysman.emcp.EMConfigAssistant -r
epos REcreate -PORT 1522 -SID ffol -HOST localhost -SYS_PWD PASS_SYS -SYSMAN_PWD PASS_SYSMAN -LISTENER Listener
-DBSNMP_PWD dbsnmp123$ -ORACLE_HOSTNAME localhost -DB_UNIQUE_NAME ffol -ORACLE_HOSTNAME localhost
EMCA iniciado en 22-jul-2010 10:46:22
Asistente de Configuraci¾n EM, Versi¾n 11.2.0.0.2 Producci¾n
Copyright (c) 2003, 2005, Oracle. Todos los Derechos Reservados.
Introduzca la siguiente informaci¾n:
+Desea continuar? [sÝ(Y)/no(N)]: N
2) don't work
C:\Users\JReyes.DAZASOFTWARE2>%JRE_JAVA% -DDISPLAY=%DISPLAY% -DORACLE_HOME=%OH% oracle.sysman.emcp.EMConfigAssistant c -PORT 1522 -SID ffol -HOST localhost -SYS_PWD PASS_SYS -SYSMAN_PWD PASS_SYSMAN -LISTENER List
ener -DBSNMP_PWD dbsnmp123$ -ORACLE_HOSTNAME localhost -DB_UNIQUE_NAME ffol -ORACLE_HOSTNAME localhost
EMCA iniciado en 22-jul-2010 10:46:48
Asistente de Configuraci¾n EM, Versi¾n 11.2.0.0.2 Producci¾n
Copyright (c) 2003, 2005, Oracle. Todos los Derechos Reservados.
Introduzca la siguiente informaci¾n:
Exception in thread "main" oracle.sysman.emcp.exception.DatabaseUnavailableException: Instancia de base de datos no disp
onible.
at oracle.sysman.emcp.DatabaseChecks.throwDBUnavailableException(DatabaseChecks.java:151)
at oracle.sysman.emcp.DatabaseChecks.checkDbAvailabilityImpl(DatabaseChecks.java:144)
at oracle.sysman.emcp.DatabaseChecks.checkDbAvailability(DatabaseChecks.java:163)
at oracle.sysman.emcp.DatabaseChecks.getDbServiceName(DatabaseChecks.java:582)
at oracle.sysman.emcp.EMConfigAssistant.performConfiguration(EMConfigAssistant.java:1272)
at oracle.sysman.emcp.EMConfigAssistant.statusMain(EMConfigAssistant.java:574)
at oracle.sysman.emcp.EMConfigAssistant.main(EMConfigAssistant.java:522)
3)
The problem is when I execute -config dbcontrol db
I CAN connect from sys anyway I recreated it
I followed https://support.oracle.com/CSP/main/article?cmd=show&type=NOT&doctype=PROBLEM&id=358201.1 steps.
I even give administrator privileges to local services
The interesting is appears the line "Introduzca la siguiente informaci¾n:", this means enter the following information, as if it would need another parameter, I tried to enter all parameters I could and this problem persisted.
you can check the log if you want
22-jul-2010 10:51:42 oracle.sysman.emcp.util.OUIInventoryUtil setOUILoc
CONFIG: Setting oracle.installer.oui_loc to D:\ora11g\product\11.2.0\dbhome_1\oui
22-jul-2010 10:51:43 oracle.sysman.emcp.util.ClusterUtil isHASInstalled
CONFIG: isHAInstalled: false
22-jul-2010 10:51:43 oracle.sysman.emcp.ParamsManager setFlag
CONFIG: Flag '-migrate' set to false
22-jul-2010 10:51:43 oracle.sysman.emcp.ParamsManager setFlag
CONFIG: Flag 'migrateFromDBControl' set to false
22-jul-2010 10:51:43 oracle.sysman.emcp.ParamsManager setFlag
CONFIG: Flag 'migrateToCentralAgent' set to false
22-jul-2010 10:51:43 oracle.sysman.emcp.ParamsManager setFlag
CONFIG: Flag 'migrateFromCentralAgent' set to false
22-jul-2010 10:51:43 oracle.sysman.emcp.ParamsManager setFlag
CONFIG: Flag 'migrateToDBControl' set to false
22-jul-2010 10:51:43 oracle.sysman.emcp.ParamsManager setFlag
CONFIG: Flag '-config' set to true
22-jul-2010 10:51:43 oracle.sysman.emcp.ParamsManager setFlag
CONFIG: Flag 'UPDATE_EMAIL' set to true
22-jul-2010 10:51:43 oracle.sysman.emcp.ParamsManager setFlag
CONFIG: Flag 'dbcontrol' set to true
22-jul-2010 10:51:43 oracle.sysman.emcp.ParamsManager setFlag
CONFIG: Flag 'db' set to true
22-jul-2010 10:51:43 oracle.sysman.emcp.ParamsManager setParam
CONFIG: Setting param: PORT value: 1522
22-jul-2010 10:51:43 oracle.sysman.emcp.ParamsManager setParam
CONFIG: Setting param: SID value: ffol
22-jul-2010 10:51:43 oracle.sysman.emcp.ParamsManager setParam
CONFIG: Setting param: HOST value: localhost
22-jul-2010 10:51:43 oracle.sysman.emcp.ParamsManager setParam
CONFIG: Setting param: LISTENER value: Listener
22-jul-2010 10:51:43 oracle.sysman.emcp.ParamsManager setParam
CONFIG: Setting param: ORACLE_HOSTNAME value: localhost
22-jul-2010 10:51:43 oracle.sysman.emcp.ParamsManager setParam
CONFIG: Setting param: DB_UNIQUE_NAME value: ffol
22-jul-2010 10:51:43 oracle.sysman.emcp.ParamsManager setParam
CONFIG: Setting param: ORACLE_HOSTNAME value: localhost
22-jul-2010 10:51:43 oracle.sysman.emcp.ParamsManager setParam
CONFIG: Setting param: ORACLE_HOME value: D:\ora11g\product\11.2.0\dbhome_1
22-jul-2010 10:51:46 oracle.sysman.emcp.util.ClusterUtil isCRSInstalled
CONFIG: isCRSInstalled: false
22-jul-2010 10:51:46 oracle.sysman.emcp.util.ClusterUtil isHASInstalled
CONFIG: isHAInstalled: false
22-jul-2010 10:51:46 oracle.sysman.emcp.DatabaseChecks getDbServiceName
CONFIG: No service name available. Will try to set db_unique_name.db_domain
22-jul-2010 10:51:46 oracle.sysman.emcp.ParamsManager getParam
CONFIG: No se ha definido ningún valor para el parámetro REP_DB_RUNNING_HOST.
22-jul-2010 10:51:46 oracle.sysman.emcp.ParamsManager getLocalHost
CONFIG: Value for parameter ORACLE_HOSTNAME: localhost
22-jul-2010 10:51:46 oracle.sysman.emcp.ParamsManager getLocalHost
CONFIG: Current value for env variable ORACLE_HOSTNAME: null
22-jul-2010 10:51:46 oracle.sysman.emcp.ParamsManager getLocalHost
CONFIG: Setting the env variable ORACLE_HOSTNAME to localhost
22-jul-2010 10:51:46 oracle.sysman.emcp.ParamsManager getHost
CONFIG: Host having instnces running for database ffol : localhost
22-jul-2010 10:51:46 oracle.sysman.emcp.ParamsManager setParam
CONFIG: Setting param: REP_DB_RUNNING_HOST value: localhost
22-jul-2010 10:51:46 oracle.sysman.emcp.ParamsManager getRepDbPort
CONFIG: Listener Port: 1522
22-jul-2010 10:51:46 oracle.sysman.emcp.ParamsManager getParam
CONFIG: No se ha definido ningún valor para el parámetro SERVICE_NAME.
22-jul-2010 10:51:46 oracle.sysman.emcp.util.GeneralUtil isLocalConnectionRequired
CONFIG: isLocalConnectionRequired: true
22-jul-2010 10:51:46 oracle.sysman.emcp.util.GeneralUtil initSQLEngine
CONFIG: isLocalConnectionRequired: true. Connecting to database instance locally.
22-jul-2010 10:51:46 oracle.sysman.emcp.util.GeneralUtil initSQLEngineLoacly
CONFIG: SQLEngine connecting with SID: ffol, oracleHome: D:\ora11g\product\11.2.0\dbhome_1, and user:
22-jul-2010 10:51:56 oracle.sysman.emcp.util.GeneralUtil initSQLEngineLoacly
CONFIG: ORA-01031: insufficient privileges
oracle.sysman.assistants.util.sqlEngine.SQLFatalErrorException: ORA-01031: insufficient privileges
at oracle.sysman.assistants.util.sqlEngine.SQLEngine.executeImpl(SQLEngine.java:1655)
at oracle.sysman.assistants.util.sqlEngine.SQLEngine.connect(SQLEngine.java:978)
at oracle.sysman.emcp.util.GeneralUtil.initSQLEngineLoacly(GeneralUtil.java:445)
at oracle.sysman.emcp.util.GeneralUtil.initSQLEngine(GeneralUtil.java:637)
at oracle.sysman.emcp.DatabaseChecks.checkDbAvailabilityImpl(DatabaseChecks.java:118)
at oracle.sysman.emcp.DatabaseChecks.checkDbAvailability(DatabaseChecks.java:163)
at oracle.sysman.emcp.DatabaseChecks.getDbServiceName(DatabaseChecks.java:582)
at oracle.sysman.emcp.EMConfigAssistant.performConfiguration(EMConfigAssistant.java:1272)
at oracle.sysman.emcp.EMConfigAssistant.statusMain(EMConfigAssistant.java:574)
at oracle.sysman.emcp.EMConfigAssistant.main(EMConfigAssistant.java:522)
thank you :)
Maybe you are looking for
-
Use diferent programs in two computers at the same time on creative claud?
Hello, I wonder if it is possible to use different programs with the same license at the same time on two computers on creative claud?
-
Is this first back up with Time Machine too slow?
I'm running my first backup onto a new Western Digital Essential 1 terrabyte via a USB connection. It started at 2AM. It's now 9AM and the progress bar reads: "16.5 Gigs of 118 Gigs" That's a little better than two gigs an hour. This seems very slow
-
I just got my iphone 4s today and synced up and my apps wont open. Ive had this problem on my ipod before and just downloaded an app and redownloaded but it didnt work for my iphone. I tried everything. i went to my local store and they didnt know wh
-
DHCP assignments and AP Groups
I am having an issue in which I have AP Groups working perfectly fine, but when a client moves from one building to another the DHCP assignment of the "first" AP Group is retained when the user accesses AP's assigned to another AP Group. For example,
-
Completed Workflow Still in Inbox
Hi, i am working on incoming invoice Ledger Workflow ,in this the workflow is showing the status 'Completed', but the user still has the workitem in the inbox. how can i remove the workitem from the user Inbox? Thanks in Advance . Abhi