Unable to register one extract,but the other twos are ok.

Enviroment:
OS:Windows Server 2003 64bit
GG:
Oracle GoldenGate Command Interpreter for Oracle
Version 11.2.1.0.6 16211226 OGGCORE_11.2.1.0.6_PLATFORMS_130418.1829
Windows x64 (optimized), Oracle 11g on Apr 19 2013 17:38:40
There are three extract on the same server.Now I'd like to register for the three extracts.The other twos are ok,but there is a one extract,meet the below error message:
2013-12-22 21:43:50  ERROR   OGG-01755  Cannot register or unregister EXTRACT E_
ZF_K because of the following SQL error: OCI Error ORA-00001: unique constraint
(SYSTEM.LOGMNR_SESSION_UK1) violated
ORA-06512: at "SYS.DBMS_CAPTURE_ADM_INTERNAL", line 453
ORA-06512: at "SYS.DBMS_CAPTURE_ADM", line 289
ORA-06512: at line 1 (status = 1). See Extract user privileges in the Oracle Gol
denGate for Oracle Installation and Setup Guide.
What should I do?And I also want to know the detailed cause of this error.Thanks in acvance!

Hi,
Ongoing DDL operations on the Oracle database do not allow the PL/SQL PackageDBMS_CAPTURE_ADM.BUILD to build the LogMiner Data Dictionary, as part of the GGSCI REGISTER EXTRACT command.
NOTE: The DBMS_CAPTURE_ADM.BUILD procedure is the same as the DBMS_LOGMNR_D.BUILD procedure.
exec dbms_goldengate_auth.grant_admin_privilege('USER_NAME');
Connect to the Oracle database as SYSDBA  # sqlplus /nologin
SQL> connect / as sysdba
In the SYSDBA session, determine that there are no EXCLUSIVE DDL sessions.
(Summary)  SQL> select mode_held, count(*) from dba_ddl_locks group by mode_held;
(In detail)  SQL> select mode_held, name, type from dba_ddl_locks where mode_held = 'Exclusive' order by mode_held;
(To identify a specific user process)  select l.name, l.type, l.mode_held, s.sid, s.program, s.username, p.spid, p.pidfrom dba_ddl_locks l, v$session s, v$process p where l.mode_held = 'Exclusive' and l.session_id = s.sid and s.paddr = p.addr;
When there are no EXCLUSIVE mode DDL locks, re-run the GGSCI REGISTER EXTRACT command.
In case this is not working then try for following steps,
1. turn on sql trace
2. identify SQL and its bind variables:
declare
extract_name varchar2(100) := :1;
source_global_name varchar2(4000) := :2;
firstScn number := :3;
outbound_server_name varchar2(30);
outbound_capture_name varchar2(30);
capture_queue_name varchar2(30);
queue_table_name varchar2(30);
outbound_comment varchar2(125);
BEGIN
dbms_xstream_gg_adm.wait_for_inflight_txns := 'n';
dbms_xstream_gg_adm.synchronization := 'none';
dbms_xstream_gg_adm.is_goldengate := true; /* Construct the queue table name */
queue_table_name := SUBSTR('OGG$Q_TAB_' || extract_name, 1, 30); /* Construct the capture queue name */
capture_queue_name := SUBSTR('OGG$Q_' || extract_name, 1, 30); /* create capture queue */
dbms_streams_adm.set_up_queue(queue_table => queue_table_name, queue_name => capture_queue_name); /* Construct the outbound capture name */
outbound_capture_name := SUBSTR('OGG$CAP_' || extract_name, 1, 30); /* create capture specifying the first scn */ DBMS_XSTREAM_GG.SET_GG_SESSION();
dbms_capture_adm.create_capture(queue_name => capture_queue_name,
capture_name => outbound_capture_name,
first_scn => firstScn,
source_database => source_global_name); /* Construct the outbound server name */
outbound_server_name := SUBSTR('OGG$' || extract_name, 1, 30); /* Construct the comment assosciated with this outbound server */ outbound_comment := extract_name || ' GoldenGate Extract';
DBMS_XSTREAM_GG_ADM.ADD_OUTBOUND(server_name => outbound_server_name,
capture_name=> outbound_capture_name,
source_database=> source_global_name,
committed_data_only => FALSE,
wait_for_inflight_txns => 'N',
synchronization => 'NONE',
start_scn => firstScn,
comment => outbound_comment);
DBMS_XSTREAM_GG.SET_GG_SESSION(FALSE);
END;
3. run the sql manually under sqlplus.
it hits:
ERROR at line 1:
ORA-00604: error occurred at recursive SQL level 1
ORA-01502: index 'SYS.I_WRI$_OPTSTAT_TAB_OBJ#_ST' or partition of such index is
in unusable state
ORA-06512: at "SYS.DBMS_STREAMS_ADM", line 746
ORA-06512: at line 16
4.
SQL> select owner,status from dba_indexes where index_name='I_WRI$_OPTSTAT_TAB_OBJ#_ST';
OWNER STATUS
SYS UNUSABLE
5.rebuild th index, but it did not help:
alter index I_WRI$_OPTSTAT_H_OBJ#_ICOL#_ST rebuild;
6. drop and recreate the index. Then the extract can be registered
Thanks,
GG Lover

Similar Messages

  • Why does Firefox open 3 Tabs all the time when I open it? One is my home page but the other 2 are about plug in being installed. How do I make that stop?

    When I double click Firefox to open it, 3 Tabs automatically open. One is my home page but the other 2 are about plug ins being successfully installed. I want for only my home page to open. How do I make this stop?

    But there aren't any symbols. It's just set to http://www.yahoo.com
    And every time I open Firefox, it opens with 3 Tabs, one of which IS Yahoo but the other 2 a regarding plug ins being successfully updated. I've even gone as far as to uninstall those plug ins and it still opens with 3. About ready to uninstall Firefox and stay with IE

  • I have three dvds that play in a dvd player. One of the three plays in my imac but the other two say they are blank. How do I get my imac to read these other two dvds?

    I have three dvds that play in a dvd player. One of the three plays in my imac but the other two say they are blank. How do I get my imac to read these other two dvds?

    My iMac is very picky about any dirt or smudges on the DVD.

  • HT4314 I have 4 iPads and one apple Id. Two the devices record clash of clans and dragonvale individually and the other two are tied to the other two. Drives my kids nuts. How do I fix this?

    I have 4 iPads and one apple Id. Two the devices record clash of clans and dragonvale individually and the other two are tied to the other two. Drives my kids nuts. How do I fix this?

    Also, I'd prefer to keep the same ID on both so I will keep access to my calendar/contacts/etc on both devices.  Would I be able to share reminders and voice memos and the like as well?  And how often would they update each other?  If I edit a contact on the 5, and the 4 is in wifi, assuming they're both on my same ID, will the contact update on the 4? 

  • DNS not resolving on one Mac but the other works fine in same local network

    Snow Leopard is doing something strange to the DNS or the permission to ping.
    I have 2 Macs on the same local network, connect through the same ISP (verizon FIOS). One has no problem resolving any domain, but the other is constantly not resolving some domains.
    The problem progresses like this:
    * All of a sudden, DNS is not resolving from Ethernet (when it did perfectly well a minute ago).
    * Then I switched to wireless (using the same LAN), and it resolved fine.
    * Then it failed completely a few minutes later.
    * Then I reboot my Mac, and it seemed to clear that, and worked for a day.
    * Then it failed again in both Ethernet and Wireless; rebooting does not fix it.
    * I cleared all the caches using Onyx, did "dscacheutil -flushcache", zapped the PRAM, reinstalled 10.6.2 combo update, repaired the permission, nothing works.
    * Since the unresolved domain is my own domain, I changed the nameserver, and waited for it to propagate to see if that may be the problem, since it appeared that it is not resolving the A Record, and I waited 72 hours, and it is not resolved or propagating to the local DNS, but it worked perfectly well on my other Mac within the same network.
    * Then I added other DNS, such as google DNS 8.8.8.8 or openDNS servers to it, but it didn't fix anything.
    * Then I "ping" either the unresolved domain or my own Mac .local, and it gave me the error "permission denied". (Whereas I have no problem pinging my own Mac or the unresolved domain in my other Mac that works!).
    * Then I "sudo ping" the unresolved domain or my own Mac, and it pinged perfectly well.
    * Then I tried "ping6" my own Mac or the unresolved domain on the broken Mac, and it worked fine!
    * Also, I used http://network-tools.com to ping it, and noticed that during the trace, somewhere along the route through te7-2.dsr02.dllstx3.theplanet.com and po2.car04.dllstx5.theplanet.com, it timed out along the route, so I don't know if the timeout could have been causing the reject, but I doubted, because "sudo ping" locally will get through but "ping" does not.
    So I think I traced the Snow Leopard DNS problem as follows:
    * Why does "ping6" works, but "ping" permission is denied unless the user is root?
    * I tried to "chmod 4755 ping" but it won't let me.
    * Is it because DNS is resolving using IPv6 but not IPv4?
    * Or is Snow Leopard somehow screwed up the permission to access ping or similar DNS service?
    * Why DNS has no problem in one Mac but caused problem on the other Mac, even though they are in the same local network?
    * The only difference between the Macs maybe because I have Parallels installed in the Mac that failed to resolve DNS (with the extra Parallels Shared Ethernet), which may be interfering with it, but I tried to turn Parallels Shared Ethernet off, and it did not fix the problem.
    Can anyone help or have any idea that I can fix this nagging bug with DNS? The DNS had worked before, but it simply quit working all of a sudden, and nothing can resurrect it.
    Thanks.

    Shut down Parallels and restart w/o letting any of Parallels TCP/IP stack resurrect itself. So many network issues with VM solutions. See if the problem persists. Create a new account and ping from there. Are your search domains manually entered on the 10.6 box?

  • I have a MBP 15" with iPhoto 9. When right clicking on icon in dock 3 iPhoto libraries come up; one empty, one with 35,000 photos and one with 30,000 photos.  How can I delete the empty one and merge the other two without getting duplicates?

    I have a MBP 15" with Iphoto 9.  When I right click on icon in dock 3 iPhoto libraries come up; one empty, one with 35,000 photos and one with 30,000 photos.  How can I delete the empty library and merge the other two without getting duplicates?

    You can delete the empty one by dragging it to the trash ( test everything before emptying the trash)
    Merging libraries requires iPhoto Library Manager - http://www.fatcatsoftware.com/iplm/ -  it is the only current solution to merging libraries
    LN

  • How do I get incoming mail in one of my mailboxes unstuck.  It will not download any mail in one box but the other mailbox works fine

    How do I get incoming mail in one of my mailboxes unstuck??  It is trying to download it but seems jammed.  The other mailbox is working fine.  I know there is mail there because it is coming into my bb.  This just started this morning.  I took someone's suggestion and duplicated my mail from the library and I then put com.apple.mail.plist on my desktop.  I was unable to delete the incoming mail from the mailbox however so don't know what to do.
    Help?

    Try this: If this is Apple Mail, select the Mailbox, then from the Mail Menu>Mailbox>Rebuild.

  • I bought a MacBook Air which includes a puzzling cord.  It plugs into a wall socket at one end, but the other end looks like a miniature hair dryer.  Does anyone know what this is for?cord

    I bought a MacBook Air which includes a puzzling cord.  It appears to be for charging the Mac.  It has three prongs where it plugs into the wall socket, but at the other end there is something that looks like a miniature old-style hairdryer.  It doesn't fit anywhere on the MacBook Air.  It is approximately 1 cubic inch in size.  Sort of looks like a miniature building with two joined smokestacks.  Any help would be appreciated.  Thanks.

    Hi, I think you are talking about the extension cord for the MagSafe power adapter.
    This you can plug it to the MagSafe adapter in order to get a longer cable, but first you have to slide to disconnect the wall connector from the adapter and get this:
    I'm sure you will get it once you slide the socket connector from the adapter. NOTE: you have to slide the  little socket connector from the adapter, DON'T PULL IT OFF. Is easy to slide.
    Hope this is the answer for your question. If I'm wrong, please put an image of the "puzzling cord".

  • HT4191 I can sync Outlook notes through iTunes to iPad and iTouch but not iPhone3GS. I cannot see "Sync notes with Outlook" under info for iPhone but the other two work fine. Same settings on all !!! What do to next ??

    I have iPad3, iPhone3GS and iTouch all set up with latest software. I sync with a Sony VAIO and the sync is fine and complete with the iPad and iTouch. The iPhone refuses to allow syncing of Outlook Notes from laptop to iPhone. On both other devices the sync of Outlook Notes and everything else works fine. I have follwed other blog suggestions and erased/added accounts, checked that there are not any Notes with no data or headings and all the other ideas but to no avail. The difficulty is only with Notes syncing to the iPhone, works fine with iPad and iTouch.
    What do I do next ?

    The apple store fixed it for me. They basically said I had too many "calendar" sources checked. They eliminated all but the calendar "from my PC". When I open the iPhone calendar, and click on the upper left calendar button, only one calendar shows up (from my PC). iCloud calendar is off, google calendar off, etc.

  • Home sharing is not visible on one laptop, but the other one is fine.

    I need some help.  I am trying to home share between 2 laptops.  Should be simple right?  Laptop A has all the media.  I want Laptop B to be able to access it.  I am using the same itunes ID for both computers and each computer has authorized that account.  Under preferences the sharing in enabled for both laptops.  Laptop A that has all the desired media can also see Laptop B under 'Sharing'.  Laptop B cannot locate laptop A.  There is no sharing icon at all.  I have read through the support, tried authorizing and sharing under preference etc.  Logged in and out multiple times.  I have even updated Bonjour, but I am still unable to view Laptop A or see any sharing icon at all.  The sharing icon simply disappears after I log on to home share.  I am on the same network and there is only one router.  If someone could offer some insight I would be eternally grateful.

    Hi Marinosh,
    Thanks for visiting Apple Support Communities.
    You mention that you've already tried some steps, but I wanted to make sure that you've tried all the steps in the article below if Home Sharing isn't working on your iOS devices:
    Troubleshooting Home Sharing
    http://support.apple.com/kb/TS2972
    Best Regards,
    Jeremy

  • One works but the other is now slow.

    I had some compatability issues with my macbook and the 2wire modem I had so I bought an airport extreme. I have a pc in the living room as well. I have the airport extreme set up and the pc is wired to the airport and the ethernet cable from the 2wire goes to the airport. The wireless to the mac book is fine , but now the pc does connect to the internet but it connects super slow and mainly not at all. What's up? Can anyone help me? It would be deeply apprieciated.

    Not sure what the problem is here, although it looks like you have different Mac builds and maybe different OS's, Leopard on your old Mac and Snow Leopard on the new one. I don't know if that is why the files won't open or if there is some other problem.
    Here is a link that might be helpful:
    http://discussions.apple.com/thread.jspa?threadID=435350&tstart=0
    One thing you could do is to make a clone of your old Mac's hard drive using Super Duper or Carbon Copy Cloner on an external drive:
    http://www.shirt-pocket.com/SuperDuper/SuperDuperDescription.html
    http://www.bombich.com/software/ccc.html
    You could mount both the old Mac's drive and the external drive on your new Mac and use Super Duper to make the clone of the the old Mac's drive onto the external. I have done this myself so I know it works. That would at least put the files on the external drive so you could send off your old Mac.
    I don't have an iTunes store account, so wouldn't know how to authorize or deauthorize that. However, I would think the Apple Store could help you with that.
    Good luck!

  • Can you use two ipods on one itunes account. It let me transfer my purchases, but can i put songs that are on one ipod onto the other that are already on my itunes?

    i had an ipod classic and used it for a few years until i got an iphone.
    Now I want to return to use it to fit all my songs on, however i now use a different itunes on a different computer.
    It let me transfer all my purchases, but won't let me put the songs on that i downloaded from albums, and it won't let me put songs onto it that are on my iphone.
    do i have to redownload all the songs again, or is there a simple method to solve this?

    See the How To Sections Here
    http://www.apple.com/support/ipod/earlier/
    And Here
    http://www.apple.com/support/ipodclassic/
    Also see this
    Download Past Purchases
    http://support.apple.com/kb/HT2519
    Log into iTunes using the account the Purchase was made with... Click on Buy... and a notice will come up saying you already have it... do you wish to download it again... Click Yes...

  • Half of my apps are not working. Online wise but the other half are. The bars say ecellent service and the half that r working work great the ones that aren't say can not connect try agian later. ? Help me!!!

    Help me get my iPod touch apps to all work since apparently they don't like me !

    Try here:
    iOS: Troubleshooting applications purchased from the App Store

  • I have 2 iphone 5 and 1 4s and one of the iphone 5 can send to the other two phones i have but the other two can not send to one of the iphone 5 WHY

    what if you cant imessage someone in  your account

    http://support.apple.com/kb/HT3529
    http://support.apple.com/kb/ts2755

  • Have brand new iPad 2 16G 3G and can't get past the first screen saying 'connect to iTunes' even though the usb is connected to my computer which has iTunes downloaded. We bought 3 iPads and I configured my sons ok but the other 2 are not working.

    HELP!!!!

    alanfromnewtownards wrote:
    Try a Reset [Hold the Home and Sleep/Wake buttons down together for 10 seconds or so (until the Apple logo appears) and then release. When the screen goes blank power On again in the normal way.] It is absolutely/appsolutely safe!
    If that doesn't work the OP could try the suggestions in this knowledge base article:
    http://support.apple.com/kb/TS1538
    which is for Windows.  This is for the Mac platform:
    http://support.apple.com/kb/TS1591

Maybe you are looking for