Pointing OIM to new Database
Hi
I have OIM Instance which does trusted and target recon as well as provisioning to target apps.
I want to change OIM DB from one machine to another, and I need to point OIM Server to new Database.
I have seen the article 434473.1 in metalink and want to know what other steps I need to perform to contain the same data as in old DB.
Do I need to take export from old DB and import it into new DB?
Does the change of DB affect users provisioning and reconciliation?
please provide your valuable inputs.
Thanks in Advance
If you can restore the entire database from one instance to another, you have that as an option. You can also re-run the prepare script on your new database, or create the new schema as appropriately with the same name. Then export from old database and import into new one. Then you will need to change the jdbc entries in your xlconfig.xml file, as well as update the jdbc resources in your application server. This should let you move your database. Although, if you use hostnames, you could just have your DNS server map to the new address and then maybe you wouldn't have to change a thing.
-Kevin
Similar Messages
-
SOA 10.1.3.5 - cloning and pointing to a new database
We plan to move a web application to a new server and here is the information:
The front-end is SOA suite 10.1.3.5; application was built with Jdeveloper and ADF; BPEL process Manager is not used; Enterprise Service Bus is not used.
the backend is a Oracle database.
Old server: Windows server 2003, currently hosting SOA and the database;
New server: Windows server 2008.
We need to move both front-end and back-end to the new server. I know how to move the database.
I would like to know if either of the following is possible:
1. Clone SOA suite to the new server, and let it point to the new database on the server;
2. Install SOA 10.1.3.1 on the new server, and upgrade it to 10.1.3.5. Then move the deployed instance from the old server to the new one, and point it to the new database.
I have read chapter 9 of SOA administrator guide, but not sure if the cloned instance can point to the new database. Please help. Thank you!
HailieHello
Maybe this Metalink note would be helpful for you 757381.1 -
How to restore backup files to a new database?
Hello all,
Our database has stopped working because many config files and some control files were deleted or changed! You can see the full discussion here: ORA-01034 - Oracle not availabe
We are using Oracle 11g. We got some comprehensive backup files and some incremental ones before this failure.
Do these backup files contain config and control files too? or just contains data?
And how I can recover the database using them?
Thanks for your helpThank you so much for your attention.
Yes exactly, I installed oracle on my laptop and copped its control files into the database and they didn't work
1- Many backup files of level 0 and level 1. They've been created using these rman commands:
echo database backup, level 1
echo %DATE%
echo %TIME%
set datetimef=%date:~-4%_%date:~4,2%_%date:~7,2%_%time:~0,2%_%time:~3,2%_%time:~6,2%
echo %datetimef%
rman target / @F:\backup1.txt LOG F:\database-backup\rman-logs\%datetimef%.txt
copy F:\database-backup\rman-logs\%datetimef%.txt F:\database-backup\rman-logs\current-log.txt
and
echo database backup, level 0
echo %DATE%
echo %TIME%
set datetimef=%date:~-4%_%date:~4,2%_%date:~7,2%_%time:~0,2%_%time:~3,2%_%time:~6,2%
echo %datetimef%
rman target / @F:\backup0.txt LOG F:\database-backup\rman-logs\%datetimef%.txt
copy F:\database-backup\rman-logs\%datetimef%.txt F:\database-backup\rman-logs\current-log.txt
What have you done before getting "Oracle not available" message?
One of group members tried to create a new database using Oracle Database Configuration Assistant and then she couldn't work with the new database (I guess she got some errors when she decided to connect to it using sqldeveloper) and then she deleted the new database using Oracle Database Configuration Assistant, and in the last part it asked her Do you want to delete everything related to the new database and she answered yes.
What have you done after getting "Oracle not available" message?
After that we get Oracle Not Available. When I tried to connect to the Oracle via SQLPlus (startup command) it told me that init file does not exist and I recreate that file and put in the right place, then checked some files located in the D:\app\Administrator\admin\iwatchdb\scripts and D:\app\Administrator\product\11.2.0\dbhome_5\NETWORK\ADMIN. Almost in all of that SID and addresses were changed and pointed to the new database, I just alter them and replaced the Yelp (the name of the new database) with iwatchdb (our main database). So the first error solved, and when I tried to start the database up it told me that control files do not exist! and I checked the address that sqlplus showd in the error and it was right! the control files were deleted from: D:\app\Administrator\oradata\iwatchdb (CONTROL01.CTL) and D:\app\Administrator\flash_recovery_area\iwatchdb (CONTROL02.CTL)
- What is the latest error you get in the alert.log file?
do you mean this file? D:\app\Administrator\diag\rdbms\iwatchdb\iwatchdb\alert\log.xml
These are the latest ones:
<msg time='2013-06-19T19:41:46.498-07:00' org_id='oracle' comp_id='rdbms'
client_id='' type='UNKNOWN' level='16'
host_id='DD77KKS1' host_addr='fe80::d4a:8bff:b402:6cfe%13' module=''
pid='4692'>
<txt>Trace dumping is performing id=[cdmp_20130619194146]
</txt>
</msg>
<msg time='2013-06-19T19:41:46.540-07:00' org_id='oracle' comp_id='rdbms'
msg_id='dbkh_generate_new_failure_alert:2777:3311820762' client_id='' type='ERROR'
group='DRA' level='1' host_id='DD77KKS1'
host_addr='fe80::d4a:8bff:b402:6cfe%13' module='MMON_SLAVE' pid='1384'>
<txt>Checker run found 1 new persistent data failures
</txt>
</msg>
<msg time='2013-06-19T19:41:46.658-07:00' org_id='oracle' comp_id='rdbms'
client_id='' type='UNKNOWN' level='16'
host_id='DD77KKS1' host_addr='fe80::d4a:8bff:b402:6cfe%13' module=''
pid='4496'>
<txt>ORA-00227: corrupt block detected in control file: (block 1, # blocks 1) ->(I copied control files from another database but it didn't work)
ORA-00202: control file: 'D:\APP\ADMINISTRATOR\FLASH_RECOVERY_AREA\IWATCHDB\CONTROL02.CTL'
ORA-00227: corrupt block detected in control file: (block 1, # blocks 1)
ORA-00202: control file: 'D:\APP\ADMINISTRATOR\ORADATA\IWATCHDB\CONTROL01.CTL'
</txt>
</msg>
<msg time='2013-06-19T19:41:46.659-07:00' org_id='oracle' comp_id='rdbms'
msg_id='opiexe:3056:2780954927' client_id='' type='NOTIFICATION'
group='admin_ddl' level='16' host_id='DD77KKS1'
host_addr='fe80::d4a:8bff:b402:6cfe%13' module='sqlplus.exe' pid='4400'>
<txt>ORA-205 signalled during: ALTER DATABASE MOUNT...
</txt>
</msg>
<msg time='2013-06-19T19:41:47.606-07:00' org_id='oracle' comp_id='rdbms'
client_id='' type='UNKNOWN' level='16'
host_id='DD77KKS1' host_addr='fe80::d4a:8bff:b402:6cfe%13' module=''
pid='4692'>
<txt>Trace dumping is performing id=[cdmp_20130619194147]
</txt>
</msg>
<msg time='2013-06-19T19:42:45.282-07:00' org_id='oracle' comp_id='rdbms'
msg_id='dbgripsto_sweep_staged_obj:14105:70631439' type='ERROR' group='ami_comp'
level='8' host_id='DD77KKS1' host_addr='fe80::d4a:8bff:b402:6cfe%13'>
<txt>Sweep [inc][9769]: completed
</txt>
</msg>
<msg time='2013-06-19T19:42:45.599-07:00' org_id='oracle' comp_id='rdbms'
msg_id='dbgripsto_sweep_staged_obj:14105:70631439' type='ERROR' group='ami_comp'
level='8' host_id='DD77KKS1' host_addr='fe80::d4a:8bff:b402:6cfe%13'>
<txt>Sweep [inc][9706]: completed
</txt>
</msg>
<msg time='2013-06-19T19:42:45.907-07:00' org_id='oracle' comp_id='rdbms'
msg_id='dbgripsto_sweep_staged_obj:14105:70631439' type='ERROR' group='ami_comp'
level='8' host_id='DD77KKS1' host_addr='fe80::d4a:8bff:b402:6cfe%13'>
<txt>Sweep [inc][9705]: completed
</txt>
</msg>
<msg time='2013-06-19T19:42:45.917-07:00' org_id='oracle' comp_id='rdbms'
msg_id='dbgripsto_sweep_staged_obj:14105:70631439' type='ERROR' group='ami_comp'
level='8' host_id='DD77KKS1' host_addr='fe80::d4a:8bff:b402:6cfe%13'>
<txt>Sweep [inc2][9769]: completed
</txt>
</msg>
<msg time='2013-06-19T19:42:45.918-07:00' org_id='oracle' comp_id='rdbms'
msg_id='dbgripsto_sweep_staged_obj:14105:70631439' type='ERROR' group='ami_comp'
level='8' host_id='DD77KKS1' host_addr='fe80::d4a:8bff:b402:6cfe%13'>
<txt>Sweep [inc2][9706]: completed
</txt>
</msg>
<msg time='2013-06-19T19:42:45.920-07:00' org_id='oracle' comp_id='rdbms'
msg_id='dbgripsto_sweep_staged_obj:14105:70631439' type='ERROR' group='ami_comp'
level='8' host_id='DD77KKS1' host_addr='fe80::d4a:8bff:b402:6cfe%13'>
<txt>Sweep [inc2][9705]: completed
</txt>
</msg> -
Migrating HP SIM related databases to a new database server
Greetings,
I'm working on a migration task for our HP SIM to a new database server (the application and services will reside on the original server).
Migrating the Insight_v50_0_xxx database and redirecting the server to point the the new database was no problem and HP SIM runs along just fine.
There are still some related databases that I haven't moved yet, and I've searched all over the web to get some documentation on the matter, but found none.
The databases and related services are the following.
PMP_V5_0 - PMP Services
hpvmmsqldb - Virtual Machine Management
I guess I could do like I did with the Insight_v50_0_xxx , take a backup and restore it on the new server and then change the configuration files to point to the new one. The big issue is that I can't seem to find any configuration files for these services.
Also I've run into something called mx services, and the same here. I have no idea where these points.
Any HP SIM savvy technician out there that think they can help me out?
1. Product: HP SIM and related services
2. Operating System: Windows Server 2008 R2
Best regards,
KarlOld topic but in case someone is searching...
PMP database uses an ODBC connection. Easy to reconfigure.
HPVMMDB uses a JDBC configuration file in the \Program Files\HP\Insight Control Virtual Machine Management\Bin folder called hpvmmdb.conf. -
About creating a new source system on BW pointing to an Oracle database
hi friends
i m facing problems when i
creating a new source system on BW in AIX pointing to an Oracle database, our bw oracle use 10idatabase ,and we want to connet to 9idatabase(Windows) to get data for BW
(1.) in /oracle/P01/102_64/network/admin tnsnames.ora I hava add
SJPT =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 68.16.211.177)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = SJPT)
(2) and in etc/hosts I hava add
68.16.211.177 SJPT
(3) in p01adm> tnsping SJPT it is OK
(4)but when i
in BW RSA1 DATA SOURCE
create db connect:
DBMS: ORA
USER NAME: SAP
DB PASSWORD: SAP
[email protected]
i t give me the error message :
ORA-12154: TNS:could not resolve the connect identifier
please help meHI,my trans.log file is
4 ETW000 R3trans version 6.13 (release 700 - 20.02.06 - 16:15:00).
4 ETW000 unicode enabled version
4 ETW000 ===============================================
4 ETW000
4 ETW000 date&time : 13.11.2007 - 10:16:48
4 ETW000 control file: <no ctrlfile>
4 ETW000 R3trans was called as follows: R3trans -d
4 ETW000 trace at level 2 opened for a given file pointer
4 ETW000 [dev trc ,00000] Tue Nov 13 10:16:48 2007 81 0.000081
4 ETW000 [dev trc ,00000] db_con_init called 29 0.000110
4 ETW000 [dev trc ,00000] create_con (con_name=R/3) 50 0.000160
4 ETW000 [dev trc ,00000] Loading DB library '/usr/sap/P01/SYS/exe/run/dboraslib.o' ...
4 ETW000 43 0.000203
4 ETW000 [dev trc ,00000] load shared library (/usr/sap/P01/SYS/exe/run/dboraslib.o), hdl 0
4 ETW000 13346 0.013549
4 ETW000 [dev trc ,00000] Library '/usr/sap/P01/SYS/exe/run/dboraslib.o' loaded
4 ETW000 32 0.013581
4 ETW000 [dev trc ,00000] function DbSlExpFuns loaded from library /usr/sap/P01/SYS/exe/run/dboraslib.o
4 ETW000 35 0.013616
4 ETW000 [dev trc ,00000] Version of '/usr/sap/P01/SYS/exe/run/dboraslib.o' is "700.08", patchlevel (0.46)
4 ETW000 53 0.013669
4 ETW000 [dev trc ,00000] function dsql_db_init loaded from library /usr/sap/P01/SYS/exe/run/dboraslib.o
4 ETW000 34 0.013703
4 ETW000 [dev trc ,00000] function dbdd_exp_funs loaded from library /usr/sap/P01/SYS/exe/run/dboraslib.o
4 ETW000 53 0.013756
4 ETW000 [dev trc ,00000] New connection 0 created 23 0.013779
4 ETW000 [dev trc ,00000] 0: name = R/3, con_id = -000000001 state = DISCONNECTED, perm = YES, reco = NO , timeout = 000, con_max = 255, con_opt = 255, occ = NO
4 ETW000 39 0.013818
4 ETW000 [dev trc ,00000] db_con_connect (con_name=R/3) 45 0.013863
4 ETW000 [dev trc ,00000] find_con_by_name found the following connection for reuse:
4 ETW000 32 0.013895
4 ETW000 [dev trc ,00000] 0: name = R/3, con_id = 000000000 state = DISCONNECTED, perm = YES, reco = NO , timeout = 000, con_max = 255, con_opt = 255, occ = NO
4 ETW000 37 0.013932
4 ETW000 [dev trc ,00000] Got LIBPATH=/usr/lib:/lib:/usr/sap/P01/SYS/exe/run:/oracle/P01/102_64/lib from environment
4 ETW000 325 0.014257
4 ETW000 [dev trc ,00000] -->oci_initialize (con_hdl=0) 47 0.014304
4 ETW000 [dev trc ,00000] Client NLS settings: AMERICAN_AMERICA.UTF8 3234 0.017538
4 ETW000 [dev trc ,00000] Logon as OPS$-user to get SAPSR3's password 28 0.017566
4 ETW000 [dev trc ,00000] Connecting as /@P01 on connection 0 (nls_hdl 0) ... (dbsl 700 240106)
4 ETW000 34 0.017600
4 ETW000 [dev trc ,00000] Nls CharacterSet NationalCharSet C EnvHp ErrHp ErrHpBatch
4 ETW000 35 0.017635
4 ETW000 [dev trc ,00000] 0 UTF8 1 0x110f8b9c0 0x110fa3e38 0x110fa36e8
4 ETW000 36 0.017671
4 ETW000 [dev trc ,00000] Allocating service context handle for con_hdl=0 37 0.017708
4 ETW000 [dev trc ,00000] Allocating server context handle 24 0.017732
4 ETW000 [dev trc ,00000] Attaching to DB Server P01 (con_hdl=0,svchp=0x110f94398,svrhp=0x110fa6158)
4 ETW000 72 0.017804
4 ETW000 [dev trc ,00000] Assigning server context 0x110fa6158 to service context 0x110f94398
4 ETW000 36191 0.053995
4 ETW000 [dev trc ,00000] Allocating user session handle 73 0.054068
4 ETW000 [dev trc ,00000] Starting user session (con_hdl=0,svchp=0x110f94398,srvhp=0x110fa6158,usrhp=0x110f937a0)
4 ETW000 43 0.054111
4 ETW000 [dev trc ,00000] Assigning user session 0x110f937a0 to service context 0x110f94398
4 ETW000 10613 0.064724
4 ETW000 [dev trc ,00000] Now '/@P01' is connected (con_hdl 0, nls_hdl 0).
4 ETW000 964 0.065688
4 ETW000 [dbsloci. ,00000] *** ERROR => ORA-942 when accessing table SAPUSER
4 ETW000 1183 0.066871
4 ETW000 [dev trc ,00000] Disconnecting from connection 0 ... 73 0.066944
4 ETW000 [dev trc ,00000] Rolling back transaction ... 28 0.066972
4 ETW000 [dev trc ,00000] Closing user session (con_hdl=0,svchp=0x110f94398,usrhp=0x110f937a0)
4 ETW000 146 0.067118
4 ETW000 [dev trc ,00000] Now I'm disconnected from ORACLE 409 0.067527
4 ETW000 [dev trc ,00000] Try to connect with default password 23 0.067550
4 ETW000 [dev trc ,00000] Connecting as SAPSR3/<pwd>@P01 on connection 0 (nls_hdl 0) ... (dbsl 700 240106)
4 ETW000 34 0.067584
4 ETW000 [dev trc ,00000] Nls CharacterSet NationalCharSet C EnvHp ErrHp ErrHpBatch
4 ETW000 36 0.067620
4 ETW000 [dev trc ,00000] 0 UTF8 1 0x110f8b9c0 0x110fa3e38 0x110fa36e8
4 ETW000 36 0.067656
4 ETW000 [dev trc ,00000] Assigning username to user session 0x110f937a0 22 0.067678
4 ETW000 [dev trc ,00000] Assigning password to user session 0x110f937a0 41 0.067719
4 ETW000 [dev trc ,00000] Starting user session (con_hdl=0,svchp=0x110f94398,srvhp=0x110fa6158,usrhp=0x110f937a0)
4 ETW000 37 0.067756
4 ETW000 [dboci.c ,00000] *** ERROR => OCI-call 'OCISessionBegin' failed: rc = 1017
4 ETW000 33690 0.101446
4 ETW000 [dbsloci. ,00000] *** ERROR => CONNECT failed with sql error '1017'
4 ETW000 36 0.101482
4 ETW000 [dblink ,00431] ***LOG BY2=>sql error 1017 performing CON [dblink#3 @ 431]
4 ETW000 122 0.101604
4 ETW000 [dblink ,00431] ***LOG BY0=>ORA-01017: invalid username/password; logon denied [dblink#3 @ 431]
4 ETW000 34 0.101638
2EETW169 no connect possible: "DBMS = ORACLE --- dbs_ora_tnsname = 'P01'" -
New database connection failed with oepe
Hi everybody,
@http://docs.oracle.com/cd/E27086_02/help/oracle.eclipse.tools.common.doc/html/install.html#install_oepe
Oracle Enterprise Pack for Eclipse Installation Guide says:
"You can install OEPE using any of the following ways:
Download, and then unzip OEPE plugins directly into the Eclipse dropins folder and restart Eclipse."
This is what I have done,
then when I create a new database connection, and I press the button "test connection" i got a pop up saying "Ping failed" giving details:
java.lang.ClassNotFoundException: oracle.jdbc.OracleDriver
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.net.FactoryURLClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at oracle.eclipse.tools.database.connectivity.db.OracleJDBCConnection.createConn(OracleJDBCConnection.java:198)
at oracle.eclipse.tools.database.connectivity.db.OracleJDBCConnection.createConnection(OracleJDBCConnection.java:149)
at org.eclipse.datatools.connectivity.DriverConnectionBase.internalCreateConnection(DriverConnectionBase.java:105)
at org.eclipse.datatools.connectivity.DriverConnectionBase.open(DriverConnectionBase.java:54)
at org.eclipse.datatools.connectivity.drivers.jdbc.JDBCConnection.open(JDBCConnection.java:73)
at oracle.eclipse.tools.database.connectivity.db.OracleJDBCConnectionFactory.createConnection(OracleJDBCConnectionFactory.java:26)
at org.eclipse.datatools.connectivity.internal.ConnectionFactoryProvider.createConnection(ConnectionFactoryProvider.java:83)
at org.eclipse.datatools.connectivity.internal.ConnectionProfile.createConnection(ConnectionProfile.java:359)
at org.eclipse.datatools.connectivity.ui.PingJob.createTestConnection(PingJob.java:76)
at org.eclipse.datatools.connectivity.ui.PingJob.run(PingJob.java:59)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Did I miss something?The documentation is out of date. The unzip to dropins method is no longer supported. The OEPE zip you downloaded is actually an archived repository. You can follow the instruction for installing using Eclipse Update Manager and point to the downloaded zip instead of the online repository.
I will follow up to get the docs updated.
- Konstantin -
Create a new Database in an other server using a copie of RMAN backup
Hi all,
I want to create an other instance for our production database. We have disk and tape in rman backup. My question is can i create a new database using our disk backup in an other server?
If some procedure or steps is there, email it to my adresse [email protected]
Hamid.
ThanksBy means of the use of Recovery Manager it is possible to duplicate a database out from a previously taken rman backup. The method will be outlined in the next few lines.
Let's assume a source database named SRCDB and the target database, named GEMINI. A unix like environment is assumed, but it can be implemented on windows as well, just beware of the particular Oracle implementation on a windows platform (orapwd file name, service creation, path format)
1. Create a password file for the Cloned (GEMINI) instance:
orapwd file=/u01/app/oracle/product/9.2.0.1.0/dbs/orapwGEMINI password=password entries=10
2. Configure tnsnames.ora and listner.ora
Properly identify the database at the tnsnames.ora and have the instance manually registered against the listener.ora files, both files located at the $ORACLE_HOME/network/admin directory.
2.a Manually register the database against the listener (listener.ora)
(SID_DESC =
(ORACLE_HOME = /u01/app/oracle/product/9.2.0.1.0)
(SID_NAME = GEMINI)
2.b Added the target GEMINI to the tnsnames.ora
GEMINI =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = myhost.mydomain.com)(PORT = 1521))
(CONNECT_DATA =
(ORACLE_SID = GEMINI)
2.c Reload the listener
lsnrctl reload
3. Create a new init.ora for the cloned database.
Next create an init.ora file for the cloned database. In case the same paths cannot be used on the target host, either because it is the same source host or because those paths are not reproducible on the target, then DB_FILE_NAME_CONVERT and LOG_FILE_NAME_CONVERT may be required to be defined
DB_NAME=GEMINI
CONTROL_FILES=(/u02/oradata/GEMINI/control01.ctl,
/u02/oradata/GEMINI/control02.ctl,
/u02/oradata/GEMINI/control03.ctl)
# Convert file names to allow for different directory structure.
DB_FILE_NAME_CONVERT=(/u02/oradata/SRCDB/,/u02/oradata/GEMINI/)
LOG_FILE_NAME_CONVERT=(/u01/oradata/SRCDB/,/u01/oradata/GEMINI/)
# block_size and compatible parameters must match those of the source database
DB_BLOCK_SIZE=8192
COMPATIBLE=9.2.0.0.0
4. Connect to the cloned instance
ORACLE_SID=GEMINI; export ORACLE_SID
sqlplus /nolog
conn / as sysdba
5. Create an SPFILE based on the init.ora
CREATE SPFILE FROM PFILE='/u01/app/oracle/admin/GEMINI/pfile/init.ora';
6. Start the database in NOMOUNT mode:
STARTUP FORCE NOMOUNT;
7. Connect to the TARGET, CATALOG and AUXILIARY databases.
By means of the rman three connections are open, one for the Source Database (SOURCEDB), another for the Catalog database (RCAT), and one more for the cloned database (GEMINI)
ORACLE_SID=GEMINI; export ORACLE_SID
rman TARGET sys/password@SRCDB CATALOG rman/rman@RCAT AUXILIARY /
8. Complete or Incomplete clone (recover)
From the rman the database using one of the following commands:
8.a Clone the database by means of a complete recover.
DUPLICATE TARGET DATABASE TO GEMINI;
8.b Clone the database up to a defined point in time in the past by means of an incomplete recover
DUPLICATE TARGET DATABASE TO GEMINI UNTIL TIME 'SYSDATE-2';
9. Process finished.
Once the process is finished, the newly created GEMINI database is ready to be used as an independent new cloned database.
Ref. RMAN Clone a Database
~ Madrid -
Exception while creating a new database
Greetings,
I was using dbca (Database Configuration Assistant) on Linux to create a new database. Everything was going ok until it was 85% done, at which point it waited a long time and then said it had failed and gave the path to a log file. Below is [what I think to be] the relavant part of that log file (emConfig.log). I sure could use some help on this, thanks.
-Sam
Mar 14, 2007 1:56:48 PM oracle.sysman.emcp.util.PlatformInterface getSortedEnvArray
CONFIG: New Env List: [DISPLAY=:0.0, NEED_EXIT_CODE=1, ORACLE_HOSTNAME=deadbeef, ORACLE_SID=dbxv3x, PATH=/usr/kerberos/bin:/opt/jdk1.5.0_08/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/u01/app/oracle/product/10.2.0/db_1/bin:/home/oracle/bin, TZ=]
Mar 14, 2007 1:56:48 PM oracle.sysman.emcp.util.PlatformInterface executeCommand
CONFIG: Starting execution: /u01/app/oracle/product/10.2.0/db_1/bin/emctl start dbconsole
Mar 14, 2007 2:03:12 PM oracle.sysman.emcp.util.PlatformInterface executeCommand
CONFIG: Exit value of 1
Mar 14, 2007 2:03:12 PM oracle.sysman.emcp.util.PlatformInterface executeCommand
CONFIG: TZ set to US/Pacific
Oracle Enterprise Manager 10g Database Control Release 10.2.0.1.0
Copyright (c) 1996, 2005 Oracle Corporation. All rights reserved.
http://deadbeef:5501/em/console/aboutApplication
Starting Oracle Enterprise Manager 10g Database Control ............................................................................................. failed.
Logs are generated in directory /u01/app/oracle/product/10.2.0/db_1/deadbeef_dbxv3x/sysman/log
Mar 14, 2007 2:03:12 PM oracle.sysman.emcp.util.PlatformInterface executeCommand
WARNING: Error executing /u01/app/oracle/product/10.2.0/db_1/bin/emctl start dbconsole
Mar 14, 2007 2:03:12 PM oracle.sysman.emcp.EMConfig perform
SEVERE: Error starting Database Control
Refer to the log file at /u01/app/oracle/product/10.2.0/db_1/cfgtoollogs/dbca/dbx_v3x/emConfig.log for more details.
Mar 14, 2007 2:03:12 PM oracle.sysman.emcp.EMConfig perform
CONFIG: Stack Trace:
oracle.sysman.emcp.exception.EMConfigException: Error starting Database Control
at oracle.sysman.emcp.EMDBPostConfig.performConfiguration(EMDBPostConfig.java:565)
at oracle.sysman.emcp.EMDBPostConfig.invoke(EMDBPostConfig.java:177)
at oracle.sysman.emcp.EMDBPostConfig.invoke(EMDBPostConfig.java:146)
at oracle.sysman.emcp.EMConfig.perform(EMConfig.java:155)
at oracle.sysman.assistants.util.em.EMConfiguration.run(EMConfiguration.java:426)
at java.lang.Thread.run(Thread.java:534)This may be a clue. In the file emdctl.trc there are many WARN lines (Connection refused) and two ERROR lines (timezones do not match) right at the time when dbca was 85% done. I am speculating that the timezone errors might be relevant to this problem. Below is just a snippet. Yesterday and this morning we tried to run $ORA_HOME/bin/emctl start dbconsole on this database and we get the timezone errors only. If timezone mismatch is the problem, how do you fix it?
2007-03-14 14:57:58 Thread-3062621888 WARN http: snmehl_connect: connect failed to (deadbeef:1831): Connection refused (error = 111)
2007-03-14 14:58:02 Thread-3062679232 WARN http: snmehl_connect: connect failed to (deadbeef:1831): Connection refused (error = 111)
2007-03-14 14:58:06 Thread-3062081216 WARN http: snmehl_connect: connect failed to (deadbeef:1831): Connection refused (error = 111)
2007-03-14 14:58:10 Thread-3061798592 WARN http: snmehl_connect: connect failed to (deadbeef:1831): Connection refused (error = 111)
2007-03-14 14:58:14 Thread-3062118080 WARN http: snmehl_connect: connect failed to (deadbeef:1831): Connection refused (error = 111)
2007-03-14 14:58:18 Thread-3062658752 WARN http: snmehl_connect: connect failed to (deadbeef:1831): Connection refused (error = 111)
2007-03-14 14:58:22 Thread-3062699712 WARN http: snmehl_connect: connect failed to (deadbeef:1831): Connection refused (error = 111)
2007-03-14 14:58:24 Thread-3061970624 ERROR main: nmectl.c: nmectl_validateTZRegion, agentTZoffset =-420,and testTZoffset for US/Pacific:-480 do not match
2007-03-14 14:58:25 Thread-3061970624 ERROR main: nmectl.c: nmectl_validateTZRegion, agentTZoffset =-420,and testTZoffset for US/Pacific:-480 do not match
2007-03-14 14:58:26 Thread-3061864128 WARN http: snmehl_connect: connect failed to (deadbeef:1831): Connection refused (error = 111)
2007-03-14 14:58:30 Thread-3061888704 WARN http: snmehl_connect: connect failed to (deadbeef:1831): Connection refused (error = 111)
2007-03-14 14:58:34 Thread-3062695616 WARN http: snmehl_connect: connect failed to (deadbeef:1831): Connection refused (error = 111)
2007-03-14 14:58:38 Thread-3061864128 WARN http: snmehl_connect: connect failed to (deadbeef:1831): Connection refused (error = 111)
2007-03-14 14:58:42 Thread-3062556352 WARN http: snmehl_connect: connect failed to (deadbeef:1831): Connection refused (error = 111)
2007-03-14 14:58:46 Thread-3062650560 WARN http: snmehl_connect: connect failed to (deadbeef:1831): Connection refused (error = 111)
2007-03-14 14:58:50 Thread-3062388416 WARN http: snmehl_connect: connect failed to (deadbeef:1831): Connection refused (error = 111) -
Hi all,
In the Notepad, I created an xml file (ZenQroducts.xml) :
<Qroducts>
<Qroduct>
<SKU>1</SKU>
<Desc>Book</Desc>
</Qroduct>
<Qroduct>
<SKU>2</SKU>
<Desc>DVD</Desc>
</Qroduct>
<Qroduct>
<SKU>3</SKU>
<Desc>Video</Desc>
</Qroduct>
In my SQL Server 2012 Management Studio, I executed the following code:
--to create a new object Qroducts in a new database OPENXMLtesting
CREATE DATABASE OPENXMLtesting
GO
CREATE TABLE Qroducts(
sku INT Primary KEY,
qroduct_desc VARCHAR(30));
INSERT INTO Qroducts (sku, qroduct_desc)
SELECT X.qroduct.query('SKU').value('.', 'INT'),
X.qroduct.query('Desc').value('.', 'VARCHAR(30)')
FROM (
SELECT CAST(x AS XML)
FROM OPENROWSET(
BULK 'H:\ZenQroducts.xml',
SINGLE_BLOB) AS T(x)
) AS T(x)
CROSS APPLY x.nodes('Qroducts/Qroduct') AS X(qroduct);
SELECT sku, qroduct_desc
FROM Qroducts;
I got the following message:
Msg 9400, Level 16, State 1, Line 6
XML parsing: line 13, character 12, unexpected end of input
I have no ideas why I got this "XML parsing:line 13, character12, unexpected end of input" message. Please kindly help, advise me on where I made mistake and how I can resolve this problem, and respond in this Forum.
Thanks in advance,
Scott Chang
Hi Manish, Thanks for your response.
Yes, it is a duplicate with Qroducts/Qroduct instead of Products/Product. I did it, because I don't know how to remove the existing "Products" database.
Again, I got the existing "Qroducts" database in this second trial!!?? I am comletely lost in doing "Importing XML file to SQL Table" now!! I think that I have not touched T-SQL and XML programming, since 2008. I
did not catch the new features of T-SQL 2008, XML, SQL/XML, XQuery, etc. for long time. Recently, I did not know what DECLARE, @x, SET,...were, and dived into the SQL/XML and XQuery programming. I knew the SQL Basics (SELECT, FROM, WHERE,..), creating
the names of databases and tables in SQL Server 2008/2012 Management Studio (Express) before. This morning, I found an old T-SQL 2008 Prgrammer's Guide that has the new features of SQL Server 2008 for T-SQL, XML, XQuery, etc. I just starting reading
it to know what DECLARE, @x, SET,... are. But, I still don't know where the existing databases "Products" and "Qroducts" (created by me) are - they are not in the Databases of SQL Server 2012 Management Studio I am using!!?? Could
you please kindly point out where the "Products" and "Qroducts" databases are?
Prashanth responded to my posted question too and he asked to to try his code: DECLARE @xml XML, SELECT @xml =' <Qroducts>.....SELECT product.value.....FROM @XML.nodes.....AS.... I just learned that his code is doing the thing we
want to do and print the results below the SQL Query. This is not what I need in doing my SQL/XML programming. I am reading/studying the new (2008) features of T-SQL, XQuery 1.0: An XML Query Language (Second Edition), and Microsoft XQuery Language Reference
(SQL Server 2012 Books Online) closely now. I hope that I can resume the T-SQL, XML Query, SQL/XML, XQuery in my SQL Server 2012 Management Studio soon.
Please tell me where the existing databases "Products" and "Qroducts" I created in my previous trials in my SQL Server 2012 Management Studio. This is what I need to know and to delete them, before I do this kind of "Importing
XML file to Table of SQL Server 2012 Management Studio" programming again.
Please kindly help, advise and respond again.
Many Thanks,
Scott Chang -
Changing a source module to a new database?
Hi there, looking for help from the users here! I'm on OWB 10.2 This should be a simple one, but I'm having a hard time!
The short summary of my question, is how do I change my mappings in my target db to pull from a new source module / database?
Here's the longer description:
In design center I have 2 different locations ("loc x prod_old" and "loc y prod_new"). I currently have a source module callled "m_src" that currently uses "loc x prod_old". So all views, etc, in "m_src" are currently being pulled from "loc x prod_old".
Now I want to change the "m_src" modeule from "loc x prod_old" to "loc x prod_new", and then I want to make sure all of my mappings in my "m_tgt" module which have objects in "m_src" get pulled from the "loc x prod_new".
On "m_src" module I change data location to "loc x prod_new" and also change metadata location to "loc x prod_new". Then I configure "m_src" and make sure the dropdowns point to "loc x prod_new" as well. Save. So far so good. In "m_src" I can now verify by selecting a view and looking at the "data" for the view.
I can also now select a mapping in my "m_tgt" module and when I generate the code I can see that it will use "loc y prod_new" instead of "loc x prod_old", which is correct.
When I go to control center, and run the mapping, the mapping is still using the "loc x prod_old", which is not what I want. It seems that I have to re-deploy each mapping. When I go to the db and look at the mapping using toad I can see the mapping still points to the "loc x prod_old". Only when I re-deploy the mapping does it use "loc x prod_new."
Surely there must be a way that I can change my location or my source module and get my mappings to use the new location, without having to re-deploy each and every mapping. How can I best do this?
Thanks!I guess I should have waited another day before posting (unfortunately time is critical now). I figured this out and am closing the thread.
design center > location > edit it, pointing to new db
design center > go verify the data on a view
control center > target module > connector > drop / replace
in a sql tool you can now verify your dblink points to the new db -
Creating new databases after latest security patch applied
10.2.0.4
If I create a database AFTEr applying the opatch for the October 2009 security patch, do I need to also run:
@catbundle.sql cpu apply
Or is it included in the create database? I use the DBCA to create new databases.user8574962 wrote:
This is what Oracle states on metalink doc id: 422303.1
Once the bundle patch or the Critical Patch Update (CPU) patch is applied on an ORACLE_HOME should you run post-installation scripts for every newly created Oracle database using the same ORACLE_HOME?
Solution
This should be documented in the patch's README as the answer will vary with each patch.
If the patch's README is not documented, then the Post Install tasks should be run.
And this is what the OCTCPU09 README says:
3.3.3 Post Installation Instructions for Databases Created or Upgraded after Installation of CPUOct2009 in the Oracle Home
These instructions are for both non-RAC environments and RAC environments when a database is created or upgraded after the installation of CPUOct2009.
You must execute the steps in Section 3.3.2.1, "Loading Modified .sql Files into the Database" for any new database only if it was created by any of the following methods:
Using DBCA (Database Configuration Assistant) to select a sample database (General, Data Warehouse, Transaction Processing)
Using a script that was created by DBCA that creates a database from a sample database
Hope that helps.Point taken that it could vary by patchset, but those particular instructions quoted square exactly with what I had said. To quote with emphasis:
"You must execute the steps . . . for any new database *only if* it was created by any of the following methods . . ."
And what are those methods? Creating the database from a sample (pre-patch) database. If one uses dbca to create a 'custom' database, the resulting scripts will start from scratch with a CREATE DATABASE command - no pre-patch version sample or seed database involved.
:-) -
Create new database in XE via GUI console
I would liek to know if it possible to create a new database in Oracle 10g Express Edition via the GUI Web console other than the existing XE database? If not, is there another way via SQL?
XE is limited to a single instance, and an instance can only open one database at a time.
You should be able to close the 'current database' (shutdown and startup nomount) and create a new database 'create database' through SQL, but I wouldn't see a lot of point to the exercise (except as a learning exercise, where you'd be better off using a Standard/Enterprise Edition).
There'd be no way to do the creation through an Apex application, as Apex itself has to run in a database so wouldn't survive the closure of the current database. -
A new database explorer project
Hi folks!
I've planed to write a new "database explorer" firtly I mean to use this project in my Java Developer Certification Exams, after(or before) I want to open the source and have another database explorer in the open source world. :)
My firts ideas are around a different way to implement some things. I've seen few tools wich use the power of JDBC that abstract a lot of things for us, to retrieve the metadatas of a given database, but I want to implement a plug-in concept cause different databases have different resources/features and I want go so deep into these features.
Then these plugins would implement those features, for example postgre has some tuning/performance resources that we don't have in firebird neither in oracle, and we have sequences in oracle and itsn't present in other databases.
My question is if someone could point me some stuff to help me project this plug-in architecture? and is these kind of project a good option to use in the Java Developer Certification Exams?
Thanks
LeandroCrossposted in many unrelated forums.
-
Some strange after create a new database
Hi All,
I try to create a new database on the Win 2000 ORA8I server (existing have 1 db already), after using the DBCA create it, I try to connect to new DB, but I found that all the control file are point to the old db's.
I've check that there are 2 SID (2 SID service found in services), tnsname is point to 2 different sid, listener also point to 2 different sid, below is the part of listener.ora and tnsname.ora
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = SVR1)
(ORACLE_HOME = d:\oracle\ora81)
(SID_NAME = SVR1)
(SID_DESC =
(GLOBAL_DBNAME = SVR2)
(ORACLE_HOME = D:\oracle\ora81)
(SID_NAME = SVR2)
)I found that the problem is not so simple....
I try to recreate the servicesid and listener, without start the old sid service, the new SID cannot (should be "can") connect to new DB, but.
When I try to start the new SID and old SID at the same time, the new and old SID will connect to the same old DB.
I try to stop the old service again, both new and old SID cannot connect to DB.
try to recreate the service and listener and only start the new sid service, the sid can connect to new DB again.........
does anybody can tell me what's going on ?? I will be crazy...... -
How do the application servers connect the new database after failing over from primary DB to standby DB?
We have setup a DR environment with a standalone Primary server and a standalone Physical Standby server on RHEL Linux 6.4. Now our application team would like to know:
When the primary DB server is crashed, the standy DB server will takeover the role of primary DB through the DataGuard fast failover. As the applications are connected by the primary DB IP before,currently the physical DB is used as a different IP or listener. If this is happened, they need to stop their application servers and re-configure their connection so the they coonect the new DB server, they cannot tolerate these workaround.
Whether does oracle have the better solution for this so that the application can automatically know the role's transition and change to the new IP without re-confige any connection and shutdown their application?
Oracle support provides us the answer as following:
==================================================================
Applications connected to a primary database can transparently failover to the new primary database upon an Oracle Data Guard role transition. Integration with Fast Application Notification (FAN) provides fast failover for integrated clients.
After a failover, the broker publishes Fast Application Notification (FAN) events. These FAN events can be used in the following ways:
Applications can use FAN without programmatic changes if they use one of these Oracle integrated database clients: Oracle Database JDBC, Oracle Database Oracle Call Interface (OCI), and Oracle Data Provider for .NET ( ODP.NET). These clients can be configured for Fast Connection Failover (FCF) to automatically connect to a new primary database after a failover.
JAVA applications can use FAN programmatically by using the JDBC FAN application programming interface to subscribe to FAN events and to execute event handling actions upon the receipt of an event.
FAN server-side callouts can be configured on the database tier.
FAN events are published using Oracle Notification Services (ONS) and Oracle Streams Advanced Queuing (AQ).
=======================================================================================
Who has the experience and the related documentation or other solutions? we don't have the concept of about FAN.
Thank very much in advance.Hi mesbeg,
Thanks alot.
For example, there is an application JBOSS server connecting the DB, we just added another datasource and put the standby IP into the configuration file except adding a service on DB side like this following:
<subsystem xmlns="urn:jboss:domain:datasources:1.0">
<datasources>
<datasource jta="false" jndi-name="java:/jdbc/idserverDatasource" pool-name="IDServerDataSource" enabled="true" use-java-context="true">
<connection-url>jdbc:oracle:thin:@<primay DB IP>:1521:testdb</connection-url>
<connection-url>jdbc:oracle:thin:@<standby DB IP>:1521:testdb</connection-url>
<driver>oracle</driver>
<pool>
<min-pool-size>2</min-pool-size>
<max-pool-size>10</max-pool-size>
<prefill>true</prefill>
</pool>
<security>
<user-name>TEST_USER</user-name>
<password>Password1</password>
</security>
<validation>
<valid-connection-checker class-name="org.jboss.jca.adapters.jdbc.extensions.oracle.OracleValidConnectionChecker"/>
<validate-on-match>false</validate-on-match>
<background-validation>false</background-validation>
<use-fast-fail>false</use-fast-fail>
<stale-connection-checker class-name="org.jboss.jca.adapters.jdbc.extensions.oracle.OracleStaleConnectionChecker"/>
<exception-sorter class-name="org.jboss.jca.adapters.jdbc.extensions.oracle.OracleExceptionSorter"/>
</validation>
</datasource>
<drivers>
<driver name="oracle" module="com.oracle.jdbc">
<xa-datasource-class>oracle.jdbc.OracleDriver</xa-datasource-class>
</driver>
</drivers>
</datasources>
</subsystem>
If the failover is occurred, the JBOSS will automatically be pointed to the standby DB. Additional actions are not needed.
Maybe you are looking for
-
iv moved all the music over thought home sharing... from the old itunes i was using but i want to be able to sync my iphone with the new itunes on my new machine but its saying saying syncing setp 1 of 1 and nothing happens... could someone please he
-
Reading and Sorting from a CSV file
I have an assignment to read a shopping list from a CSV file, sort the items and print or write the items to a text file. I have an idea though. I intend to use vectors to collect the items from the CSV file and then sort the list and write to a txt
-
Win 7 Computer doesn't recognize iPod touch ver 3.1.3
My Windows7 Computer won't recognize my iPod Touch ver 3.1.3. Will upgrading the iOS help?
-
2 AM Advertising for VZ Navigator - LG Cosmos Touch
Ever since I purchased my LG Cosmos Touch I've been bombarded nightly at around 2 AM among other times to download the VZ Navigator application. This is not a phone call, but the same advertisement that plays as if you don't have VZ Navigator instal
-
How to upgrade to OS X Leopard from OS X 10.4
I want to upgrade my Mac from OS X 10.4 to OS X 10.5 Leopard, but I can't find a program to download to upgrade my Mac. Where can I find it?