EBS database name first 4 character must unique (on same server)??
our consultant told me if we have several EBS databases on same server database name max is 8 characters, but first 4 characters must unique. For example, if we have VISDEMO1 and VISDEMO2 databases on same server, it will cause problem. I remember uniqueue first 4 character database name is backu to 7i, it is not a issue after 8i.
Can anyone give me a confirm?
Thanks.
You are right; there are no restrictions on the first four characters. Database name can be up to 8 characters.
Note: 115499.1 - Global Database Name Explained
https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=115499.1
Similar Messages
-
Is database link only 'valid' for instances in the same server?
Background: We have 5 servers and installed Oracle 7.3 and 8.
Problem: I managed to create database link to other instance in same server; but not to other server. Error message received was :
ORA-02019: connection description for remote database not found
: TNS server name not found
BUT: I managed it with 'copy from ' command in SQL*plus.
Question: Is database link only 'valid' for instances in the same server?
Thanks! ;o)user10127912 wrote:
Hi,
We are planning to install second instance of Oracle 11gR2 in Linux server 2.6.39-400.21.1.el6uek.x86_64 x86_64. This is something we never haven done before. If you have such experience, please give us some insight.
The existing instance has all the standard ports:
Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
Enterprise Manager Console HTTP Port (pterpdb02) = 1158
Enterprise Manager Agent Port (pterpdb02) = 3938
What ports should we select for second listener and enterprise manager? Is there anything else that we need to know before we install the second instance?If you want a second database instance, no additional installation is required - as long as you want to run the second instance at the same version as the the first. Just fire up dbca and create the second database. One installation of Oracle (one ORACLE_HOME) is capable of supporting many database instances, though the same may or may not be said of the hardware it is running on.
As already said, one listener is enough. One listener, running from one oracle home, using the default name of LISTENER, running on the defualt port of 1521, is quite capable of -- indeed, WAS DESIGNED TO, supporte multiple database instances of multiple versions running from multiple ORACLE_HOMEs.
One instance of dbcontrol/dbconsole will support only one database. If you do not use Grid Control (extra installation, extra license) you will need to use the emca utility or one of the options in the dbca utility to configure a seperate instance of dbcontrol for each database. Don't worry about the ports, the creation utility will take care of it and report what it does. -
DB Link , ORA - 02083: illegal database name character '-'
Hi,
I work for an integration company and right now we are putting together an application that is moving a small subset of data from one db to another. I have created a db link to move the data. However, when I try to compile the procedure, that moves the data, into the database, the compile fails and I am given the following error:
ORA-02083: database name has illegal character -.
The instances Im developing/testing to are on the same machine, which is a Solaris X86 machine and the Oracle version is 8.1.7.
Now 2 things. If I do a simple query like the one below using SQL*PLUS, the link works fine.
Select sysdate
From dual@<dblink_name>;
The other thing is the domain name does in fact have a - in it, but I have removed the domain name from everyplace I can thing of from Oracle; i.e. tnsnames, init.ora file, etc.
Does anyone have any ideas?
Thanks,
Roger Christopheland set this parameter with its correct value.
DB_DOMAIN
Parameter type
String
Syntax
DB_DOMAIN = domain_name
Default value
There is no default value.
Parameter class
Static
Range of values
Any legal string of name components, separated by periods and up to 128 characters long (including the periods). This value cannot be NULL.
Real Application Clusters
You must set this parameter for every instance, and multiple instances must have the same value.
In a distributed database system, DB_DOMAIN specifies the logical location of the database within the network structure. You should set this parameter if this database is or ever will be part of a distributed system. The value consists of the extension components of a global database name, consisting of valid identifiers, separated by periods. Oracle Corporation recommends that you specify DB_DOMAIN as a unique string for all databases in a domain.
This parameter allows one department to create a database without worrying that it might have the same name as a database created by another department. If one sales department's DB_DOMAIN is JAPAN.ACME.COM, then their SALES database (SALES.JAPAN.ACME.COM) is uniquely distinguished from another database with DB_NAME = SALES but with DB_DOMAIN = US.ACME.COM.
If you omit the domains from the name of a database link, Oracle expands the name by qualifying the database with the domain of your local database as it currently exists in the data dictionary, and then stores the link name in the data dictionary. The characters valid in a database domain name are: alphanumeric characters, underscore (_), and number sign (#).
See Also:
Oracle9i Database Performance Tuning Guide and Reference for more information on setting this parameter
The data dictionary view "GLOBAL_NAME"
http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96536/ch142.htm#REFRN10036
Joel Pérez -
The system cannot resolve database name" while restoring AppSet
Hello Everyone,
I am having an issue restoring AppSet using Server Manager. The error I'm getting is the following:
"The system cannot resolve the database name. Check that your connection with SQL Server still exists, or use another version of SQL Server".
I suspect that some port(s) that's being used by Server Manager is closed... Is there a list of ports which need to be open between Application Server and Database Server?
I'm running BPC 5.1 SP03 multi-server environment.
Thanks in advance,
AkimTony,
Thanks for the reply. I have all default settings for SQL/AS. BPC itself has no issues communicating between App/DB.
I noticed an interesting thing... I can backup successfully with "Use backup files' folder path on a remote SQL server", but it fails if i backup localy to the application server. In a SQL Log I am seeing:
BackupDiskFile::CreateMedia: Backup device '
<AppServer Name>\SQLShare\ApShell.BAK' failed to create. Operating system error 53(The network path was not found.).
Same with restore.
Basically, my workaround is to restore SQL part from shared/remote location.
Thanks,
Akim -
How to find the database name?
Hi,
I have a little problem with my database under DB2.
I acces this database through the ODBC with the name TESTALIAS, but the real name of the database is TEST. So what I need to find out is if there is a possibility to get the real name of the database.
I used the com.ibm.db.DatabaseConnection class for the connection, but there seems nothing to indicate me the real name of this database.
Have you any idea??? maybe another class that do this?
thanks,
alinaif somebody is interested in, the following SQL Statement gets the real database name out and not the alias:
SELECT CURRENT SERVER FROM one_table_name
I don't know if the register CURRENT SERVER work for all DB environment, but for DB2 ist does.
cheers,
alina -
Database not found/Error: ORA-16621: database name for ADD DATABASE must be
I am new to Data Guard and am trying to set up Data Guard Broker. I had created a configuration file with both my primary and standby databases and at one time I could show both databases. But now I can no longer show the standby database nor can I enable, disable or reinstate it. Here is what I have:
Primary Database: orcl10g
Standby Database: 10gSB
DGMGRL> show configuration
Configuration
Name: orcl10g
Enabled: YES
Protection Mode: MaxPerformance
Fast-Start Failover: DISABLED
Databases:
orcl10g - Primary database
10gSB - Physical standby database
Current status for "orcl10g":
SUCCESS
DGMGRL> show database verbose orcl10g
Database
Name: orcl10g
Role: PRIMARY
Enabled: YES
Intended State: ONLINE
Instance(s):
orcl10g
Properties:
InitialConnectIdentifier = 'orcl10g'
LogXptMode = 'ASYNC'
Dependency = ''
DelayMins = '0'
Binding = 'OPTIONAL'
MaxFailure = '0'
MaxConnections = '1'
ReopenSecs = '300'
NetTimeout = '180'
LogShipping = 'ON'
PreferredApplyInstance = ''
ApplyInstanceTimeout = '0'
ApplyParallel = 'AUTO'
StandbyFileManagement = 'AUTO'
ArchiveLagTarget = '0'
LogArchiveMaxProcesses = '30'
LogArchiveMinSucceedDest = '1'
DbFileNameConvert = '10gSB, orcl10g'
LogFileNameConvert = '/oracle/oracle/product/10.2.0/oradata/orcl10g/redo01.log, /oracle/oracle/product/10.2.0/oradata/10gSB/redo01.log, /oracle/oracle/product/10.2.0/oradata/orcl10g/redo02.log, /oracle/oracle/product/10.2.0/oradata/10gSB/redo02.log, /oracle/oracle/product/10.2.0/oradata/orcl10g/redo03.log, /oracle/oracle/product/10.2.0/oradata/10gSB/redo03.log'
FastStartFailoverTarget = ''
StatusReport = '(monitor)'
InconsistentProperties = '(monitor)'
InconsistentLogXptProps = '(monitor)'
SendQEntries = '(monitor)'
LogXptStatus = '(monitor)'
RecvQEntries = '(monitor)'
HostName = 'remarkable.mammothnetworks.com'
SidName = 'orcl10g'
LocalListenerAddress = '(ADDRESS=(PROTOCOL=tcp)(HOST=remarkable.mammothnetworks.com)(PORT=1521))'
StandbyArchiveLocation = '/oracle/flash_recovery_area/orcl10g/archivelog'
AlternateLocation = ''
LogArchiveTrace = '1024'
LogArchiveFormat = '%t_%s_%r.arc'
LatestLog = '(monitor)'
TopWaitEvents = '(monitor)'
Current status for "orcl10g":
SUCCESS
DGMGRL> show database verbose 10gSB
Object "10gsb" was not found
DGMGRL>
DGMGRL> remove database 10gSB
Object "10gsb" was not found
DGMGRL>
DGMGRL> reinstate database 10gSB
Object "10gsb" was not found
DGMGRL>
DGMGRL> enable database 10gSB
Object "10gsb" was not found
DGMGRL>
DGMGRL> add database '10gSB' as
connect identifier is 10gSB
maintained as physical;Error: ORA-16621: database name for ADD DATABASE must be unique
Failed.
How can I get Data Guard to see the standby database correctly again?Thank you for the constructive feedback. I have been able to make progress on this issue.
I did check the Data Guard Log files as you suggested. I did not find anything when I checked them before but this time I found the following:
DG 2011-06-16-17:23:18 0 2 0 RSM detected log transport problem: log transport for database '10gSB' has the following error.
DG 2011-06-16-17:23:18 0 2 0 RSM0: HEALTH CHECK ERROR: ORA-16737: the redo transport service for standby database "10gSB" has an error
DG 2011-06-16-17:23:18 0 2 0 NSV1: Failed to connect to remote database 10gSB. Error is ORA-12514
DG 2011-06-16-17:23:18 0 2 0 RSM0: Failed to connect to remote database 10gSB. Error is ORA-12514
DG 2011-06-16-17:23:18 0 2 753988034 Operation CTL_GET_STATUS cancelled during phase 2, error = ORA-16778
DG 2011-06-16-17:23:18 0 2 753988034 Operation CTL_GET_STATUS cancelled during phase 2, error = ORA-16778
I verified that I am able to connect to both the primary and standby databases via external connections:
-bash-3.2$ lsnrctl status
LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 17-JUN-2011 12:41:03
Copyright (c) 1991, 2005, Oracle. All rights reserved.
Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for Linux: Version 10.2.0.1.0 - Production
Start Date 17-JUN-2011 01:40:30
Uptime 0 days 11 hr. 0 min. 32 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /oracle/oracle/product/10.2.0/db_1/network/admin/listener.ora
Listener Log File /oracle/oracle/product/10.2.0/db_1/network/log/listener.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=remarkable.mammothnetworks.com)(PORT=1521)))
Services Summary...
Service "10gSB" has 1 instance(s).
Instance "10gSB", status READY, has 1 handler(s) for this service...
Service "10gSB_DGB" has 1 instance(s).
Instance "10gSB", status READY, has 1 handler(s) for this service...
Service "10gSB_XPT" has 1 instance(s).
Instance "10gSB", status READY, has 1 handler(s) for this service...
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
Service "orcl10g" has 1 instance(s).
Instance "orcl10g", status READY, has 1 handler(s) for this service...
Service "orcl10gXDB" has 1 instance(s).
Instance "orcl10g", status READY, has 1 handler(s) for this service...
Service "orcl10g_DGB" has 1 instance(s).
Instance "orcl10g", status READY, has 1 handler(s) for this service...
Service "orcl10g_XPT" has 1 instance(s).
Instance "orcl10g", status READY, has 1 handler(s) for this service...
The command completed successfully
-bash-3.2$
-bash-3.2$
-bash-3.2$ sqlplus system/dbas4ever@orcl10g
SQL*Plus: Release 10.2.0.1.0 - Production on Fri Jun 17 12:43:41 2011
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production
With the Partitioning, OLAP and Data Mining options
SQL> quit
Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production
With the Partitioning, OLAP and Data Mining options
-bash-3.2$ sqlplus system/dbas4ver@10gSB
SQL*Plus: Release 10.2.0.1.0 - Production on Fri Jun 17 12:43:59 2011
Copyright (c) 1982, 2005, Oracle. All rights reserved.
ERROR:
ORA-01033: ORACLE initialization or shutdown in progress <== I think this is normal since the database is in mount mode
Enter user-name:
I also checked the listener log file and did see and error associated with a known bug:
WARNING: Subscription for node down event still pending
So I added the following to the listener.ora file and bounced the listener:
SUBSCRIBE_FOR_NODE_DOWN_EVENT_LISTENER=OFF
That seems to have taken care of the error.
The following is my listener.ora file:
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = /oracle/oracle/product/10.2.0/db_1)
(PROGRAM = extproc)
(SID_DESC = ( GLOBAL_DBNAME = 10gsb_DGMGRL.remarkable.mammothnetworks.com )
( SERVICE_NAME = 10gsb.remarkable.mammothnetworks.com )
( SID_NAME = 10gsb )
( ORACLE_HOME = /oracle/oracle/product/10.2.0/db_1 )
(SID_DESC = ( GLOBAL_DBNAME = orcl10g_DGMGRL.remarkable.mammothnetworks.com )
( SERVICE_NAME = orcl10g.remarkable.mammothnetworks.com )
( SID_NAME = orcl10g )
( ORACLE_HOME = /oracle/oracle/product/10.2.0/db_1 )
(SID_DESC = ( GLOBAL_DBNAME = orcl10g.remarkable.mammothnetworks.com )
( SERVICE_NAME = orcl10g.remarkable.mammothnetworks.com )
( SID_NAME = orcl10g )
( ORACLE_HOME = /oracle/oracle/product/10.2.0/db_1 )
(SID_DESC = ( GLOBAL_DBNAME = 10gsb.remarkable.mammothnetworks.com )
( SERVICE_NAME = 10gsb.remarkable.mammothnetworks.com )
( SID_NAME = 10gsb )
( ORACLE_HOME = /oracle/oracle/product/10.2.0/db_1 )
SUBSCRIBE_FOR_NODE_DOWN_EVENT_LISTENER=OFF
I again tried connecting externally to the standby database:
-bash-3.2$ sqlplus system/dbas4ever@10gSB
SQL*Plus: Release 10.2.0.1.0 - Production on Fri Jun 17 13:09:00 2011
Copyright (c) 1982, 2005, Oracle. All rights reserved.
ERROR:
ORA-01033: ORACLE initialization or shutdown in progress
Enter user-name:
and see this in the listener.log file:
17-JUN-2011 13:10:22 * (CONNECT_DATA=(SERVICE_NAME=10gSB_XPT)(SERVER=dedicated)(CID=(PROGRAM=oracle)(HOST=remarkable.mammothnetworks.com)(USER=oracle))) * (ADDRESS=(PROTOCOL=tcp)(HOST=199.187.124.130)(PORT=11357)) * establish * 10gSB_XPT * 0
17-JUN-2011 13:10:22 * (CONNECT_DATA=(SERVICE_NAME=10gSB_XPT)(SERVER=dedicated)(CID=(PROGRAM=oracle)(HOST=remarkable.mammothnetworks.com)(USER=oracle))) * (ADDRESS=(PROTOCOL=tcp)(HOST=199.187.124.130)(PORT=11358)) * establish * 10gSB_XPT * 0
17-JUN-2011 13:10:24 * service_update * 10gSB * 0
17-JUN-2011 13:10:30 * (CONNECT_DATA=(SID=orcl10g)(CID=(PROGRAM=perl)(HOST=remarkable.mammothnetworks.com)(USER=oracle))) * (ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=25119)) * establish * orcl10g * 0
17-JUN-2011 13:10:30 * (CONNECT_DATA=(SID=orcl10g)(CID=(PROGRAM=perl)(HOST=remarkable.mammothnetworks.com)(USER=oracle))) * (ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=25120)) * establish * orcl10g * 0
17-JUN-2011 13:10:30 * (CONNECT_DATA=(SID=orcl10g)(CID=(PROGRAM=emagent)(HOST=localhost.localdomain)(USER=oracle))) * (ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=25121)) * establish * orcl10g * 0
17-JUN-2011 13:11:22 * (CONNECT_DATA=(SERVICE_NAME=10gSB_XPT)(SERVER=dedicated)(CID=(PROGRAM=oracle)(HOST=remarkable.mammothnetworks.com)(USER=oracle))) * (ADDRESS=(PROTOCOL=tcp)(HOST=199.187.124.130)(PORT=11420)) * establish * 10gSB_XPT * 0
17-JUN-2011 13:11:22 * (CONNECT_DATA=(SERVICE_NAME=10gSB_XPT)(SERVER=dedicated)(CID=(PROGRAM=oracle)(HOST=remarkable.mammothnetworks.com)(USER=oracle))) * (ADDRESS=(PROTOCOL=tcp)(HOST=199.187.124.130)(PORT=11422)) * establish * 10gSB_XPT * 0
17-JUN-2011 13:11:24 * service_update * 10gSB * 0
I tried again to see the database in Data Guard Broker:
DGMGRL> show database 10gSB
Object "10gsb" was not found
however, I then was able to add the database in Data Guard Broker:
DGMGRL> add database 10gSB
as connect identifier is 10gSB
maintained as physical;Database "10gsb" added <== this is progress!!!
However the configuration shows the following:
DGMGRL> show database 10gSB
Database
Name: 10gsb
Role: PHYSICAL STANDBY
Enabled: NO
Intended State: OFFLINE
Instance(s):
10gSB
Current status for "10gsb":
DISABLED <=====
So I tried to enable the database:
DGMGRL> enable database 10gSB
Error: ORA-16626: failed to enable specified object
Failed.
and I tried to reinstate the database:
DGMGRL> reinstate database 10gSB
Reinstating database "10gsb", please wait...
Error: ORA-16653: failed to reinstate database
Failed.
Reinstatement of database "10gsb" failed
So I checked the configuration and now see two entries for the standby database but with case differences:
DGMGRL> show configuration
Configuration
Name: orcl10g
Enabled: YES
Protection Mode: MaxPerformance
Fast-Start Failover: DISABLED
Databases:
orcl10g - Primary database
10gSB - Physical standby database
10gsb - Physical standby database (disabled)
Current status for "orcl10g":
SUCCESS
Question: How do I get rid of 10gSB and enable 10gsb? -
"not a valid short file name" and "invalid character" install errors
Disclaimer: Apple does not necessarily endorse any suggestions, solutions, or third-party software products that may be mentioned in the topic below. Apple encourages you to first seek a solution at Apple Support. The following links are provided as is, with no guarantee of the effectiveness or reliability of the information. Apple does not guarantee that these links will be maintained or functional at any given time. Use the information below at your own discretion.
Symptoms
While upgrading or uninstalling a Windows software application (such as iTunes for Windows or QuickTime for Windows), you may receive one of the following error messages:
file name is not a valid short file name
The folder path 'folder name' contains an invalid character.
... where file name could be the name of any file, and folder name could be the name of any folder.
In the case of software that uses advertised shortcuts (such as recent versions of iTunes for Windows or Safari for Windows), the messages may also appear when attempting to launch software that has already been installed.
Resolution
The error messages are usually caused by damage to the installation database for the application. Clearing the installation database for the application by using the Windows Installer CleanUp utility can usually get you past the error message.
(1) Click [here|http://support.microsoft.com/kb/290301] first, and read the important information about the utility.
(2) Click the *Download the Windows Installer Cleanup Utility package now* link on that page to download a file titled msicuu2.exe.
(3) Open the msicuu2.exe file and follow the prompts to install it.
(4) In your Start menu click *All Programs* and then click *Windows Install Clean Up.* The Windows Installer CleanUp utility window appears, listing software that is currently installed on your computer.
(5) Select the software you're getting the "not a valid short file name" or "invalid character" message for from the list and click Remove.
(6) Click OK in the confirmation dialog that appears.
(7) If you have multiple entries for the software you're getting the "not a valid short file name" or "invalid character" message for, repeat steps 5 and 6 for the other entries for the software.
(8) Click Exit.
(9) Restart the computer.
If you were getting the "not a valid short file name" or "invalid character" message when trying to upgrade or launch software, now try reinstalling the latest version of the software.
If you were getting the "not a valid short file name" or "invalid character" message when just trying to uninstall software, program files for the software in question will remain on the PC after it has been removed by the Windows Installer CleanUp utility. If you want to remove leftover program files, check in at the appropriate forum at [Apple Discussions|http://discussions.apple.com/index.jspa?categoryID=1] and ask which files can be safely removed.
This is the 1st version of this tip. It was submitted on March 24, 2010 by b noir.
Do you want to provide feedback on this User Contributed Tip or contribute your own? If you have achieved Level 2 status, visit the User Tips Library Contributions forum for more information.Go to Microsoft website to fix installer file problems.
Click "Run now" from Fix it to remove all iTunes & related installer files:
http://support.microsoft.com/mats/Program_Install_and_Uninstall
Be aware that Windows Installer CleanUp Utility will not remove the actual program from your computer. However, it will remove the installation files so that you can start the installation, upgrade, or uninstall over.
Download and Install iTunes -
ORA-01504: database name 'DEV1' does not match parameter db_name 'PROD1'
Hi, All -
This is my first time cloning a database. The recovery finished but gave me the following error message. All the parameters in the pfile are set to "DEV1". I believe that the parameter db_name 'PROD1' exists in the control file and causing this error. The control file is under ASM.
How can I change the parameter in the control file and bring the 'DEV1' cloned database up? Also, how can I avoid this issue next time I do a clone?
Thanks in advance!
Oracle 10g Release 2 on RHEL5
Database cloning using RMAN Duplicate > ORA-01504: database name 'DEV1' does not match parameter db_name 'PROD1'
ASMCMD> ls
control01.ctl
current.275.729098001
archive log filename=/u001/dbsvr/dev1/1_131706_653848580.dbf recid=59 stamp=741953991
media recovery complete, elapsed time: 00:09:31
*Finished recover at 01-FEB-11*
contents of Memory Script:
shutdown clone;
startup clone nomount ;
executing Memory Script
database dismounted
Oracle instance shut down
connected to auxiliary database (not started)
Oracle instance started
Total System Global Area 725614592 bytes
Fixed Size 2075592 bytes
Variable Size 448791608 bytes
Database Buffers 268435456 bytes
Redo Buffers 6311936 bytes
sql statement: CREATE CONTROLFILE REUSE SET DATABASE "DEV1" RESETLOGS ARCHIVELOG
MAXLOGFILES 50
MAXLOGMEMBERS 5
MAXDATAFILES 100
MAXINSTANCES 1
MAXLOGHISTORY 5445
LOGFILE
GROUP 1 '+DATA3/dev1/datafile/redo01.log' SIZE 100 M ,
GROUP 2 '+DATA3/dev1/datafile/redo02.log' SIZE 100 M ,
GROUP 3 '+DATA3/dev1/datafile/redo03.log' SIZE 100 M
DATAFILE
'+DATA3/dev1/datafile/system01.dbf'
CHARACTER SET WE8ISO8859P1
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at 02/01/2011 10:30:17
RMAN-06136: ORACLE error from auxiliary database: ORA-01503: CREATE CONTROLFILE failed
ORA-01504: database name 'DEV1' does not match parameter db_name 'PROD1'
RMAN>
RMAN> **end-of-file**
RMAN>Respected, Sybrand Bakker -
Thanks for constructive feedback!
Here are the command that I ran.
RMAN> connect target sys/<password>@PROD1
connected to target database: PROD1 (DBID=556212836)
RMAN> connect auxiliary sys/<password>
connected to auxiliary database: DEV1 (not mounted)
RMAN> @rman_dup.sql
rman_dup.sql contains
run {
allocate auxiliary channel d1 type disk;
set newname for datafile 1 to '+DATA3/dev/datafile/system01.dbf';
set newname for datafile 2 to '+DATA3/dev/datafile/undotbs01.dbf';
set newname for datafile 3 to '+DATA3/dev/datafile/cwmlite01.dbf';
set newname for datafile 4 to '+DATA3/dev/datafile/drsys01.dbf';
set newname for datafile 5 to '+DATA3/dev/datafile/example01.dbf';
set newname for datafile 6 to '+DATA3/dev/datafile/indx01.dbf';
set newname for datafile 7 to '+DATA3/dev/datafile/odm01.dbf';
set newname for datafile 8 to '+DATA3/dev/datafile/tools01.dbf';
set newname for datafile 9 to '+DATA3/dev/datafile/users01.dbf';
set newname for datafile 10 to '+DATA3/dev/datafile/xdb01.dbf';
set newname for datafile 11 to '+DATA3/dev/datafile/cons01.dbf';
set newname for datafile 12 to '+DATA3/dev/datafile/survey01.dbf';
set newname for datafile 13 to '+DATA3/dev/datafile/mem201.dbf';
set newname for datafile 14 to '+DATA3/dev/datafile/cons02.dbf';
set newname for datafile 15 to '+DATA3/dev/datafile/mem202.dbf';
set newname for datafile 16 to '+DATA3/dev/datafile/cater01.dbf';
set newname for datafile 17 to '+DATA3/dev/datafile/users02.dbf';
set newname for datafile 18 to '+DATA3/dev/datafile/mar_data01.dbf';
set newname for datafile 19 to '+DATA3/dev/datafile/sysaux01.dbf';
set newname for datafile 20 to '+DATA3/dev/datafile/streams_tbs_01.dbf';
set newname for datafile 21 to '+DATA3/dev/datafile/users03.dbf';
set newname for tempfile 1 to '+DATA3/dev1/tempfile/temp01.dbf';
duplicate target database to dev1
until scn 48712532746
logfile
'+DATA3/dev1/datafile/redo01.log' size 100M,
'+DATA3/dev1/datafile/redo02.log' size 100M,
'+DATA3/dev1/datafile/redo03.log' size 100M;
}Edited by: CipherDBA on Feb 3, 2011 10:50 AM -
Oracle 10gR2, Windows, 64bit.
This code produces the infamous ORA-02069 Global Names must be set to TRUE error:
insert into job_bag@dblink1 (job_bag_id, user_id, name, created_date, status)
values
(job_bag_id_seq.nextval@dblink2, 80487, 'Some Name or Other', sysdate, 1)But the link names don't match the database names, so even setting global_names is a non-starter (and I'm not going to be able to change the link names any time soon).
Fortunately, I can re-write this like so:
declare
myseq number;
begin
select job_bag_id_seq.nextval@dblink1 into myseq from dual;
insert into job_bag@dblink2 (job_bag_id, user_id, name, created_date, status)
values (myseq, 80487, 'Some Name or Other', sysdate, 1);
end;...and it all works beautifully. So fixes and workarounds I don't actually need on this occasion, just for a change. But, more out of curiosity than a cry for help: why does the first example fail and the second not?
I can speculate that one operation and two links is not allowed, whereas the second code splits the operation into two steps and passes. I can also speculate it's got something to do with the use of a sequence as one part of the 'simultaneous' operation.
But I'm curious if anyone really knows why the first example fails.
Searching Google, I see plenty of requests for help on ORA-02069, and one or two workarounds of the 'second example' variety shown here, but no actual explanations, so here's hoping that might change this time...I'm afraid I don't know what you're asking, really. All I can say by way of reply is that the fact I get a "global names" error indicates that it's seeing the database link, treating it as a database link and producing vaguely appropriate errors accordingly. It's not throwing a data type exception, for example, as it would if I was trying to store some text in a numeric column.
Again, I can only really repeat that example 2 has the same basic code inserting the same basic data as example 1 tries to do. One works, the other doesn't... I don't think that makes it a datatype issue (but I could well be completely wrong on that, of course).
I did wonder whether the first example might work better if it was of the form
...values ((select sequence@dblink2 from dual),'other data','here')...
In other words, whether it's just a syntactical issue. But I didn't test that. I'll give it a whirl... -
How to remove database name from SQL query
We have an MS SQL server with several databases that are of the same schema but have different data. We do this for testing different environments. We are using Crystal reports for the first time and we are having trouble changing the database location in the designer. If update the data source location to the same database server, but different database name, the data still comes from the original database used when creating the report. We look at the SQL query and it contains the database name and does not change when updating the data source. Therefore the data always comes from the database used when originally creating the report.
How can I remove the database name from the SQL query so the proper database is used when testing the report?Hi C F
Please ensure you have followed the procedure mentioned below:
In Crystal Reports, there are two ways to set the location of the data source your report points to, depending on your connection type.
For ODBC and Native Connections:
1. On the 'Database' menu, click 'Set Datasource Location'.
2. In the 'Current Data Source' section, click the data source to be changed. You must click each individual table in the data source one by one. If the data source is a stored procedure you will not see individual tables.
NOTE In Crystal Reports 10, XIR1, and XIR2, if you are mapping from a data source such as a stored procedure where the report designer can not determine which fields should be mapped automatically, you will see a 'Mapping' dialog box where you can manually map fields, as in the procedure cited above.
3. In the 'Replace with' section, click the data source you want the report to use.
4. Click 'Update'.
5. Close the 'Set Datasource Location' window.
The report now points to the new location.
For Native Connections Only:
1. On the 'Database' menu, click 'Set Datasource Location'.
2. In the 'Current Data Source' section, click 'Properties' to expand it and right-click 'Database Name: <path to database>'.
3. Click 'Edit' and then type the path to the
new data source location.
4. Close the 'Set Datasource Location' window.
The report now points to the new location.
Regards
Girish -
Character name/description from Character symbol
Hi,
This may sound a bit unusual, but probably someone already did this.
Is there any way to show the description or name of a character that was just typed in the String control?
So for example, if I type " ", the description is "<space>", and if I type "," then the description is "comma".
Yes, I can build this through a case structure on my own, but if it's possible to fetch from some existing database (like the Char mapping), then it's better. Because on my own, I may miss some character and after all, it's a lengthy process.
Thanks and Regards,
Vaibhav
Solved!
Go to Solution.Hi GerdW and MC,
Thanks.
I found my complete table on the http://www.theasciicode.com.ar/ page.
It's a pity I cannot use the UNICODE characters in LabVIEW, alongwith other simple characters. I must change the whole text's font to Symbol, for example to use Greek letters in between other text controls (like Enum or String or Tree View), as I asked in another thread. That would have been really good.
Regards,
Vaibhav -
Integrate source db with target EBS database using ODI
Hi
We have a requirement to integrate our legacy systems to Oracle E-business suite 12.1.1 database 10g. We have several MS-SQL and oracle databases that has to be integrate with our Oracle EBS database. Oracle says to have separate schema for Master and Work repository, and also create a new schema when connecting to the data store and use the same schema as a WORK SCHEMA when creating a physical schema. My question is:
1) What are all the privileges to be assigned to the new schema used as a WORK SCHEMA? Oracle EBS holds many FND schemas and APPS uses the synonyms of all the tables. So what oracle recommends when using EBS with ODI?
2) Do we need to create a separate work schema for each and every SOURCE Database as well?
3) We are not using separate oracle database for ODI we will be creating schemas in PROD to hold ODI data. Our management wants the the odi schema to hold the staging data. Can we use the the same Work schema mentioned in the first point as a staging area as well?
Thank you
Regards
Shahrukh YasinHi Shahrukh ,
There are two ways.(1st one is recommended)
1.You can make source schema in one database and target schema, work schema in another database.
For source schema only read only access privilege.
You must have complete ownership in work schema and target schema(Minimum insert,update,delete).
Here you have to always create one work schema in every target database
2.if all schema present in 3 different database,you also need above criteria.
But here you don't have to create work schema always.its fixed.
This process takes much time for transformation and not an efficient way.
Regards
Bhabani -
OLAP and version on EBS database upgrade and migration
Hi all,
Recently I have upgraded EBS database to 11.2.0.3. When I querey " select COMP_ID,COMP_NAME,VERSION,STATUS
from dba_registry; " getting below output
SQL> select COMP_ID,COMP_NAME,VERSION,STATUS,MODIFIED from dba_registry;
COMP_ID COMP_NAME VERSION STATUS
ODM Oracle Data Mining 11.2.0.3.0 VALID
CONTEXT Oracle Text 11.2.0.3.0 VALID
AMD OLAP Catalog 11.2.0.3.0 VALID
SDO Spatial 11.2.0.3.0 VALID
ORDIM Oracle Multimedia 11.2.0.3.0 VALID
XDB Oracle XML Database 11.2.0.3.0 VALID
EXF Oracle Expression Filter 11.2.0.3.0 VALID
CATALOG Oracle Database Catalog Views 11.2.0.3.0 VALID
CATPROC Oracle Database Packages and Types 11.2.0.3.0 VALID
RAC Oracle Real Application Clusters 11.2.0.3.0 INVALID
JAVAVM JServer JAVA Virtual Machine 11.2.0.3.0 VALID
XML Oracle XDK 11.2.0.3.0 VALID
CATJAVA Oracle Database Java Packages 11.2.0.3.0 VALID
APS OLAP Analytic Workspace 11.2.0.3.0 VALID
XOQ Oracle OLAP API 11.2.0.3.0 VALID
15 rows selected.I thought everything goes well.
Now I am migrating EBS from 32 bit linux to 64 bit and when I follow the note for OLAP AW Note: 579234.1 "verify OLAP was in use ". When I qurey " select DBID,NAME,VERSION,DETECTED_USAGES,CURRENTLY_USED from dba_feature_usage_statistics "
3874995160 Virtual Private Database (VPD) 10.2.0.5.0 1 TRUE
3874995160 XDB 10.2.0.5.0 1 TRUE
3874995160 LOB 10.2.0.5.0 1 TRUE
3874995160 Object 10.2.0.5.0 1 TRUE
3874995160 Extensibility 10.2.0.5.0 1 TRUE
3874995160 ASO native encryption and checksumming 11.2.0.3.0 0 FALSE
103678515 Advanced Replication 10.2.0.3.0 0 FALSE
103678515 Advanced Security 10.2.0.3.0 0 FALSE
103678515 Audit Options 10.2.0.3.0 0 FALSE
103678515 Automatic Database Diagnostic Monitor 10.2.0.3.0 0 FALSE
103678515 Automatic Segment Space Management (system) 10.2.0.3.0 144 TRUE
103678515 Automatic Segment Space Management (user) 10.2.0.3.0 144 TRUE
103678515 Messaging Gateway 10.2.0.3.0 0 FALSE
103678515 MTTR Advisor 10.2.0.3.0 0 FALSE
103678515 Multiple Block Sizes 10.2.0.3.0 0 FALSE
103678515 OLAP - Analytic Workspaces 10.2.0.3.0 143 TRUE
103678515 OLAP - Cubes 10.2.0.3.0 0 FALSE
103678515 Oracle Managed Files 10.2.0.3.0 0 FALSE
103678515 Parallel SQL DDL Execution 10.2.0.3.0 71 FALSE
103678515 Parallel SQL DML Execution 10.2.0.3.0 68 FALSE
103678515 Virtual Private Database (VPD) 10.2.0.3.0 144 TRUE
103678515 Advanced Replication 10.2.0.5.0 0 FALSE
103678515 ASO native encryption and checksumming 10.2.0.5.0 0 FALSE
103678515 Audit Options 10.2.0.5.0 0 FALSE
103678515 Automatic Database Diagnostic Monitor 10.2.0.5.0 0 FALSE
103678515 Automatic Segment Space Management (system) 10.2.0.5.0 25 TRUE
103678515 Automatic Segment Space Management (user) 10.2.0.5.0 25 TRUE
103678515 Automatic SQL Execution Memory 10.2.0.5.0 25 TRUE
103678515 Automatic Storage Manager 10.2.0.5.0 0 FALSE
103678515 Automatic Undo Management 10.2.0.5.0 25 TRUE
103678515 Automatic Workload Repository 10.2.0.5.0 0 FALSE
103678515 AWR Report 10.2.0.5.0 0 FALSE
103678515 Change-Aware Incremental Backup 10.2.0.5.0 0 FALSE
103678515 CSSCAN 10.2.0.5.0 0 FALSE
103678515 Character Semantics 10.2.0.5.0 0 FALSE
103678515 Character Set 10.2.0.5.0 25 TRUE
103678515 Data Guard 10.2.0.5.0 0 FALSE
103678515 Data Guard Broker 10.2.0.5.0 0 FALSE
103678515 Data Mining 10.2.0.5.0 0 FALSE
103678515 Dynamic SGA 10.2.0.5.0 0 FALSE
103678515 MTTR Advisor 10.2.0.5.0 0 FALSE
103678515 Multiple Block Sizes 10.2.0.5.0 0 FALSE
103678515 OLAP - Analytic Workspaces 10.2.0.5.0 25 TRUE
103678515 OLAP - Cubes 10.2.0.5.0 0 FALSE
103678515 Oracle Managed Files 10.2.0.5.0 0 FALSE
103678515 Parallel SQL DDL Execution 10.2.0.5.0 1 FALSE
103678515 Parallel SQL DML Execution 10.2.0.5.0 0 FALSE
103678515 Parallel SQL Query Execution 10.2.0.5.0 22 TRUE
103678515 Recovery Manager (RMAN) 10.2.0.5.0 25 TRUE
103678515 RMAN - Disk Backup 10.2.0.5.0 24 TRUE
103678515 RMAN - Tape Backup 10.2.0.5.0 25 TRUE
103678515 Resource Manager 10.2.0.5.0 0 FALSE
103678515 SQL Tuning Set 10.2.0.5.0 0 FALSE
103678515 Streams (user) 10.2.0.5.0 25 TRUE
103678515 Transparent Gateway 10.2.0.5.0 0 FALSE
103678515 Undo Advisor 10.2.0.5.0 0 FALSE
103678515 Virtual Private Database (VPD) 10.2.0.5.0 25 TRUE
103678515 XDB 10.2.0.5.0 25 TRUE
103678515 LOB 10.2.0.5.0 25 TRUE
103678515 Object 10.2.0.5.0 25 TRUE
103678515 Extensibility 10.2.0.5.0 25 TRUE
103678515 Change Data Capture 10.2.0.5.0 0 FALSE
103678515 Materialized Views (User) 10.2.0.5.0 25 TRUE
3874453699 Advanced Replication 10.2.0.5.0 0 FALSE
3874453699 ASO native encryption and checksumming 10.2.0.5.0 0 FALSE
3874453699 Audit Options 10.2.0.5.0 0 FALSE
3874453699 Data Mining 10.2.0.5.0 0 FALSE
3874453699 Dynamic SGA 10.2.0.5.0 0 FALSE
3874453699 EM Database Control 10.2.0.5.0 0 FALSE
3874453699 EM Grid Control 10.2.0.5.0 0 FALSE
3874453699 MTTR Advisor 10.2.0.5.0 0 FALSE
3874453699 Multiple Block Sizes 10.2.0.5.0 0 FALSE
3874453699 OLAP - Analytic Workspaces 10.2.0.5.0 1 TRUE
3874453699 OLAP - Cubes 10.2.0.5.0 0 FALSE
3874453699 Oracle Managed Files 10.2.0.5.0 0 FALSE
3874453699 Parallel SQL DDL Execution 10.2.0.5.0 0 FALSE
3874453699 Parallel SQL DML Execution 10.2.0.5.0 0 FALSE
3874453699 Parallel SQL Query Execution 10.2.0.5.0 0 FALSE
3874453699 Resource Manager 10.2.0.5.0 0 FALSE
3874453699 Server Parameter File 10.2.0.5.0 1 TRUE
3874453699 Shared Server 10.2.0.5.0 0 FALSE
3874453699 Spatial 10.2.0.5.0 1 TRUE
3874453699 Locator 10.2.0.5.0 0 FALSE
3874995160 Partitioning (user) 11.2.0.3.0 1 TRUE
3874995160 Services 11.2.0.3.0 1 TRUE
3874995160 Oracle Java Virtual Machine (system) 11.2.0.3.0 1 TRUE
446 rows selected.This is cloned instanse from from production.
1 - I can see different DBID for the same and for some DBID it is showing different version. any problem during upgrade ( 10.2.0.3 -> 10.2.0.5 - one year back) and (10.2.0.5 to 11.2.0.3) ?
If any problem, please let me know what I can do to fix.
2 - For OLAP details :
SQL> select DBID,NAME,VERSION,DETECTED_USAGES,CURRENTLY_USED from dba_feature_usage_statistics where NAME like 'OLAP%';
DBID NAME VERSION DETECTED_USAGES CURRE
103678515 OLAP - Analytic Workspaces 10.2.0.3.0 143 TRUE
103678515 OLAP - Analytic Workspaces 10.2.0.5.0 25 TRUE
3874453699 OLAP - Analytic Workspaces 10.2.0.5.0 1 TRUE
3874995160 OLAP - Analytic Workspaces 10.2.0.5.0 1 TRUE
3874995160 OLAP - Analytic Workspaces 11.2.0.3.0 1 TRUE
103678515 OLAP - Cubes 10.2.0.3.0 0 FALSE
103678515 OLAP - Cubes 10.2.0.5.0 0 FALSE
3874453699 OLAP - Cubes 10.2.0.5.0 0 FALSE
3874995160 OLAP - Cubes 10.2.0.5.0 0 FALSE
3874995160 OLAP - Cubes 11.2.0.3.0 0 FALSE
Do I need to do anything for export olap AW ?
3 - Remobe OLAP from 32 bit. After following the steps mentioned in note: 352306.1 am getting invalid objects with object name start with OLAP.
SQL> select owner, object_name, object_type from dba_objects where status <> 'VALID';
OWNER OBJECT_NAME OBJECT_TYPE
SYS OLAPIBOOTSTRAP FUNCTION
SYS OLAPIHANDSHAKE FUNCTION
PUBLIC OLAPIBOOTSTRAP SYNONYM
PUBLIC OLAPIHANDSHAKE SYNONYM
Do I need to remove these objects manually?
Thanks,1 - I can see different DBID for the same and for some DBID it is showing different version. any problem during upgrade ( 10.2.0.3 -> 10.2.0.5 - one year back) and (10.2.0.5 to 11.2.0.3) ?
If any problem, please let me know what I can do to fix. What do you mean by "any problem during upgrade"?
2 - For OLAP details :
SQL> select DBID,NAME,VERSION,DETECTED_USAGES,CURRENTLY_USED from dba_feature_usage_statistics where NAME like 'OLAP%';
DBID NAME VERSION DETECTED_USAGES CURRE
103678515 OLAP - Analytic Workspaces 10.2.0.3.0 143 TRUE
103678515 OLAP - Analytic Workspaces 10.2.0.5.0 25 TRUE
3874453699 OLAP - Analytic Workspaces 10.2.0.5.0 1 TRUE
3874995160 OLAP - Analytic Workspaces 10.2.0.5.0 1 TRUE
3874995160 OLAP - Analytic Workspaces 11.2.0.3.0 1 TRUE
103678515 OLAP - Cubes 10.2.0.3.0 0 FALSE
103678515 OLAP - Cubes 10.2.0.5.0 0 FALSE
3874453699 OLAP - Cubes 10.2.0.5.0 0 FALSE
3874995160 OLAP - Cubes 10.2.0.5.0 0 FALSE
3874995160 OLAP - Cubes 11.2.0.3.0 0 FALSE
Do I need to do anything for export olap AW ?Why to export OLAP AW? And is this output from prod or dev?
3 - Remobe OLAP from 32 bit. After following the steps mentioned in note: 352306.1 am getting invalid objects with object name start with OLAP.
SQL> select owner, object_name, object_type from dba_objects where status <> 'VALID';
OWNER OBJECT_NAME OBJECT_TYPE
SYS OLAPIBOOTSTRAP FUNCTION
SYS OLAPIHANDSHAKE FUNCTION
PUBLIC OLAPIBOOTSTRAP SYNONYM
PUBLIC OLAPIHANDSHAKE SYNONYM
Do I need to remove these objects manually?Yes. Please see (Invalid OLAPIBOOTSTRAP, OLAPIHANDSHAKE, GENINTERRUPTABLEINTERFACE Objects After Removing Olap from 11g [ID 1377048.1]) for details.
Thanks,
Hussein -
Attempting to restore database to same server with different name.
I have just restored my production database to an earlier backup to recover from a major application error.
I now need to reatore a second copy of the database to recover some data which was lost as a result of the restore. The only place I can do this is on the same server.
I can't use duplicate database because the time I want is before the resetlogs time of the current version.
I don't think I can use recover using backup controlfile because restoring the control file will have the old database name. Can I restore the control file, rename the database and still use the rman backups of the original database?
If so how?
Can use set incarnation to get round the resetlogs issue without affecting the current database?
10gR2
Windows 2008 64-bit
Edited by: Jim Smith on Oct 27, 2011 8:54 PMHi
Database name can be the same ORACLE_SID must be unique on the machine and in specific ORACLE_HOME.
So effectively you can have 2 databases with the same name but instance names must be unique.
Paul -
Can we enable Database Name box while scheduling report
Hi, I am boxi administrator and I am working on a unique client requirement. I don't know if it needs to be in administration forum or crystal reports. we are using crystal reports and We are on boxi R2 SP3 on IIS.
We have 8 DB servers for load balancing ( look www.intersystems.com for details of how). We want to publish report in BOXI and user will then schedule report. We don't want multiple copies as it will be difficult to maintain at several places. So please rule out the possibility of 8 copies of same Crystal report connected to each 8 DB servers.
When user schedules report then we want to load balance the DB servers i.e. we have defined 8 ODBC connections on each application servers and want to use all ODBC ( DB) for each report. When we schedule reports then I see server name and Database name is disabled in Database logon properties.
Please let me know if this is possible. We will be using standard infoview to schedule reports.
Thanks,This is not feasible. I figured out one option that is using Virtual IP with Load balancer. We can load balance ODBC using this. This is tested in another project of state govt.
Thanks,
Maybe you are looking for
-
How do I use my Canadian USD Visa/Mastercard on my Apple account?
I'm a Canadian, with homes in both Canada and USA. I have a Visa and a Mastercard. Both currencies are USD. My billing address on both cards are Canadian. So how do I use my card in the App store? It always gives me an error about my location. My bil
-
I bought a CD and it is not showing up on my computers library
phone is able to get it but it isn't there on the computer, store says purchased but no way to download downloads doesn't have it ether. this isn't the first time it hasn't noticed a purchase, i had to burn it onto a CD from another computer...short
-
My time capsule isn't broadcasting
My time capsule is having power issues (?). When I unplug it to reset and plug it back in, the indicator light is on for a few seconds then shuts off. It does not broadcast a signal. There are no issues with the modem or the connections.
-
Hi - I've build a page that has an iFrame in it. The page has a dhtml horizontal scrollbar scripted for it, moving a div within a div with a clipwindow on it. The custom scrollbar and the div render correctly and function fine. The problem: in Safari
-
Banshee package sorely out-of-date
I'm not sure where to go with this, but the Banshee package in the Extra repository has become sorely out-of-date. The current repo package is 0.10.10, while the current version available is 0.11.0 (and the latest from the 0.10 series was 0.10.12).