Dataguard the achivelog not transfort between primary & standby db

Dear all Dataguard gurus
i tried to install oracle 10g dataguard on 2 machines with Centos 4.6 for development
after finish the installation, i 've got some "STRANGE" ..when i do a query at dataguard1
dataguard1 is primary database
dataguard2 is standby database
sys@dataguard1> select sequence#, first_time, next_time from v$archived_log;
SEQUENCE# FIRST_TIM NEXT_TIME
16 24-JUL-09 24-JUL-09
17 24-JUL-09 24-JUL-09
18 24-JUL-09 24-JUL-09
19 24-JUL-09 24-JUL-09
20 24-JUL-09 24-JUL-09
21 24-JUL-09 24-JUL-09
22 24-JUL-09 11-AUG-09
23 11-AUG-09 12-AUG-09
24 12-AUG-09 12-AUG-09
25 12-AUG-09 12-AUG-09
26 12-AUG-09 12-AUG-09
sys@dataguard1>select sequence#,applied
2 from v$archived_log
3 order by sequence#;
SEQUENCE# APP
16 NO
17 NO
18 NO
19 NO
20 NO
21 NO
22 NO
23 NO
24 NO
but if i do the same quey on standby database
sys@dataguard2> select sequence#, first_time, next_time from v$archived_log;
nothing archive...and not applied
what could be the problem????
thanks for u'r attention & help
Edited by: kang dadang on Aug 12, 2009 7:22 PM

thanks for response jerald
everything is same, all pass for sys on primary & standby are the same, password file on both machine are same
here my parameter file[not all parameter included]
[primary db]..on dataguard1 machines [dbname : dgtest]
*.db_file_name_convert='/u01/app/oracle/oradata/dgtest','/u01/app/oracle/oradata/dgtest'
*.db_name='dgtest'
*.DB_UNIQUE_NAME='dgtest'
*.fal_client='dgtest2'
*.fal_server='dgtest'
*.job_queue_processes=10
*.log_archive_config='DG_CONFIG=(dgtest,dgtest2)'
*.log_archive_dest_1='LOCATION=/u02/oradata/archive/dgtest/
valid_for=(all_logfiles,all_roles)
db_unique_name=dgtest'
*.log_archive_dest_2='service=dgtest2 lgwr async
valid_for=(online_logfiles,primary_roles)
db_unique_name=dgtest2'
*.log_archive_dest_state_1='enable'
*.log_archive_dest_state_2='enable'
*.log_archive_format='%s_%t_%r.arc'
*.log_file_name_convert='/u01/app/oracle/oradata/dgtest','/u01/app/oracle/oradata/dgtest',
'/u01/app/oracle/flash_recovery_area/DGTEST/onlinelog/','/u01/app/oracle/flash_recovery_area/DGTEST/onlinelog/'
*.service_names='dgtest'
*.standby_file_management='auto'
[standby] on dataguard1 machines..[dbname : dgtest2]
*.db_file_name_convert='/u01/app/oracle/oradata/dgtest','/u01/app/oracle/oradata/dgtest'
*.db_name='dgtest'
*.DB_UNIQUE_NAME='dgtest2'
*.fal_client='dgtest2'
*.fal_server='dgtest'
*.log_archive_config='DG_CONFIG=(dgtest,dgtest2)'
*.log_archive_dest_1='LOCATION=/u02/oradata/archive/dgtest/
valid_for=(all_logfiles,all_roles)
db_unique_name=dgtest2'
*.log_archive_dest_2='service=dgtest lgwr async
valid_for=(online_logfiles,primary_roles)
db_unique_name=dgtest'
*.log_archive_dest_state_1='enable'
*.log_archive_dest_state_2='enable'
*.log_archive_format='%s_%t_%r.arc'
*.log_file_name_convert='/u01/app/oracle/oradata/dgtest','/u01/app/oracle/oradata/dgtest',
'/u01/app/oracle/flash_recovery_area/DGTEST/onlinelog/','/u01/app/oracle/flash_recovery_area/DGTEST/onlinelog/'
*.remote_login_passwordfile='EXCLUSIVE'
*.service_names='dgtest'
*.standby_file_management='auto'
thanks for all...jerald
Edited by: kang dadang on Aug 12, 2009 11:52 PM

Similar Messages

  • Dataguard.... [ the achivelog not transfort between primary & standby db] m

    Dear all Dataguard gurus [sorry if i wrong to place this message]
    i tried to install oracle 10g dataguard on 2 machines with Centos 4.6 for development
    after finish the installation, i 've got some "STRANGE" ..when i do a query at dataguard1
    dataguard1 is primary database machines [hostname]
    dataguard2 is standby database machines [hostname]
    sys@dataguard1> select sequence#, first_time, next_time from v$archived_log;
    SEQUENCE# FIRST_TIM NEXT_TIME
    --------- 16 24-JUL-09 24-JUL-09
    17 24-JUL-09 24-JUL-09
    18 24-JUL-09 24-JUL-09
    19 24-JUL-09 24-JUL-09
    20 24-JUL-09 24-JUL-09
    21 24-JUL-09 24-JUL-09
    22 24-JUL-09 11-AUG-09
    23 11-AUG-09 12-AUG-09
    24 12-AUG-09 12-AUG-09
    25 12-AUG-09 12-AUG-09
    26 12-AUG-09 12-AUG-09
    sys@dataguard1>select sequence#,applied
    2 from v$archived_log
    3 order by sequence#;
    SEQUENCE# APP
    16 NO
    17 NO
    18 NO
    19 NO
    20 NO
    21 NO
    22 NO
    23 NO
    24 NO
    but if i do the same quey on standby database
    sys@dataguard2> select sequence#, first_time, next_time from v$archived_log;
    nothing archive...and not applied..
    here my parameter file not all parameter included
    primary db..on dataguard1 machines dbname : dgtest
    *.db_file_name_convert='/u01/app/oracle/oradata/dgtest','/u01/app/oracle/oradata/dgtest'
    *.db_name='dgtest'
    *.DB_UNIQUE_NAME='dgtest'
    *.fal_client='dgtest2'
    *.fal_server='dgtest'
    *.job_queue_processes=10
    *.log_archive_config='DG_CONFIG=(dgtest,dgtest2)'
    *.log_archive_dest_1='LOCATION=/u02/oradata/archive/dgtest/
    valid_for=(all_logfiles,all_roles)
    db_unique_name=dgtest'
    *.log_archive_dest_2='service=dgtest2 lgwr async
    valid_for=(online_logfiles,primary_roles)
    db_unique_name=dgtest2'
    *.log_archive_dest_state_1='enable'
    *.log_archive_dest_state_2='enable'
    *.log_archive_format='%s_%t_%r.arc'
    *.log_file_name_convert='/u01/app/oracle/oradata/dgtest','/u01/app/oracle/oradata/dgtest',
    '/u01/app/oracle/flash_recovery_area/DGTEST/onlinelog/','/u01/app/oracle/flash_recovery_area/DGTEST/onlinelog/'
    *.service_names='dgtest'
    *.standby_file_management='auto'
    standby on dataguard1 machines..dbname : dgtest2
    *.db_file_name_convert='/u01/app/oracle/oradata/dgtest','/u01/app/oracle/oradata/dgtest'
    *.db_name='dgtest'
    *.DB_UNIQUE_NAME='dgtest2'
    *.fal_client='dgtest2'
    *.fal_server='dgtest'
    *.log_archive_config='DG_CONFIG=(dgtest,dgtest2)'
    *.log_archive_dest_1='LOCATION=/u02/oradata/archive/dgtest/
    valid_for=(all_logfiles,all_roles)
    db_unique_name=dgtest2'
    *.log_archive_dest_2='service=dgtest lgwr async
    valid_for=(online_logfiles,primary_roles)
    db_unique_name=dgtest'
    *.log_archive_dest_state_1='enable'
    *.log_archive_dest_state_2='enable'
    *.log_archive_format='%s_%t_%r.arc'
    *.log_file_name_convert='/u01/app/oracle/oradata/dgtest','/u01/app/oracle/oradata/dgtest',
    '/u01/app/oracle/flash_recovery_area/DGTEST/onlinelog/','/u01/app/oracle/flash_recovery_area/DGTEST/onlinelog/'
    *.remote_login_passwordfile='EXCLUSIVE'
    *.service_names='dgtest'
    *.standby_file_management='auto'
    what could be the problem????
    thanks for u'r attention & help
    maybe hunterX could help the problem ;)
    Edited by: kang dadang on Aug 13, 2009 12:09 AM
    Edited by: kang dadang on Aug 13, 2009 12:10 AM

    thanks for reply amit..
    when i do that query
    select * from V$ARCHIVE_DEST where dest_id=2
    Status = ERROR
    ERROR = ORA-01031: insufficient privileges
    ORA-01031: insufficient privileges ????
    what could it be the problem??
    nb : the passwdfile between db iis same
    but i configure direct I/O could it be the problem?
    thanks amit
    Edited by: kang dadang on Aug 17, 2009 10:08 PM
    Edited by: kang dadang on Aug 17, 2009 10:11 PM
    Edited by: kang dadang on Aug 17, 2009 10:16 PM
    Edited by: kang dadang on Aug 17, 2009 10:25 PM

  • "Documents in the Cloud" NOT syncing between devices.

    I am terribly confused about DOCUMENTS IN THE CLOUD.
    My whole understanding was that your documents would SYNC between your devices, iMac/iPhone/iPad.
    I have PAGES installed on all my devices. But nothing is syncing. If I make changes to one of the documents it remains on that particular device and does not effect my other devices.
    And YES I have iCloud enabled on all my devices.
    I THOUGHT that if I edited a document on my iMac it was supposed to send the edit to the cloud where it would then be sent to my other devices, iphone and ipad?
    Am I missing something? Did I misunderstand the keynote?

    For the avoidance of doubt in addition to settings> iCloud> documents & data being enabled, have you checked that settings> keynote> iCloud is also set to on.

  • When using DataGuard, the logical standby DB is already "OPEN"?

    When I was setting up the physical standby DB several years ago no DataGuard got involved), I had the impression that the standby DB is in MOUNT status.
    But since when using DataGuard to set up the logical standby DB, the logical standby DB can be used as it is already OPENed.
    Is it actually in OPEN status? If so, can the primary and logical standby have the same SID without any trouble?
    Please help advise. Thanks a lot!

    Hello Christy,
    yes it is ok that both database are in status OPEN, that is also the main reason for using logical standby databases (you can do changes and queries on standby too).
    I hope you don't use a logical standby database in a SAP environment, because of this is NOT supported. Check sapnote #105047 - Point  "14. Data Guard". A logical standby database has limitations.
    If you just want to use the physical standby database for queries you can open it in read only or you can use flashback technology for read/write. With Oracle 11g you have these features included in data guard itself (Active Data Guard / Snapshot StandBy) to perform such steps automatically.
    Regards
    Stefan

  • Switchover between primary RAC and standby single instance

    Hello All,
    I am using Oracle 11gR2.
    I am trying to do a switch over between primary database (RAC 2 nodes) and physical standby (single instance)
    If my Primary is single instance i was following the below steps:
    On the standby
    ALTER DATABASE RECOVER MANAGED STANDBY DATABASE USING CURRENT LOGFILE DISCONNECT;
    On the primary database:
    alter database commit to switchover to standby with session shutdown;
    shutdown immediate;
    startup nomount;
    alter database mount standby database;
    On the standby again:
    alter database commit to switchover to primary WITH SESSION SHUTDOWN;
    On the new standby:
    ALTER DATABASE RECOVER MANAGED STANDBY DATABASE USING CURRENT LOGFILE DISCONNECT FROM SESSION;now, and since my primary is RAC when i am trying switch over I am getting the below error:
    SQL> alter database commit to switchover to standby with session shutdown;
    alter database commit to switchover to standby with session shutdown
    ERROR at line 1:
    ORA-01105: mount is incompatible with mounts by other instancesPlus that when I want to apply the remaining steps (below step), should I do it on each instance alone? or is there anyway to do it using the srvctl command:
    alter database mount standby database;Regards,

    Hi,
    Since You are using 2 node RAc as primary, so for switchover operation you need to shutdown
    one database instance( Suppose instance 2).
    Suppose your node1:
    hostname is dcpdb1
    and node 2:
    hostname is dcpdb2
    and standby hostname is drpdb1
    So follow this steps for switchover .
    How to Switchover from Primary to Standby Database?
    Process:
    On the primary server, check the latest archived redo log and force a log switch.
    *########### Login dcpdb1 as Oracle user #########*
    SQL> SELECT sequence#, first_time, next_time
    FROM v$archived_log
    ORDER BY next_time;
    SQL> ALTER SYSTEM SWITCH LOGFILE;
    Check the new archived redo log has arrived at the standby server and been applied.
    *########### Login drpdb1 as Oracle user #########*
    SQL> SELECT sequence#, first_time, next_time, applied
    FROM v$archived_log
    ORDER BY next_time ;
    *########### Login dcpdb2 as Oracle user #########*
    SQL> SELECT sequence#, first_time, next_time
    FROM v$archived_log
    ORDER BY next_time ;
    SQL> ALTER SYSTEM SWITCH LOGFILE;
    Check the new archived redo log has arrived at the standby server and been applied.
    *########### Login drpdb1 as Oracle user #########*
    SQL> SELECT sequence#, first_time, next_time, applied
    FROM v$archived_log
    ORDER BY next_time ;
    *########### Login dcpdb1 as Oracle user #########*
    SQL> SELECT SWITCHOVER_STATUS FROM V$DATABASE;
    SWITCHOVER_STATUS
    TO STANDBY
    *########### Login dcpdb2 as Oracle user #########*
    SQL> SELECT SWITCHOVER_STATUS FROM V$DATABASE;
    SWITCHOVER_STATUS
    TO STANDBY
    *########### Login drpdb1 as Oracle user #########*
    SQL> SELECT SWITCHOVER_STATUS FROM V$DATABASE;
    SWITCHOVER_STATUS
    NOT ALLOWED
    *########### Login dcpdb2 as Oracle user #########*
    SQL> shutdown immediate
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    SQL>
    *########### Login dcpdb1 as Oracle user #########*
    SQL> ALTER DATABASE COMMIT TO SWITCHOVER TO PHYSICAL STANDBY WITH SESSION SHUTDOWN;
    Database altered.
    SQL>
    SQL> shutdown immediate
    ORA-01507: database not mounted
    ORACLE instance shut down.
    SQL>
    SQL> startup mount
    ORACLE instance started.
    Total System Global Area 1.5400E+10 bytes
    Fixed Size 2184872 bytes
    Variable Size 7751076184 bytes
    Database Buffers 7616856064 bytes
    Redo Buffers 29409280 bytes
    Database mounted.
    SQL> SELECT SWITCHOVER_STATUS FROM V$DATABASE;
    SWITCHOVER_STATUS
    TO PRIMARY
    SQL>
    *########### Login drpdb1 as Oracle user #########*
    SQL> SELECT SWITCHOVER_STATUS FROM V$DATABASE;
    SWITCHOVER_STATUS
    SESSIONS ACTIVE
    SQL> alter database commit to switchover to primary with session shutdown;
    Database altered.
    SQL> shutdown immediate
    ORA-01109: database not open
    Database dismounted.
    ORACLE instance shut down.
    SQL>
    SQL> startup
    ORACLE instance started.
    Total System Global Area 1.5400E+10 bytes
    Fixed Size 2184872 bytes
    Variable Size 7717521752 bytes
    Database Buffers 7650410496 bytes
    Redo Buffers 29409280 bytes
    Database mounted.
    Database opened.
    *########### Login dcpdb1 as Oracle user #########*
    SQL> alter database open read only;
    Database altered.
    SQL> alter database recover managed standby database using current logfile disconnect;
    Database altered.
    *########### Login dcpdb2 as Oracle user #########*
    SQL> startup mount
    ORACLE instance started.
    Total System Global Area 1.5400E+10 bytes
    Fixed Size 2184872 bytes
    Variable Size 7751076184 bytes
    Database Buffers 7616856064 bytes
    Redo Buffers 29409280 bytes
    Database mounted.
    SQL> alter database open read only;
    Database altered.
    SQL> alter database recover managed standby database using current logfile disconnect;
    Database altered.
    SQL> SELECT SWITCHOVER_STATUS FROM V$DATABASE;
    SWITCHOVER_STATUS
    NOT ALLOWED
    SQL>
    *########### Login drpdb1 as Oracle user #########*
    SQL> SELECT SWITCHOVER_STATUS FROM V$DATABASE;
    SWITCHOVER_STATUS
    TO STANDBY
    *########### Login dcpdb1 as Oracle user #########*
    SQL> SELECT SWITCHOVER_STATUS FROM V$DATABASE;
    SWITCHOVER_STATUS
    NOT ALLOWED
    SQL>
    *########### Login dcpdb2 as Oracle user #########*
    SQL> SELECT SWITCHOVER_STATUS FROM V$DATABASE;
    SWITCHOVER_STATUS
    NOT ALLOWED
    SQL>
    *####################### Finish SwitchOver ########################*
    Check
    *########### Login drpdb1 as Oracle user #########*
    SQL> alter system switch logfile;
    SQL>
    SELECT sequence#, first_time, next_time
    FROM v$archived_log
    ORDER BY sequence#;
    SQL> archive log list
    *########### Login dcpdb1 as Oracle user #########*
    SQL>
    SELECT sequence#, first_time, next_time, applied
    FROM v$archived_log
    ORDER BY sequence#;
    SQL> archive log list
    *########### Login dcpdb2 as Oracle user #########*
    SQL>
    SELECT sequence#, first_time, next_time, applied
    FROM v$archived_log
    ORDER BY sequence#;
    SQL> archive log list
    Thanks
    Solaiman
    Edited by: 876149 on Apr 12, 2013 11:51 AM

  • Difference between PRIMARY KEY and UNIQUE KEY with NOT NULL

    What is the difference between PRIMARY KEY and UNIQUE KEY with NOT NULL constraint?
    Message was edited by:
    Nilesh Hole

    Answer for the master!!!
    http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:8743855576462
    Thanks,
    Karthick

  • How to automate the purging of archivelogs on primary when backing up from physical standby?

    Hi,
    When configuring archivelog backups to run from my Active Standby database (11.2.0.3) I am running into an issue where the archivelogs on the primary database are not getting purged. This is resulting in the archiver hanging on the primary.
    run {
    allocate channel ch1 type 'sbt_tape'
    TRACE 0;
    setlimit channel ch1 maxopenfiles 8;
    backup
    filesperset = 32
    (archivelog  all   delete input );
    backup  current controlfile  spfile  ;
    My archivelog deletion policy is set as follows on both the primary and standby
    CONFIGURE ARCHIVELOG DELETION POLICY TO APPLIED ON ALL STANDBY;
    When I run REPORT OBSOLETE from RMAN however, the primary database seems to have outdated information in it.
    I have also observed the following in the RMAN backup log:
    RMAN-08120: WARNING: archived log not deleted, not yet applied by standby.
    Do I need to perform additional configuration to automate the purging of archivelogs on the primary database or is there an issue with the backup options and / or deletion policy specified?
    Many thanks,
    Gary Allen
    DBA

    The primary and standby databases are in sync and have been for over a week now.
    Primary:
    SQL> select max(sequence#), applied from v$archived_log group by applied;
    MAX(SEQUENCE#) APPLIED
               268 NO
               267 YES
    Standby:
    SQL> select max(sequence#) from v$archived_log;
    MAX(SEQUENCE#)
               268
    For some reason though, the primary controlfile is not being updated properly and when I run the RMAN REPORT OBSOLETE command the data is nearly a week old yet on the standby the same command retrieves up to date information:
    Primary:
    RMAN> report obsolete
    Backup Set           136    06-AUG-13
      Backup Piece       136    06-AUG-13          48ogk9ik_1_1
    Backup Set           138    06-AUG-13
      Backup Piece       138    06-AUG-13          4aogkqbm_1_1
    Backup Set           142    06-AUG-13
      Backup Piece       142    06-AUG-13          4eogl5i6_1_1
    Backup Set           144    07-AUG-13
      Backup Piece       144    07-AUG-13          4gogmc0a_1_1
    RMAN> report obsolete
    Standby:
    Backup Set           156    13-AUG-13
      Backup Piece       156    13-AUG-13          4uoh65o7_1_1
    Backup Set           159    13-AUG-13
      Backup Piece       159    13-AUG-13          51oh6d0r_1_1
    Backup Set           162    13-AUG-13
      Backup Piece       162    13-AUG-13          54oh6n8a_1_1
    Backup Set           165    13-AUG-13
      Backup Piece       165    13-AUG-13          57oh78qr_1_1

  • What is the fundamental diff between physical standby and logical standby ?

    What is the fundamental difference between logical standby and physical standby ?
    What if I create a physical standby , now I would like to ask that is it possible to open it on read only mode ? If not , then why not ?
    hare krishna
    Alok

    Nothing will explain you better Oracle than Oracle documentation :<br>
    Standby Database Types<br>
    <br>
    Nicolas.

  • Standby database is not Sync with primary DB

    Hi,
    One week back I configured standby database and It was running fine.
    But 2 days back(Saturday) somebody had down my standby database. Today when I mounted my database; I saw this is not sync with primary database.
    Database Name :- pcs
    Primary db_unique_name :- pcs
    standby db_unique_name :- pcstd
    Present scanerio is...
    Status of Standby Database is...
    SQL> startup mount;
    ORA-32004: obsolete and/or deprecated parameter(s) specified
    ORACLE instance started.
    Total System Global Area 1073741824 bytes
    Fixed Size 2063792 bytes
    Variable Size 301990480 bytes
    Database Buffers 763363328 bytes
    Redo Buffers 6324224 bytes
    Database mounted.
    SQL> select GROUP# ,SEQUENCE# ,ACTIVE_AGENTS,STATUS from v$managed_standby;
    GROUP# SEQUENCE# ACTIVE_AGENTS STATUS
    N/A 0 0 CONNECTED
    N/A 0 0 CONNECTED
    SQL> recover managed standby database disconnect from session;
    Media recovery complete.
    SQL> select GROUP# ,SEQUENCE# ,ACTIVE_AGENTS,STATUS from v$managed_standby;
    GROUP# SEQUENCE# ACTIVE_AGENTS STATUS
    N/A 0 0 CONNECTED
    N/A 0 0 CONNECTED
    N/A 130 0 WAIT_FOR_LOG
    SQL> archive log list
    Database log mode Archive Mode
    Automatic archival Enabled
    Archive destination /backup/bkpcs/
    Oldest online log sequence 121
    Next log sequence to archive 0
    Current log sequence 126
    Status of Primary database is..
    SQL> archive log list
    Database log mode Archive Mode
    Automatic archival Enabled
    Archive destination /data/pcs10g/archive/
    Oldest online log sequence 129
    Next log sequence to archive 131
    Current log sequence 131
    SQL>
    Somebody can help me to resolve the following issues
    (1). Why archive log list not showing exact log sequence number on Standby Database.
    (2). How can I configure automatic archive logs apply from Live to Standby again.
    Regards,

    Problem has been resolved.

  • Configure primary & standby with OMS IN dataguard

    most respectable viewers,
    i have a production database "A"
    and a standby database "B" (both of these databases are 9i release2 on server 2003)
    Now archives are shipped from primary to standby and after that i manualy recover archives on standby database with "RECOVER STANDBY DATABASE" command.
    but i want that the archives which are transferred to standby database recover automatically .
    How i can achieve this..............? either running this command on standby database "RECOVER STANDBY DATABASE DISCONNECT FROM SESSION" or anyother way?
    i want to watch the performance of both of these database through "ORACLE MANAGEMENT SERVER" graphically. How i can move both of my databases to oracle management server
    i think my question is clear. plz reply
    REHAN

    user10204771 wrote:
    i want to watch the performance of both of these database through "ORACLE MANAGEMENT SERVER" graphically. How i can move both of my databases to oracle management server
    Data Guard Broker is the solution to manage dataguard graphically;
    Check link;
    http://www.scribd.com/doc/7479230/oracle-9i-data-guard-broker
    Edited by: emre baransel on Mar 30, 2009 4:36 PM

  • Difference between Primary Key and Unique+Not NUll

    Hi Guys,
    Is there any difference the column being declared as primary key or unique+NOT NULL.
    Please let me know the internal and application point of view.
    Thanks in advance!
    Ranjan

    957590 wrote:
    Ok,Thanks however I donot think Primary key uses unique indexPK uses whatever index you specify - unique or not (as long as index is on proper column(s)). However, if you do not specify any index, PK creates unique index:
    SQL> create table tbl(
      2                   id number,
      3                   name varchar2(10)
      4                  )
      5  /
    Table created.
    SQL> alter table tbl
      2    add constraint tbl_pk
      3      primary key(
      4                  id
      5                 )
      6  /
    Table altered.
    SQL> select  index_name,
      2          uniqueness
      3    from  user_indexes
      4    where table_name = 'TBL'
      5  /
    INDEX_NAME                     UNIQUENES
    TBL_PK                         UNIQUE
    SQL> select  constraint_name,
      2          index_name
      3    from  user_constraints
      4    where table_name = 'TBL'
      5  /
    CONSTRAINT_NAME                INDEX_NAME
    TBL_PK                         TBL_PK
    SQL>  alter table tbl
      2    drop primary key
      3  /
    Table altered.
    SQL> create index tbl_non_unique_pk_index
      2    on tbl(
      3           id
      4          )
      5  /
    Index created.
    SQL> alter table tbl
      2    add constraint tbl_pk
      3      primary key(
      4                  id
      5                 )
      6        using index tbl_non_unique_pk_index
      7  /
    Table altered.
    SQL> select  index_name,
      2          uniqueness
      3    from  user_indexes
      4    where table_name = 'TBL'
      5  /
    INDEX_NAME                     UNIQUENES
    TBL_NON_UNIQUE_PK_INDEX        NONUNIQUE
    SQL> select  constraint_name,
      2          index_name
      3    from  user_constraints
      4    where table_name = 'TBL'
      5  /
    CONSTRAINT_NAME                INDEX_NAME
    TBL_PK                         TBL_NON_UNIQUE_PK_INDEX
    SQL> insert
      2    into tbl
      3    values(
      4           1,
      5           'A'
      6          )
      7  /
    1 row created.
    SQL> insert
      2    into tbl
      3    values(
      4           2,
      5           'B'
      6          )
      7  /
    1 row created.
    SQL> insert
      2    into tbl
      3    values(
      4           1,
      5           'C'
      6          )
      7  /
    insert
    ERROR at line 1:
    ORA-00001: unique constraint (SCOTT.TBL_PK) violated
    SQL> SY.

  • This might be a simple question.   On those sites that do not differentiate between models when on the internet I.e. Facebook when after your comment and you cannot hit "enter" on an iPad for examp. And speed is slow to connect.  What is = to post?

    This might be a simple question. On those sites that do not differentiate between CRT, laptop, tablet etc. such as an iPad Mini and using the Facebook site fir example when going to post a comment and you do not have a enter button on the IPad and the speed is slow how do you get your comments to post if we do not have a enter button? 
    <Email Edited By Host>

    I don't have facebook so I cannot answer but for your personal security, I have asked the hosts to remove your e-mail address.   It is very unwise to publish this.

  • How can i keep the music pushed to all of families devices but the calendar and notes just between my phone and my mac using icloud?

    Ok, so my whole family has the same apple ID so that we can all get the same music, and we want to be able to use icloud so that when one person buys a song it will push to all of our devices. But the problem is when I want my calendar on my mac to also be pushed to my phone it pushes to all of my familys devices. How can i keep the music pushed to everyones but the calendar and notes just between my phone and my mac using icloud?

    Oops my bad...I see that during my troubleshooting I inadvertently left Ringtones unchecked in iTunes.

  • Home Sharing not working between wireless PC's / devices and ethernet wired PC's on the same router.

    Home Sharing is not working between wireless PC's / devices and ethernet wired PC's on the same router.  I installed a new Verizon FIOS ActionTec  MI424WR GigE wireless / ethernet router, replacing the original FIOS router.  With the old router Home Sharing worked fine across and among all iOS and Windows wired and wireless devices.  With the new router Home Sharing works between and among the Wired PC's but not between the wired PC's and the Wireless connected PC's or iOS devices.  Home Sharing also works between and among the wireless connected PC's and iOS decices but not between them and the wired PC's.
    Only the router was changed.  No changes were made to any of the devices except all were updated with the latest version of iTunes 10.7.0.21 and the iSO devices were updated to iOS vrsion 6.01.  Three PC's are wired and all are running Windows 7.  There also is a Windows Home Server connected to the router by ethernet port.  It does not run iTunes but does provide WebDAV services to my iOS devices.  This works fine.  Two PC's are wireless, one running Windows 7 and one running Windows 8.  All of the PC's are connected to the same (new) router via it's ethernet ports and it's wireless access point.  Two of the wired PC's are connected via a high-speed  ethernet hup that is connected to the router (Home Sharing works fine between the two PC's on the hub and the PC on the router).  All wired and wireless devices on the router are visible and members of the router's Home/Office virtual network.
    All of the PC's are visible in the Windows network and all shared files are accessable from all PC's, both wired and wireless.
    Obviously the router seems to be the issue, something between the ethernet and the wireless access point components.  I checked the settings and found nothing that would prevent Home Sharing between the wired and wireless devices.  There is no setting that isolates the wireless network.  I have done the following:
    Read the router user manual and checked all the settings
    Rebooted the router and tested.
    Turned off the router's firewall and tested.
    Home Sharing is turned on all the devices and all use the same Apple ID.
    Restarted iTunes and tested.
    Verified iTunes is "Allowed" in each PC's firewall.
    Again, I can Home Share between the two wireless PC's but not between either of the wireless PC's and any of the wired PC's.  I can Home Share between my iPads and iPhones and either of the two wireless PC's but not with any of the wired PC's.  I can Home Share between any of the wired PC's but not between any wired PC and a wireless PC or iOS device.
    I hope someone may have had a similar problem and has a fix suggestion.  I'm stumped!  I have a;so contacked ActionTec and awaiting an answer.

    Solution from ActionTec is:
    Log into your router.
    Click the Advanced icon
    Cclick Yes
    Click on the IGMP Proxy
    Select Disable
    Click Apply

  • Hello.  I recently pieced together a late 2008 MacBook Pro 15".  Everything works fine except the battery constantly goes between "not charging" and "calculating" or, rarely "charging". It does charge after a long while and will report that it is charged.

    Hello.  I recently pieced together a late 2008 MacBook Pro 15".  Everything works fine except the battery constantly goes between "not charging" and "calculating" or, rarely "charging". It does charge after a long while and will report that it is charged.
    I have reset the NVRAM and the SMC a couple of time but that didn't work so I ran an Apple Hardware Test and while testing the logic board it gives the following error:
    4SNS/1/40000000 LB1T
    I've done some research and found this is a temperature sensor related to the battery, but cannot find where the sensor is located in the computer.  Would you know how I can find the sensor to test it?  Could my battery problem be related to something else?  Would a fresh install of Lion help?
    Thank you!
    Mike
    Two pieces of information that may or may not b helpful, the hard drive is from my early 2008 MBP and the only test disc I have access to is from an iMac.

    Why do you have LION installed on that older machine?
    So you say you built a macbook from a bucket of parts eh?   Kudos
    heres a pic of the battery temp sensor

Maybe you are looking for

  • Error when starting a SWITCH branch (8987)

    Hi, I am testing my workflow which starting with a multiple condition (switch). The workflow process is stopped with the error: Error when starting a SWITCH branch (8987). The workflow check shows no warnings or errors. What could be the problem? Tha

  • Digitizer not responding

    hi when i changed my cover for my ipad2 the touch screen dosnt work at all whats going wrong please help me

  • How to hide button in fb60 by transaction variant.

    Hi experters, I want to hide button some buttons in transaction code: fb60 by transaction variant(SHD0) transaction code: fb60, input some date, and then  click simulation button, then go to the simulation screen, I want to hide some button on this s

  • Booklet printing on Tabloid paper

    I am creating a booklet to print on tabloid paper. I will be giving this to someone else to take to printer. I'm having a problem because I can't see a way to set up the print to booklet feature, unless I am actually printing it right now on my print

  • Third Party Order With Shipping Notification

    Hi SD folks, What is the Movement type we need to enter to do a dummy GR for third party order with shipping notification. Regards, Rahul