Install oracle database prior to installing oracleAS ?

Hello world,
I am trying to installing oracle application server on my computer.
Going through installation steps I find that OracleAS metadata repository will be created automatically in a database.
Does the installing OracleAS comes with Oracle database? or Am I required to install Oracle Database before I install OracleAS Infrastructure components?
Please point me in the right direction.
Thanks
-bifacts
Edited by: bifacts on Jan 27, 2011 4:47 PM

Hi,
By default for OAS 10g r2 metadata repository get created during your oracle infra installation,
There is no need to install separate oracle Database before installing Application server.
It depends on which OAS are you installing.
Kindly revert for any clarification
Regards
FAbian
Edited by: Fabian on Jan 28, 2011 12:21 AM

Similar Messages

  • Database growth following index key compression in Oracle 11g

    Hi,
    We have recently implemented index key compression in our sap R3 environments, but unexpectedly this has not resulted in any reduction of index growth rates.
    What I mean by this is that while the indexes have compressed on average 3 fold (over the entire DB), we are not seeing this with the DB growth going forward.
    ie We were experiencing ~15GB/month growth in our database prior to compression, but this figure doesnt seem to have changed much in the 2-3months that we have implemented in our production environments.
    Our trial with ACO compression seemed to yield reduction of table growth rates that corresponded to the compression ratio (ie table data growth rates dropped to a third after compression), but we havent seen this with index compression.
    Does anyone know if a rebuild with index key compression  will it compress any future records inserted into the tables once compression is enabled (as I assumed) or does it only compress whats there already?
    Cheers
    Theo

    Hello Theo,
    Does anyone know if a rebuild with index key compression will it compress any future records inserted into the tables once compression is enabled (as I assumed) or does it only compress whats there already?
    I wrote a blog about index key compression internals long time ago ([Oracle] Index key compression), but now i noticed that one important statement is missing. Yes future entries are compressed too - index key compression is a "live compression" feature.
    We were experiencing ~15GB/month growth in our database prior to compression, but this figure doesnt seem to have changed much in the 2-3months that we have implemented in our production environments.
    Do you mean that your DB size still increases ~15GB per month overall or just the index segments? Depending on the segment type growth - maybe indexes are only a small part of your system at all.
    If you have enabled compression and perform a reorg of them, you can run into one-time effects like 50/50 block splits due to fully packed blocks, etc. It also depends on the way the data is inserted/updated and which indexes are compressed.
    Regards
    Stefan

  • Ensure that all database components/objects provided by Oracle are VALID

    Hi Guys
    need some clarification concern the below point from -> 1503653.1
    Ensure that all database components/objects provided by Oracle are VALID in the source database prior to starting the upgrade.
    Ensure that you do not have duplicate objects in the SYS and SYSTEM schema.
    Question 1:
    what do you really mean by all the database components/ objects provided by oracle are Valid?
    does the below object consider an Oracle object? I got to know this objects is invalid after  after running -> dbupgdiag.sql
    SQLTXADMIN   SYNONYM        1
    Question 2:
    if my user application objects is invalid? Can i still be able to forward with the upgrade?
    It seem that the main concern is those ORACLE's component/ objects have to be VALID.

    hi all,
    want to add on.
    does ORACLE's component means objects own by SYS and SYSTEM?
    like the below objects that is spool out by the script  -> dbupgdiag.sql
    that it is in invalid status.
    SYS          USER_AUDIT_TRAIL                         VIEW
    SYS          DBA_AUDIT_SESSION                      VIEW
    SYS          USER_AUDIT_SESSION                    VIEW
    SYS          DBA_AUDIT_STATEMENT                 VIEW
    SYS          DBA_COMMON_AUDIT_TRAIL          VIEW
    SYS          DBA_AUDIT_OBJECT                         VIEW
    SYS          USER_AUDIT_OBJECT                       VIEW
    SYS          DBA_AUDIT_EXISTS                           VIEW
    SYS          USER_AUDIT_STATEMENT               VIEW

  • WLS 10.3.4 datasource to an Oracle 8.1.7 database

    is it possible to create a generic datasource to an Oracle 8.1.7 database within WLS 10.3.4? Documentation may not list a databases prior to 9i as supported, but can it be done?
    I downloaded the driver from OTN but getting an error when creating in the admin console.
    Connection test failed.
    Error Listener refused the connection with the following error: ORA-12514, TNS:listener does not currently know of service requested in connect descriptor
    oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:443)
    oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:670)
    oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:230)
    oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:34)
    oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:567)
    com.bea.console.utils.jdbc.JDBCUtils.testConnection(JDBCUtils.java:705)
    com.bea.console.actions.jdbc.datasources.createjdbcdatasource.CreateJDBCDataSource.testConnectionConfiguration(CreateJDBCDataSource.java:458)
    sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    java.lang.reflect.Method.invoke(Method.java:597)
    org.apache.beehive.netui.pageflow.FlowController.invokeActionMethod(FlowController.java:870)
    org.apache.beehive.netui.pageflow.FlowController.getActionMethodForward(FlowController.java:809)
    org.apache.beehive.netui.pageflow.FlowController.internalExecute(FlowController.java:478)
    org.apache.beehive.netui.pageflow.PageFlowController.internalExecute(PageFlowController.java:306)
    org.apache.beehive.netui.pageflow.FlowController.execute(FlowController.java:336)
    org.apache.beehive.netui.pageflow.internal.FlowControllerAction.execute(FlowControllerAction.java:52)
    org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
    org.apache.beehive.netui.pageflow.PageFlowRequestProcessor.access$201(PageFlowRequestProcessor.java:97)

    As you can see at http://www.oracle.com/technetwork/database/enterprise-edition/jdbc817-100207.html the problem here is that the drivers for these old versions of the database work with old versions of the JDK too (1.1, 1.2). Weblogic 10g works with JDK 1.5+ (even I would suggest 1.6+), so they have no compatibility at JDBC driver level, thus that's why you see 9i and later as supported only. So unfortunately, I am afraid that this 8.1.7 database with Weblogic 10.3.4 mix cannot be done, and you should consider moving to a newer database version, which in fact will contain a lot of enhancements that your current db installation does not have.

  • ISQLPlus and Oracle HTTP Server

    After I reinstalled Oracle 9i on Windows XP, I now get a a FastCGI server error whenever I attempt to launch Oracle HTTP Server: "Redefinition of previously defined FastCGI Server". How do I correct this? I uninstalled the database prior to reinstalling. Question 2: I also installed Oracle 9i on Windows 98 and Oracle HTTP Server appears NOT to be part of the install so I don't know how to make iSQLPlus work. Any ideas on either of these? I would prefer to work on Windows XP.

    In answer to your first question, it may be answered in this SQL*Plus FAQ entry:
    http://otn.oracle.com/support/tech/sql_plus/htdocs/runtime.html#isql_duplicate_entries
    In answer to your second question, I don't think iSQL*Plus is part of the Windows 98 install. I don't think you even have a database, just the Oracle Client.
    Alison

  • 11gr2 De-Install 11gr2 auto exit in silent mode

    Hi All,
    I am able to uninstall Oracle 11gr2 successfully with the silent mode. But it does not exits the deinstall command prompt after completion, I have to manually type Exit command. What I want is without any user intervention it should exit automatically after completion. I am using the following command to call deinstall:
    "\Oracle\deinstall\deinstall.bat -silent" . Also i have edited the deinstall.rsp.tmpl.
    Any suggestions will be helpful.
    Thanks

    Hi Srini,
    Thanks for the reply.
    OS Version is : Windows XP Professional SP3 - 32 bit Build 2600
    For more information, I am pasting the edited deinstall.rsp.tmpl contents:
    # Copyright (c) 2005, 2008, Oracle and/or its affiliates.All rights reserved.
    #Wed May 10 22:10:41 PDT 2006
    #The comma separated list of nodes in Oracle clusterware
    CLUSTER_NODES=
    #The complete path of Oracle central inventory
    INVENTORY_LOCATION=<complete path of central inventory>
    #The complete path of Oracle Clusterware home
    ORA_CRS_HOME=
    #Set to 'true' if deinstalling CRS home; 'false' otherwise>
    CRS_HOME=
    #Remote nodes list
    REMOTE_NODES=
    #Local Node
    LOCAL_NODE=
    # Network Properties
    # The name of Oracle home in Oracle central inventory
    NETCA_HOME_NAME=
    #The comma separated list of listener prefixes selected for deconfiguring in this home
    NETCA_CLEANUP_LSNR_PREFIX_LIST=
    #if listeners with prefix <Listener Prefix Name> has to be migrated to another home; specify the complete path of the Oracle home
    NETCA_MIGRATE_TO_HOME_<Listener Prefix Name>=
    #Comma separated list of LISTENER prefixes that will be migrated to another oracle home
    NETCA_MIGRATE_LSNR_PREFIX_LIST=
    #The comma separated list of nodes the <Listener prefix Name> chosen for deconfigure or migrate
    #NETCA_NODELIST_<Listener prefix Name>=
    NETCA_LOCAL_LISTENERS=LISTENER
    #The comma separated list of nodes the <Listener prefix Name> chosen for deconfigure
    NETCA_CLEANUP_NODELIST_<Listener prefix Name>=
    #Home Common properties
    #set to 'true' if Oracle RAC database home has Oracle binary and it is functioning properly; false, otherwise
    ORACLE_BINARY_OK=true
    #Database properties
    #The command separated list of Databases to be deconfigured
    DB_UNIQUE_NAME_LIST=SER1
    #Use 'y' if the database was created out of the home. use 'n' if the database was upgraded from another home
    #CREATION_MODE.<database-name>=
    CREATION_MODE.SER1=Y
    #The comma separated list of nodes on which the Oracle database instances are configured
    NODE_LIST.<database-name>=
    #The local instance name of the database
    LOCAL_SID.<database-name>=
    #Instance(SID) list for the database instances for each node
    SID_LIST.<database-name>=
    #If ORACLE_BASE environment value was set during database creation, provide the value
    ORACLE_BASE.<database-name>=
    #Full path to the SPfile location of database instance, if SPfile option was selected
    SPFILE_LOC.<database-name>=
    #Storage Type can be any of ASM, CFS or RAW
    STORAGE_TYPE.<database-name>=
    #List of directories if any database files exist on a shared file system.
    #Required for CFS storage, optional for ASM and RAW
    #If Database-name subdirectory is found, it will be deleted.
    #Otherwise, specified directory will be deleted.
    #Alternatively, you can specify list of database files with full path
    DATAFILE_LOC.<database-name>=
    #Raw device mapping file if storage type is RAW
    RAW_MAPPING_FILE.<database-name>=
    #The comma separated list of Disk groups used by this database, if storage type is ASM
    DISK_GROUPS.<database-name>=
    #ASM Oracle home path, if storage type is ASM
    ASM_HOME=
    #Dump destination directory for the database
    DUMP_DESTINATION_LOC.<database-name>=
    #Archive log destination directory
    ARCHIVE_LOG_DESTINATION_LOC.<database-name>=
    #Flash recovery area location
    FLASH_RECOVERY_LOC.<database-name>=
    #The previous version of the upgraded database
    DBUA.OLD_DB_VERSION.<database-name>=
    #Full path to Restore Script if Restore option was selected during Database Upgrade
    DBUA.BACKUP_LOC.<database-name>=
    #Full path to SYSAUX data file location, only if prior db version 9.2
    DBUA.SYSAUX_DATAFILE_LOC.<database-name>=
    #Oracle Home of the database prior to upgrade
    DBUA.OLD_OH.<database-name>=
    #ASM properties
    #List of Nodes selected for configuring ASM instances
    #If ASM is not configured in this home, leave this value empty
    #If this property has values, specify ASM related values
    ASM_NODE_LIST=
    #The comma separated ASM instance names, if ASM is configured
    ASM_SID_LIST=
    #Full path to the SPfile location of ASM instance, if SPfile option was selected
    ASM_SPFILE_LOC=
    #List of Disk groups created in this ASM instance
    ASM_DISK_GROUPS=
    #ASM Instance Creation, Specify 'y' if ASM was created and 'n' if ASM was upgraded from prior version
    ASM_CREATION_MODE=
    #ORACLE_BASE environment, if set during ASM creation or upgrade
    ASM_ORACLE_BASE=
    #Local Instance Name of the ASM instance(Generally, +ASM1)
    ASM_LOCAL_SID=
    #The comma separated list of remote_listener parameter, tns aliases for each upgraded ASm instances
    DBUA.OLD_REMOTE_LISTENER=
    #The comma separated list of local_listener parameter, tns aliases for each upgraded ASM instances
    DBUA.OLD_LOCAL_LISTENER_LIST=
    #Oracle home path value prior to migration of the ASM Instance
    DBUA.ASM_OLD_OH=
    #EMCP properties
    #set "UPGRADE_DBCONTROL" if the database was upgraded from a previous version;
    EMCP.CONFIG_MODE.<database-name>=
    EMCP.CHECK_POINT.<database-name>=UPGRADE_TARGETS,DBCONTROL_START
    #The comma separated list database names
    EMCP.DB_UNIQUE_NAME_LIST=
    EMCP.OLD_DB_PORT.<database-name>=1521
    EMCP.CHECK_POINT.LISTENER=UPGRADE_TARGETS
    EMCP.CONFIG_MODE.LISTENER=LISTENER_MIGRATION
    EMCP.LSNR_PREFIX_LIST=LISTENER
    ### The following parameters are required for deinstalling Oracle RAC database home
    #The group name of the Oracle user who installed Oracle Clusterware or Oracle RAC database homes
    DBA_GROUP=dba
    #The name of the user who installed Oracle Clusterware or Oracle RAC database homes
    ORACLE_OWNER=oracle
    **********************************************************************************************************************************************************

  • How to create a database for sample code from Tutorial/Book?

    I want to try out the sample code from [http://shop.oreilly.com/product/0636920013471.do] for the book SQL Pocket Guide 3rd Ed.
    I have downloaded the oracle vm/appliance for oracle 11g2 and I have started sqlplus as sysdba.
    I'm feeling overwhelmed with these links describing how to create a database:
    [http://www.adp-gmbh.ch/ora/admin/creatingdbmanually.html]
    [http://tldp.org/HOWTO/Oracle-7-HOWTO-3.html]
    [http://www.adp-gmbh.ch/ora/admin/creatingdbmanually.html]
    (1) What is the command to list the existing databases?
    (2) What is the command to delete an existing database?
    (3) When creating a new database with the create database command, is it necessary to specify the logfile, character set, national character set, datafile, sysaux datafile, undo tablespace, temp table space? Do these have reasonable defaults? I'm not sure what proper directories are to specify for Linux and the examples are for windows.
    Can someone give me a simplified create database command to create a database called 3rdEdPocketGuide? Should I follow the example at [http://tldp.org/HOWTO/Oracle-7-HOWTO-3.html] and instead of orcl use 3rdEdPocketGuide?
    (4) What command do I use to execute the script that comes with the book SQL Pocket Guide 3rd Ed? This is the script that has all the drop table, create table and insert commands in it.
    (5) What command do I use in sqlplus to set the current default database prior to running this script? Perhaps this is the connect command? I don't want my script to create tables in the system database.
    (6) I tried the command "connect 3rdEdPocketGuide" and it prompted for a password! Yikes! What password? Do I need to specify a password when I create a database? I cannot tell if I have successfully created such a database or it is just prompting me for a password to thwart malicious users. Is it is possible to create databases which don't require a password or maybe a zero length password?
    Thanks
    Siegfried
    Edited by: user8816970 on Sep 26, 2012 12:01 PM
    Edited by: user8816970 on Sep 26, 2012 12:18 PM

    user8816970 wrote:
    Paul,
    Thanks! I tried changing my profile name to siegfried but I'm not seeing the change...
    Anyway, I'm trying your suggestion to use SQL Developer which was already installed in the virtual box appliance and I cannot figure out how to get a connection.
    When I use the defaults of sid=xe, port=1521, hostname=localhost and specify
    username=sysdba
    password=
    I get status: failure - test failed: listener refursed connection with the following error: ORA 12505, TNS: listener does not current know of sid given.
    So I try sid=orcl and that works better: status: failure - test failed: ORA-01017: invalid username/passowrd; login denied
    OK, sqlplus let me in with out a password, why does not this work?
    So I try checking the box for "OS Authentication" and I get the same error!
    Hoek: I tried searching the documentation and found "3 Exploring Oracle Database with SQL Developer" at http://docs.oracle.com/cd/E11882_01/appdev.112/e10766/toc.htm but following those directions did not help. Can you be more specific? The directions were for a tutorial and I need to know what the passwords are for the database set up with [http://www.oracle.com/technetwork/database/enterprise-edition/databaseappdev-vm-161299.html|http://www.oracle.com/technetwork/database/enterprise-edition/databaseappdev-vm-161299.html] . I also found [http://docs.oracle.com/cd/E11882_01/appdev.112/e10766/tdddg_connecting.htm#CEGHFHIG|http://docs.oracle.com/cd/E11882_01/appdev.112/e10766/tdddg_connecting.htm#CEGHFHIG] but that did not help either.
    Everyone:
    Do I need to create a user using SQL*Plus first so I can login with "Oracle SQL Developer" so I create my database called? What would be the "create user" command I would execute?
    OK, so I run sqlplus and issue these commands
    create user siegfried identified by abc ;
    grant connect to siegfried ;
    connect siegfried/abc;
    Now, how do I create a database? In Microsoft SQL Server one has to create a database first and if you just start creating tables without creating a database first, the tables will be created in the system database and this is usually undesirable.
    Sometimes a database is known in the java connection string as the catalog. Is there any such analog in oracle SQL plus?
    So now what do I do? I want to create a bunch of tables using my script I downloaded from 3rd Ed SQL Pocket Guide. Does my new user "siegfried" have the right to create tables? I guess I could try but I don't want to create tables in the system database.
    I noticed I can also use "Oracle SQL Developer" to connect with my new "siegfried" account. It seems that I should have been able to connect with sysdba... strange.
    So now I am connected in the "Oracle SQL Developer" and I see no list of databases.
    Thanks!
    Siegfried
    >Paul,
    Thanks! I tried changing my profile name to siegfried but I'm not seeing the change...
    Anyway, I'm trying your suggestion to use SQL Developer which was already installed in the virtual box appliance and I cannot figure out how to get a connection.
    When I use the defaults of sid=xe, port=1521, hostname=localhost and specify
    username=sysdba
    password=
    I get status: failure - test failed: listener refursed connection with the following error: ORA 12505, TNS: listener does not current know of sid given.
    So I try sid=orcl and that works better: status: failure - test failed: ORA-01017: invalid username/passowrd; login denied
    OK, sqlplus let me in with out a password, why does not this work?
    So I try checking the box for "OS Authentication" and I get the same error!
    Hoek: I tried searching the documentation and found "3 Exploring Oracle Database with SQL Developer" at http://docs.oracle.com/cd/E11882_01/appdev.112/e10766/toc.htm but following those directions did not help. Can you be more specific? The directions were for a tutorial and I need to know what the passwords are for the database set up with [http://www.oracle.com/technetwork/database/enterprise-edition/databaseappdev-vm-161299.html|http://www.oracle.com/technetwork/database/enterprise-edition/databaseappdev-vm-161299.html] . I also found [http://docs.oracle.com/cd/E11882_01/appdev.112/e10766/tdddg_connecting.htm#CEGHFHIG|http://docs.oracle.com/cd/E11882_01/appdev.112/e10766/tdddg_connecting.htm#CEGHFHIG] but that did not help either.
    Everyone:
    Do I need to create a user using SQL*Plus first so I can login with "Oracle SQL Developer" so I create my database called? What would be the "create user" command I would execute?
    OK, so I run sqlplus and issue these commands
    create user siegfried identified by abc ;
    grant connect to siegfried ;
    connect siegfried/abc;
    above does NOT use SQL*Net to connect to the instance
    >
    Now, how do I create a database? In Microsoft SQL Server one has to create a database first and if you just start creating tables without creating a database first, the tables will be created in the system database and this is usually undesirable.
    Sometimes a database is known in the java connection string as the catalog. Is there any such analog in oracle SQL plus?
    So now what do I do? I want to create a bunch of tables using my script I downloaded from 3rd Ed SQL Pocket Guide. Does my new user "siegfried" have the right to create tables? I guess I could try but I don't want to create tables in the system database.
    I noticed I can also use "Oracle SQL Developer" to connect with my new "siegfried" account. It seems that I should have been able to connect with sysdba... strange.
    So now I am connected in the "Oracle SQL Developer" and I see no list of databases.SQL Developer can only connect to the instance via SQL*Net
    >
    Thanks!
    Siegfrieda database in SQL Server is same as schema/user in Oracle

  • Database creation process hangs

    I am manually creating a database on Windows 2k3 server using Oracle 11 r2. Using the Database Configuration Assistant to create a database, the process hangs for hours.
    I figured out and triedthe following:
    1. I have attempted using the GUI tool more than once to create the database and each time it hangs.
    2. Using the scripts have been created using the with configuration tool, I manually attemped to create database. -- I have attempted more than once.
    3. The database creation process hangs while running the EXECRM.SQL file that is called by the CATPCNFG.SQL which is called by CATPROC.SQL which is called by CreateDBCatalog.sql
    3. The EXECRM.SQL file hangs on the following statement EXECUTE DMBS_RMIN.INSTALL;
    I'm not sure why the PL/SQL packag is hanging at this point. Any help is appreciated.
    Thanks,
    Sheila

    I was able to create the databases prior to installing Enterprise Manager Grid control. I deleted the databases to re-create so they would be registered with Enterprise manager. Once I install Enterprise manager the creation process hung. I have also installed Essbase and Oracle/Hyperion Enterprise Performance Management Suite on the server. I'm trying to do some research on these BI tools.
    I'm tempted to uninstall Essbase and the Hyperion producst along with Enteprise Manager and start from scratch to test to see if I can create a database without these other products.

  • WAY TO IMPORT DATA FROM 11G DATABASE TO 10G DATABASE?

    Hi All,
    I have a requirement to take an full export dump of an Oracle database and import it fully to a 10g database.
    I have never touched 11G until now and would like to know whether the 11G expdp will be downward
    compatible so that I can use the dump file(created by 11G expdp) to import it to 10G(using 10d impdp).
    Or if it is not possible, can you please brief me the steps I should follow here?
    Note: I have only 11G installed in this server.
    Regards
    Satish

    Oracle's Data Pump (expdp) utility has a VERSION parameter. Here is an excerpt from the documentation:
    VERSION
    Default: COMPATIBLE
    Purpose
    Specifies the version of database objects to be exported. This can be used to create a dump file set that is compatible with a previous release of Oracle Database. Note that this does not mean that Data Pump Export can be used with versions of Oracle Database prior to 10.1. Data Pump Export only works with Oracle Database 10g release 1 (10.1) or later. The VERSION parameter simply allows you to identify the version of the objects being exported.
    Syntax and Description
    VERSION={COMPATIBLE | LATEST | version_string}
    The legal values for the VERSION parameter are as follows:
        * COMPATIBLE - This is the default value. The version of the metadata corresponds to the database compatibility level. Database compatibility must be set to 9.2 or higher.
        * LATEST - The version of the metadata corresponds to the database version.
        * version_string - A specific database version (for example, 11.1.0). In Oracle Database 11g, this value cannot be lower than 9.2.
    Database objects or attributes that are incompatible with the specified version will not be exported. For example, tables containing new datatypes that are not supported in the specified version will not be exported.
    Here is a link to the documentation.
    Hope this helps!

  • Standby database Archive log destination confusion

    Hi All,
    I need your help here..
    This is the first time that this situation is arising. We had sync issues in the oracle 10g standby database prior to this archive log destination confusion.So we rebuilt the standby to overcome this sync issue. But ever since then the archive logs in the standby database are moving to two different locations.
    The spfile entries are provided below:
    *.log_archive_dest_1='LOCATION=/m99/oradata/MARDB/archive/'
    *.standby_archive_dest='/m99/oradata/MARDB/standby'
    Prior to rebuilding the standby databases the archive logs were moving to /m99/oradata/MARDB/archive/ location which is the correct location. But now the archive logs are moving to both /m99/oradata/MARDB/archive/ and /m99/oradata/MARDB/standby location, with the majority of them moving to /m99/oradata/MARDB/standby location. This is pretty unusual.
    The archives in the production are moving to /m99/oradata/MARDB/archive/ location itself.
    Could you kindly help me overcome this issue.
    Regards,
    Dan

    Hi Anurag,
    Thank you for update.
    Prior to rebuilding the standby database the standby_archive_dest was set as it is. No modifications were made to the archive destination locations.
    The primary and standby databases are on different servers and dataguard is used to transfer the files.
    I wanted to highlight one more point here, The archive locations are similar to the ones i mentioned for the other stndby databases. But the archive logs are moving only to /archive location and not to the /standby location.

  • Ora-1666 on standby database

    Hi All,
    I have configured data guard on windows server 2003 platform with primary on 1 server and standby on another server. Oracle is of version 9i with exact release 9.2.0.6.0. I have enabled archived log on primary, modified init file with log_destinations, created password file, created control file and copied all these dbf files, redo log files, archived log files, control file, password files to standby server while the primary db is down. After copying all the required files on standby i tried to mount the standby but getting an error as ORA-01666: controlfile is for a standby database on the standby.
    Where as in the primary db alert log file an error is logged as Errors in file d:\oracle\admin\primary\bdump\primary_arc0_4240.trc: ORA-12500: TNS:listener failed to start a dedicated server process but i can do tnsping successfully from primary to standby and vice-versa and on standby ORA-1666 signalled during: ALTER DATABASE MOUNT...
    The things I suspect are Standby redo logs, Instance_name. I haven't created any standby logs on primary and i doubt whether it's mandatory to create on primary and standby db's or only in primary db pls let me know, i am confused of the standby logs because of these lines in document +(CREATE STANDBY REDO LOG FILES, IF NECESSARY (PRI+SEC)
    In this customer’s case, the customer chose not to use standby redo logs (SRLs), which are not required in Maximum Performance mode. However, if you decide to use SRLs, you would create them on both sites. You cannot create them on the primary database prior to the backup used to create the standby database because the SRLs on the standby must be empty of primary database redo data.)+.
    Instance_name parameter: we don't have this parameter in oracle10g where db_name and db_unique_name plays the role. Here in oracle9i is this Instance_name needs to be same on both primary and standby db's (i.e. primary on both db's or primary for primary and standby for standby?)
    Earlier i have configured this dataguard setup in solaris platform of oracle version 10g where i have created standby logs on primary db alone and logs are applying on standby and it's working fine.
    * please review the below parameters and let me know if i am missing something*
    tnsping from primary
    C:\Documents and Settings\Administrator>tnsping standby
    TNS Ping Utility for 32-bit Windows: Version 9.2.0.6.0 - Production on 25-JAN-20
    12 20:15:48
    Copyright (c) 1997 Oracle Corporation. All rights reserved.
    Used parameter files:
    D:\oracle\ora92\network\admin\sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)
    (HOST = standbyIP )(PORT = 1521))) (CONNECT_DATA = (SERVICE_NAME = standby)))
    OK (110 msec)
    tnsping from standby
    C:\Documents and Settings\Administrator>tnsping primary
    TNS Ping Utility for 32-bit Windows: Version 9.2.0.6.0 - Production on 25-JAN-20
    12 20:17:17
    Copyright (c) 1997 Oracle Corporation. All rights reserved.
    Used parameter files:
    D:\oracle\ora92\network\admin\sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)
    (HOST = primaryIP )(PORT = 1521))) (CONNECT_DATA = (SERVICE_NAME = primary)))
    OK (110 msec)
    Primary init file
    *.aq_tm_processes=0
    *.background_dump_dest='D:\oracle\admin\primary\bdump'
    *.compatible='9.2.0.0.0'
    *.control_files='D:\oracle\oradata\primary\control01.ctl','D:\oracle\oradata\primary\control02.ctl','D:\oracle\oradata\primary\control03.ctl'
    *.core_dump_dest='D:\oracle\admin\primary\cdump'
    *.db_block_size=16384
    *.db_cache_size=83886080
    *.db_domain=''
    *.db_file_multiblock_read_count=16
    *.db_files=96
    *.db_name='primary'
    *.dg_broker_start=TRUE
    *.enqueue_resources=2000
    *.fal_client='primary'
    *.fal_server='standby'
    *.fast_start_mttr_target=300
    *.hash_join_enabled=TRUE
    *.instance_name='primary'
    *.java_pool_size=115343360
    *.job_queue_processes=10
    *.large_pool_size=0
    *.log_archive_dest_1='LOCATION=D:\oracle\archive-logs\primary\archivelog'
    *.log_archive_dest_2='SERVICE=standby LGWR ASYNC'
    *.log_archive_dest_state_1='ENABLE'
    *.log_archive_dest_state_2='ENABLE'
    *.log_archive_format='log_%t_%s.arc'
    *.max_enabled_roles=128
    *.nls_date_format='DD-MON-RRRR'
    *.nls_date_language='AMERICAN'
    *.nls_language='AMERICAN'
    *.nls_numeric_characters='.,'
    *.open_cursors=200
    *.optimizer_mode='CHOOSE'
    *.os_authent_prefix='OPS$'
    *.pga_aggregate_target=25165824
    *.processes=150
    *.query_rewrite_enabled='FALSE'
    *.remote_login_passwordfile='EXCLUSIVE'
    *.remote_os_authent=TRUE
    *.shared_pool_size=115343360
    *.sort_area_size=3000000
    *.star_transformation_enabled='FALSE'
    *.timed_statistics=TRUE
    *.undo_management='AUTO'
    *.undo_retention=10800
    *.undo_tablespace='UNDOTBS1'
    *.user_dump_dest='D:\oracle\admin\primary\udump'
    *.utl_file_dir='*'
    * standby init file*
    *.aq_tm_processes=0
    *.background_dump_dest='D:\oracle\admin\standby\bdump'
    *.compatible='9.2.0.0.0'
    *.control_files='D:\oracle\oradata\standby\standby.ctl'
    *.core_dump_dest='D:\oracle\admin\standby\cdump'
    *.db_block_size=16384
    *.db_cache_size=83886080
    *.db_domain=''
    *.db_file_multiblock_read_count=16
    *.db_files=96
    *.db_name='primary'
    *.dg_broker_start=TRUE
    *.enqueue_resources=2000
    *.fal_client='standby'
    *.fal_server='primary'
    *.fast_start_mttr_target=300
    *.hash_join_enabled=TRUE
    *.instance_name='standby'
    *.java_pool_size=115343360
    *.job_queue_processes=10
    *.large_pool_size=0
    *.log_archive_dest_1='LOCATION=D:\oracle\archive-logs\standby\archivelog'
    *.log_archive_dest_2='SERVICE=primary LGWR ASYNC'
    *.log_archive_dest_state_1='ENABLE'
    *.log_archive_dest_state_2='DEFER'
    *.log_archive_format='log_%t_%s.arc'
    *.max_enabled_roles=128
    *.nls_date_format='DD-MON-RRRR'
    *.nls_date_language='AMERICAN'
    *.nls_language='AMERICAN'
    *.nls_numeric_characters='.,'
    *.open_cursors=200
    *.optimizer_mode='CHOOSE'
    *.os_authent_prefix='OPS$'
    *.pga_aggregate_target=25165824
    *.processes=150
    *.query_rewrite_enabled='FALSE'
    *.remote_login_passwordfile='EXCLUSIVE'
    *.remote_os_authent=TRUE
    *.shared_pool_size=115343360
    *.sort_area_size=3000000
    *.star_transformation_enabled='FALSE'
    *.timed_statistics=TRUE
    *.undo_management='AUTO'
    *.undo_retention=10800
    *.undo_tablespace='UNDOTBS1'
    *.user_dump_dest='D:\oracle\admin\standby\udump'
    *.utl_file_dir='*'
    Regards
    Hari

    Primary output
    SQL> select error_code,message from v$dataguard_status;
    ERROR_CODE
    MESSAGE
    0
    ARC0: Archival started
    0
    ARC1: Archival started
    0
    Creating archive destination LOG_ARCHIVE_DEST_2: 'standby'
    ERROR_CODE
    MESSAGE
    12500
    LGWR: Error 12500 creating archivelog file 'standby'
    0
    LGWR: Completed archiving log 3 thread 1 sequence 7
    0
    ARC0: Evaluating archive log 2 thread 1 sequence 6
    ERROR_CODE
    MESSAGE
    0
    ARC0: Beginning to archive log 2 thread 1 sequence 6
    0
    Creating archive destination LOG_ARCHIVE_DEST_1: 'D:\ORACLE\ARCHIVE-LOGS\primary\A
    RCHIVELOG\LOG_1_6.ARC'
    0
    ARC0: Completed archiving log 2 thread 1 sequence 6
    ERROR_CODE
    MESSAGE
    9 rows selected.
    SQL> select thread#,max(sequence#) from v$archived_log group by thread#;
    THREAD# MAX(SEQUENCE#)
    1 6
    standby
    SQL> select thread#,max(sequence#) from v$archived_log group by thread#;
    no rows selected
    SQL> select thread#,max(sequence#) from v$archived_log where applied='YES' group
    by thread#;
    no rows selected
    SQL>
    trace file:
    Dump file d:\oracle\admin\primary\bdump\primary_arc0_4240.trc
    Wed Jan 25 19:45:07 2012
    ORACLE V9.2.0.6.0 - Production vsnsta=0
    vsnsql=12 vsnxtr=3
    Windows 2000 Version 5.2 Service Pack 2, CPU type 586
    Oracle9i Enterprise Edition Release 9.2.0.6.0 - Production
    With the Partitioning, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.6.0 - Production
    Windows 2000 Version 5.2 Service Pack 2, CPU type 586
    Instance name: primary
    Redo thread mounted by this instance: 1
    Oracle process number: 11
    Windows thread id: 4240, image: ORACLE.EXE
    *** 2012-01-25 19:45:07.598
    *** SESSION ID:(11.1) 2012-01-25 19:45:07.364
    Error 12500 connecting to destination LOG_ARCHIVE_DEST_2 standby host 'standby'
    Error 12500 attaching to destination LOG_ARCHIVE_DEST_2 standby host 'standby'
    Heartbeat failed to connect to standby 'standby'. Error is 12500.
    *** 2012-01-25 19:45:07.676
    kcrrfail: dest:2 err:12500 force:0
    ORA-12500: TNS:listener failed to start a dedicated server process
    *** 2012-01-25 19:51:07.987
    Error 12500 connecting to destination LOG_ARCHIVE_DEST_2 standby host 'standby'
    Error 12500 attaching to destination LOG_ARCHIVE_DEST_2 standby host 'standby'
    Heartbeat failed to connect to standby 'standby'. Error is 12500.
    *** 2012-01-25 19:51:08.049
    kcrrfail: dest:2 err:12500 force:0
    ORA-12500: TNS:listener failed to start a dedicated server process
    *** 2012-01-25 19:57:08.261
    Error 12500 connecting to destination LOG_ARCHIVE_DEST_2 standby host 'standby'
    Error 12500 attaching to destination LOG_ARCHIVE_DEST_2 standby host 'standby'
    Heartbeat failed to connect to standby 'standby'. Error is 12500.
    *** 2012-01-25 19:57:08.355
    kcrrfail: dest:2 err:12500 force:0
    ORA-12500: TNS:listener failed to start a dedicated server process
    *** 2012-01-25 19:59:08.563
    Error 12500 connecting to destination LOG_ARCHIVE_DEST_2 standby host 'standby'
    Error 12500 attaching to destination LOG_ARCHIVE_DEST_2 standby host 'standby'
    Heartbeat failed to connect to standby 'standby'. Error is 12500.
    *** 2012-01-25 19:59:08.626
    kcrrfail: dest:2 err:12500 force:0
    ORA-12500: TNS:listener failed to start a dedicated server process
    *** 2012-01-25 20:01:08.820
    Error 12500 connecting to destination LOG_ARCHIVE_DEST_2 standby host 'standby'
    Error 12500 attaching to destination LOG_ARCHIVE_DEST_2 standby host 'standby'
    Heartbeat failed to connect to standby 'standby'. Error is 12500.
    *** 2012-01-25 20:01:08.883
    kcrrfail: dest:2 err:12500 force:0
    ORA-12500: TNS:listener failed to start a dedicated server process
    *** 2012-01-25 20:06:09.190
    Error 12500 connecting to destination LOG_ARCHIVE_DEST_2 standby host 'standby'
    Error 12500 attaching to destination LOG_ARCHIVE_DEST_2 standby host 'standby'
    Heartbeat failed to connect to standby 'standby'. Error is 12500.
    *** 2012-01-25 20:06:09.253
    kcrrfail: dest:2 err:12500 force:0
    ORA-12500: TNS:listener failed to start a dedicated server process
    *** 2012-01-25 20:12:09.698
    Error 12500 connecting to destination LOG_ARCHIVE_DEST_2 standby host 'standby'
    Error 12500 attaching to destination LOG_ARCHIVE_DEST_2 standby host 'standby'
    Heartbeat failed to connect to standby 'standby'. Error is 12500.
    *** 2012-01-25 20:12:09.776
    kcrrfail: dest:2 err:12500 force:0
    ORA-12500: TNS:listener failed to start a dedicated server process
    *** 2012-01-25 20:18:10.069
    Error 12500 connecting to destination LOG_ARCHIVE_DEST_2 standby host 'standby'
    Error 12500 attaching to destination LOG_ARCHIVE_DEST_2 standby host 'standby'
    Heartbeat failed to connect to standby 'standby'. Error is 12500.
    *** 2012-01-25 20:18:10.132
    kcrrfail: dest:2 err:12500 force:0
    ORA-12500: TNS:listener failed to start a dedicated server process
    *** 2012-01-25 21:02:11.811
    Error 12500 connecting to destination LOG_ARCHIVE_DEST_2 standby host 'standby'
    Error 12500 attaching to destination LOG_ARCHIVE_DEST_2 standby host 'standby'
    Heartbeat failed to connect to standby 'standby'. Error is 12500.
    *** 2012-01-25 21:02:11.889
    kcrrfail: dest:2 err:12500 force:0
    ORA-12500: TNS:listener failed to start a dedicated server process

  • 10g export to 9i database

    Hi all
    Can i import 10g (10.2.0.3) export to 9i database.
    i execute import command in 9i database.
    Please help as soon as posible.
    regrds
    upul

    There are compatibility issues you should consider prior to attempt this export/import operation. If you took the export with the 10g export tool it won't be possible to be imported to any database prior to 10gR2, you are required to export from the 10gR2 DB with 9i export and import this data to the 9i Database with the 9i import tool.
    For further references I suggest you to take a look at the Metalink Note:
    Compatibility Matrix for Export & Import Between Different Oracle Versions
         Doc ID:      Note:132904.1
    ~ Madrid
    http://hrivera99.blogspot.com/

  • Restoring only the tablespace from the database

    How do we restore only a 'tablespace' from a Terabyte database without restoring the entire database.
    ie... if a particular tablespace has been dropped from the database and we have the backup available for the database.
    So, how do we go about it for restoring only that tablespace.
    Version:10.2.0.4
    OS : solaris 10
    Edited by: user13364377 on Sep 29, 2010 3:49 AM
    Edited by: user13364377 on Sep 29, 2010 3:51 AM

    If you have a RMAN backup before dropping the tablespace then we can restore the tablespace by below method
    It is a tablespace point in time recovery ,here we need to create a auxillary DB.
    Recover a table/tablespace from Rman backup on same server:
    ===============================================
    Here we have to create the auxillary database.
    1.u should have valid backup of the database before dropping the tablespace.
    2.create the password file of target database.
    orapwd file=$ORACLE_HOME\dbs\PWDORCL2.ORA password=oracle
    3.Take backup of the control file to trace for creating the new control file for new
    auxillary database/
    SQL> alter database backup controlfile to trace;
    sample control file:
    STARTUP NOMOUNT
    CREATE CONTROLFILE SET DATABASE "aux1" RESETLOGS FORCE LOGGING ARCHIVELOG
    MAXLOGFILES 16
    MAXLOGMEMBERS 3
    MAXDATAFILES 100
    MAXINSTANCES 8
    MAXLOGHISTORY 454
    LOGFILE
    GROUP 1 'D:\ORACLE\PRODUCT\10.1.0\ORADATA\aux1\REDO01.LOG' SIZE 10M,//make sure here to change the location of of redo
    GROUP 2 'D:\ORACLE\PRODUCT\10.1.0\ORADATA\aux1\REDO02.LOG' SIZE 10M, logs to new location or change the location name before
    GROUP 3 'D:\ORACLE\PRODUCT\10.1.0\ORADATA\aux1\REDO03.LOG' SIZE 10M //starating the database at the end.
    -- STANDBY LOGFILE
    DATAFILE
    'D:\ORACLE\PRODUCT\10.1.0\ORADATA\prafulla\SYSTEM01.DBF',
    'D:\ORACLE\PRODUCT\10.1.0\ORADATA\prafulla\UNDOTBS01.DBF',
    'D:\ORACLE\PRODUCT\10.1.0\ORADATA\prafulla\SYSAUX01.DBF',
    'D:\ORACLE\PRODUCT\10.1.0\ORADATA\prafulla\USERS01.DBF',
    'D:\ORACLE\PRODUCT\10.1.0\ORADATA\prafulla\USERS02.DBF'
    CHARACTER SET WE8MSWIN1252
    4.create the password file of auxillary database.
    orapwd file=$ORACLE_HOME\dbs\PWDORCL2.ORA password=oracle
    5.create the control file
    sqlplus "/as sysdba"
    SQL>@create.sql
    6 catalog all the backuppiece to the newly created database;
    catalog backuppiece 'D:\oracle\product\10.1.0\LOG_707656915_50P1';
    7.We have to restore system,sysaux,undo and the tablespace which was dropped
    run
    set newname for datafile 1 to 'D:\oracle\product\10.1.0\oradata\aux1\system01.dbf';
    set newname for datafile 2 to 'D:\oracle\product\10.1.0\oradata\aux1\undotbs01.dbf';
    set newname for datafile 5 to 'D:\oracle\product\10.1.0\oradata\aux1\users02.dbf';
    set newname for datafile 3 to 'D:\oracle\product\10.1.0\oradata\aux1\sysaux01.dbf';
    set newname for datafile 4 to 'D:\oracle\product\10.1.0\oradata\aux1\users01.dbf';
    restore tablespace SYSTEM;
    restore tablespace UNDOTBS1;
    restore tablespace users;
    restore tablespace sysaux;
    switch datafile all;
    8.Take the other tablespace offline
    sqlplus>alter tablespace tablespace_name offline drop;
    9.recover the database prior to the time when tha table/tablespace was dropped.
    RMAN> run{
    2> set until time "to_date('07-01-2010 14:00:00','dd-mm-yyyy hh24:mi:ss')";
    3> recover database;
    4> }
    10.open the database in resetlog mode.
    take a transpotable tablespace backup of that tablespace and import it on the database where you dropped it.

  • Flashback database and Physical Standby databases

    Hi,
    We are thinking about the following scenario in our Production Standby databases. We are trying to do this to avoid number database cloning situations.
    When we require live data to test data fixes :-
    1. Switchover/failover the standby database.
    2. opened this database in read write mode.
    3. Apply the fix and test.
    4. Flashing back the database prior to the SCN which did the switchover/failover.
    5. Activate the standby again using a new standby controlfile.
    Would you experts please comment on this idea?
    Is this is possible? If so, would you please guide through the steps/some documentation.
    Thanks in advance

    This will not work according to me,
    1)U can give previous SCN in rollback and gets the data till that SCN, but it will not become standby unless u make it a standby again manually by creating standy controlfile etc(may be this will be succesfull and limited up to check the data fixes).
    2)Iif your first step succesfull then what about the fixes u test by applying patches using opatch and patchsets that cannot be rollbacked using flashback because they are copying new version files and adding some more configuration files to oracle home?.
    There are lots of pitfalls and loop holes needed to be checked
    Regards
    Kaunain

  • Check for duplicate record in SQL database before doing INSERT

    Hey guys,
           This is part powershell app doing a SQL insert. BUt my question really relates to the SQL insert. I need to do a check of the database PRIOR to doing the insert to check for duplicate records and if it exists then that record needs
    to be overwritten. I'm not sure how to accomplish this task. My back end is a SQL 2000 Server. I'm piping the data into my insert statement from a powershell FileSystemWatcher app. In my scenario here if the file dumped into a directory starts with I it gets
    written to a SQL database otherwise it gets written to an Access Table. I know silly, but thats the environment im in. haha.
    Any help is appreciated.
    Thanks in Advance
    Rich T.
    #### DEFINE WATCH FOLDERS AND DEFAULT FILE EXTENSION TO WATCH FOR ####
                $cofa_folder = '\\cpsfs001\Data_pvs\TestCofA'
                $bulk_folder = '\\cpsfs001\PVS\Subsidiary\Nolwood\McWood\POD'
                $filter = '*.tif'
                $cofa = New-Object IO.FileSystemWatcher $cofa_folder, $filter -Property @{ IncludeSubdirectories = $false; EnableRaisingEvents= $true; NotifyFilter = [IO.NotifyFilters]'FileName, LastWrite' }
                $bulk = New-Object IO.FileSystemWatcher $bulk_folder, $filter -Property @{ IncludeSubdirectories = $false; EnableRaisingEvents= $true; NotifyFilter = [IO.NotifyFilters]'FileName, LastWrite' }
    #### CERTIFICATE OF ANALYSIS AND PACKAGE SHIPPER PROCESSING ####
                Register-ObjectEvent $cofa Created -SourceIdentifier COFA/PACKAGE -Action {
           $name = $Event.SourceEventArgs.Name
           $changeType = $Event.SourceEventArgs.ChangeType
           $timeStamp = $Event.TimeGenerated
    #### CERTIFICATE OF ANALYSIS PROCESS BEGINS ####
                $test=$name.StartsWith("I")
         if ($test -eq $true) {
                $pos = $name.IndexOf(".")
           $left=$name.substring(0,$pos)
           $pos = $left.IndexOf("L")
           $tempItem=$left.substring(0,$pos)
           $lot = $left.Substring($pos + 1)
           $item=$tempItem.Substring(1)
                Write-Host "in_item_key $item in_lot_key $lot imgfilename $name in_cofa_crtdt $timestamp"  -fore green
                Out-File -FilePath c:\OutputLogs\CofA.csv -Append -InputObject "in_item_key $item in_lot_key $lot imgfilename $name in_cofa_crtdt $timestamp"
                start-sleep -s 5
                $conn = New-Object System.Data.SqlClient.SqlConnection("Data Source=PVSNTDB33; Initial Catalog=adagecopy_daily; Integrated Security=TRUE")
                $conn.Open()
                $insert_stmt = "INSERT INTO in_cofa_pvs (in_item_key, in_lot_key, imgfileName, in_cofa_crtdt) VALUES ('$item','$lot','$name','$timestamp')"
                $cmd = $conn.CreateCommand()
                $cmd.CommandText = $insert_stmt
                $cmd.ExecuteNonQuery()
                $conn.Close()
    #### PACKAGE SHIPPER PROCESS BEGINS ####
              elseif ($test -eq $false) {
                $pos = $name.IndexOf(".")
           $left=$name.substring(0,$pos)
           $pos = $left.IndexOf("O")
           $tempItem=$left.substring(0,$pos)
           $order = $left.Substring($pos + 1)
           $shipid=$tempItem.Substring(1)
                Write-Host "so_hdr_key $order so_ship_key $shipid imgfilename $name in_cofa_crtdt $timestamp"  -fore green
                Out-File -FilePath c:\OutputLogs\PackageShipper.csv -Append -InputObject "so_hdr_key $order so_ship_key $shipid imgfilename $name in_cofa_crtdt $timestamp"
    Rich Thompson

    Hi
    Since SQL Server 2000 has been out of support, I recommend you to upgrade the SQL Server 2000 to a higher version, such as SQL Server 2005 or SQL Server 2008.
    According to your description, you can try the following methods to check duplicate record in SQL Server.
    1. You can use
    RAISERROR to check the duplicate record, if exists then RAISERROR unless insert accordingly, code block is given below:
    IF EXISTS (SELECT 1 FROM TableName AS t
    WHERE t.Column1 = @ Column1
    AND t.Column2 = @ Column2)
    BEGIN
    RAISERROR(‘Duplicate records’,18,1)
    END
    ELSE
    BEGIN
    INSERT INTO TableName (Column1, Column2, Column3)
    SELECT @ Column1, @ Column2, @ Column3
    END
    2. Also you can create UNIQUE INDEX or UNIQUE CONSTRAINT on the column of a table, when you try to INSERT a value that conflicts with the INDEX/CONSTRAINT, an exception will be thrown. 
    Add the unique index:
    CREATE UNIQUE INDEX Unique_Index_name ON TableName(ColumnName)
    Add the unique constraint:
    ALTER TABLE TableName
    ADD CONSTRAINT Unique_Contraint_Name
    UNIQUE (ColumnName)
    Thanks
    Lydia Zhang

Maybe you are looking for

  • Unable to delete confirmation (GR)

    Hi, I am having a very strange problem while deleting one of the confirmation. The error reads "Interface data contains error". Could you please help what could be the problem ? Thanks and regards, Jaya

  • TFS Build Error - Exception Message: The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters

    I am trying to set-up CI of Orchard CMS and deploy it on Azure using TF service. I am stuck at following error for path being longer than 260 characters. However, when counted the total characters in path are 235. Please see the below error : Other E

  • Faster Page Loading

    After getting my web page published I had some friends who do web design look at it and they said it loaded slow and the pics were a bit too large, which they thought was slowing it down. After talking to some helpful souls here on the Apple Discussi

  • Automatic Payment Bock in F-47

    Hi Experts, I assigned Payment Terms (which have default Payment Block and Payment Method Conditions) in Vendor Master. While creating Invoice through MIRO and FB60 all the Accounting doucuments are gettig blocked for payment But this similar blockin

  • Action  DisplayArgumentsAction retrieve nothing

    Hi, guys I had a problem with weblogic wldf instrumentation. I configured 2 instrumentation monitors for my app. 1st: a monitor 'servlet_around_service' with an action 'traceElapsedTimeAction'. It works fine. I can get events data through wls console