Rz20 remote database monitoring

Hi girus,
we have to monitor from our Solution Manager a java remote database. We have followed note 1139623, everything works well in transaction DB02 for this remote system except Alert Monitor Tree under Folder Alert . The icons are inactive and are not showing data.
We have already set flag "collect alert data" in transaction DBACOCKPIT.
Any ideas?

Hello,
Could you please check note:
1265134 - DBA Cockpit: Connecting a remote database
1711688 - DBA Cockpit: RZ20 alerts are not generated
868063 - Database space statistics monitor for Oracle
1540222 - DBA Cockpit: Monitoring non-ABAP/Java Oracle databases
If a database is installed on a remote server than the SAPLOCALHOST parameter should be maintained correctly in the agent profile, the value
for this parameter should be exactly the same as the SAPDBHOST parameter value in the instance profile. If this is correctly done than in the
transaction AL15 automatically the flag "DB server" will be selected for the related SAPCCMSR agent RFC destination (note 444947).
1068204 -  New monitor template for database monitoring
Monitoring Standalone DB Server using CCMS Agents
http://scn.sap.com/community/netweaver-administrator/blog/2013/12/18/monitoring-standalone-db-server-using-ccms-agents
BR
T

Similar Messages

  • Solution manager and CCMS monitoring of remote database

    I have Solution Manager 7 SP Basis 6 installed. I have oracle remote databases connected successfully. Under DBCockpit I see the instances I want to monitor. I can see the backup, tablespaces, etc. These remote instances are SAP Portal JAVA only version 7 but under the dbcockpit alerts only shows alert monitor. The database check and check conditions are in white. Is there a way to see these and be able to report on them? The CCMS tree under the local solution manager also shows these connected remote instances but they are also white in color as if inactive. All CCMS agents and saposcol are running perfectly on the remote systems. The stats tables have been built, the synonyms for the solution manager are in place. What am I missing?

    Hi,
    Please download that attachment "scripts_1139623.sar" provided in SAP Note 1139623 - Using transaction RZ20 to monitor remote Oracle databases.
    Upon extraction of scripts_1139623.sar the following files you will get.
    rz20_nonabap.sql
    dbcheckora10_oltp.sql
    dbcheckora.sql
    Then Perform the below mentioned Steps to resolve your issue.
    Step 1: Create tables DBCHECKORA and DBMSGORA:
      sqlplus SAPSR3DB/<pwd>
      SQL> @rz20_nonabap.sql
    Step 2: Fill the table DBCHECKORA:
      sqlplus SAPSR3DB/<pwd>
      SQL> @dbcheckora10_oltp   
    Step 3: Create the synonyms (as user ora<sid>):
    brconnect -u / -c -f crsyn -o SAPSR3DB
    sqlplus "/as sysdba"
    CREATE PUBLIC SYNONYM SAP_DBSTATC FOR SAPSR3DB.DBSTATC;
    CREATE PUBLIC SYNONYM SAP_DBCHECKORA FOR SAPSR3DB.DBCHECKORA;
    CREATE PUBLIC SYNONYM SAP_DBMSGORA FOR SAPSR3DB.DBMSGORA;
    Step 4: Grant Privileges for OPS$<SID>ADM User for the above created Tables
    sqlplus "/as sysdba"
    grant all on SAPSR3DB.DBSTATC to OPS$<SID>ADM;
    grant all on SAPSR3DB.DBCHECKORA to OPS$<SID>ADM;
    grant all on SAPSR3DB.DBMSGORA to OPS$<SID>ADM;
    grant all on SAPSR3DB.DBSTAIHORA to OPS$<SID>ADM;
    grant all on SAPSR3DB.DBSTATHORA to OPS$<SID>ADM;
    grant all on SAPSR3DB.DBSTATIORA to OPS$<SID>ADM;
    grant all on SAPSR3DB.DBSTATTORA to OPS$<SID>ADM;
    commit;
    Step 5:
    Now after successful execution of above mentioned Steps , in DBACOCKPIT (system configuration), try to save the Remote DB entry with "Collect Alert Data".  It will be saved without any error.
    If you find any errors, post the error contents as a reply of this thread message.
    Regards,
    Bhavik G. Shroff

  • ACS View 5 Remote Database

    The online help and PDF doc seem a little vague about the remote database feature....I'm wondering whether it will write the entire View database every time or just the new data?
    I notice the scheduled jobs is called Export which sounds like it might do the entire db. But, since you can go right down to 1hr intervals it would seem more logical for only new records to be exported - espcially if the database is large.
    Thx

    It is the delta of data that is exported at each interval
    Note only a subset of the monitoring and reporting tables are exported.
    You can find more details in Appendix A of the following document:
    http://www.cisco.com/en/US/docs/net_mgmt/cisco_secure_access_control_system/5.1/sdk/sdk.pdf

  • Error while Creating form on remote Database

    Hi All
    I m getting error while creating form on remote database thru
    Database link
    Line/Column Error
    7099/21 PLS-00454: with a returning into clause, the table
    expression cannot be remote or a subquery
    7099/9 PL/SQL: SQL Statement ignored
    7749/16 PLS-00454: with a returning into clause, the table
    expression cannot be remote or a subquery
    7749/9 PL/SQL: SQL Statement ignored
    and statement at line specified is insert statement. and at end
    of insert statement Returning caluse is there as follows
    RETURNING ROWID INTO "_ROWID";
    This returning clause is causing error. Does anybody knows how
    to handel it??
    Thanks
    Yogesh

    Yogesh
    I haven't seen the ora-03116 problem.
    What version of Portal are you running? Are the databases at the same version? Does your table have longs or anything strange in it?
    Can you query the table via the synonyms and link in sqlplus as the application schema? This is a good test because it eliminates Portal.
    You should try setting up synonyms etc for the emp table. If you still get the problem then Oracle may be able to replicate it. If not, then there's sth funny about your table maybe.
    I agree with Vishnu about creating everything in sqlplus. I create all my links and synonyms in sqlplus. They are all public. I have 2 synonyms: one takes you over the link the other takes you to the right schema. It's flexible and it works.
    data database: D grants to P (local schema) on table T
    public syn T = D.T (sys) (get the right schema)
    portal dbase : public db link to data database connecting as P
    public syn T = T@dblink (sys) (over the link)
    P is a schema created in both databases.
    Test is: P in portal dbase can "select * from T" and gets the right data.
    I never, ever refer to a schema when defining a form. ie. never P.T or D.T or whatever. I always refer simply to a synonym. For the above my form would be defined simply on the table T.
    Hope this helps
    Greg

  • Unable to get parameter values from a remote database

    I am linking to a remote database view via a synonym in Oracle and trying to retrieve parameter values from it.  The username and password are the same for the local and remote database and I can run the SQL query using SQL plus against the database and values are returned.  However, when I try and run the same query in Crystal Reports (XI) I receive an Oracle error:
    "An attempt was made to connect or log in to a remote database using a connection description that could not be found.
    Action: 
    Specify an existing database link. Query the data dictionary to see all existing database links. See your operating system-specific Net8 documentation for valid connection descriptors. "
    How can it be that Crystal cannot run the query when it is valid in SQL plus?
    Any tips/info would be appreciated.
    many thanks
    Claire
    Oracle is version 10

    When running one of the reports in VS.Net this is the error I receive:
    "A first chance exception of type 'System.Runtime.InteropServices.COMException' occurred in crystaldecisions.crystalreports.engine.dll
    Additional information: Failed to retrieve data from the database.
    Details:  [Database Vendor Code: 2019 ]
    Failed to retrieve data from the database.
    Error in File C:\DOCUME1\CLAIRE1.REE\LOCALS~1\Temp\{0C6C6DD5-B958-4E10-A2AA-928C58E1B7CE}.rpt:
    Failed to retrieve data from the database.
    Details:  [Database Vendor Code: 2019 ]"
    When running the same report in Crystal Reports designer I receive this error message:
    "Prompting failed with the following error message: 'List of Values failure: fail to get values. [Cause of error: Failed to retrieve data from the database.  Details: [Database Vendor Code: 2019].  Failure to retrieve data from the database.  Error in File UNKNOWN.RPT.  Failure to retrieve data from the database.  Details: [Database Vendor Code: 2019]]'.
    Error source: prompt.dll Error code: 0x8004380D"
    So this one is also failing in the designer.
    All the parameters in the main report are static and the ones in the subreport are passed in from the main report.

  • Problem while accessing object in remote database

    Hi All,
    We have a procedure "UPDATE_CONV_DETAILS" created in the remote databse in the "apps" schema. The synonym for the procedure is created in the billing schema(present in the remote database). A dblink is created the local database through which we are tring to access the remote object "UPDATE_CONV_DETAILS".
    Dblink script:
    create public database link PRE_TO_CEL
    connect to BILLING
    identified by BILLING
    using 'MAP1';
    When trying to access the object from the local machine using the schema name.object_name it works fine:
    SQL> DESC APPS.UPDATE_CONV_DETAILS@PRE_TO_CEL
    PROCEDURE APPS.UPDATE_CONV_DETAILS@PRE_TO_CEL
    Argument Name Type In/Out Default?
    IN_MOBILE VARCHAR2 IN
    IN_SERVICE_CODE VARCHAR2 IN
    IN_STATUS VARCHAR2 IN
    OUT_ERROR_CODE NUMBER OUT
    But when trying the access the same object using the synonym_name it gives the error:
    SQL> DESC UPDATE_CONV_DETAILS@PRE_TO_CEL
    ERROR:
    ORA-04043: object APPS.UPDATE_CONV_DETAILS does not exist
    Regards,
    Kirti

    You have two schema.
    apps
    billing
    both reside in remote database.
    there on procedure and on procedure u create one synonym and u want to access it.
    ur remote database name is "map1"
    on ur local database ur create one dblink to access remote database.
    ORA-04043: object string does not exist
    Cause: An object name was specified that was not recognized by the system. There are several possible causes:
    - An invalid name for a table, view, sequence, procedure, function, package, or package body was entered. Since the system could not recognize the invalid name, it responded with the message that the named object does not exist.
    - An attempt was made to rename an index or a cluster, or some other object that cannot be renamed.
    Action: Check the spelling of the named object and rerun the code. (Valid names of tables, views, functions, etc. can be listed by querying the data dictionary.)

  • Trigger inserting CLOB in remote database

    I ma using an after insert row level trigger to replicate a table into a remote database which has a CLOB column. This is not Oracle Replication, only a trigger. I have attempted numerous paths to achieve this with only partial successes. Is there a way to insert into the remote database when using a CLOB?
    Trigger follows: (will not work when the table array values gets large; I know it will fail on iteration 14)
    CREATE OR REPLACE TRIGGER COPYUP
    INSERT ON "EVENT_DATA" FOR EACH ROW
    DECLARE
    TYPE t_buffer IS TABLE OF VARCHAR2(32500)
    INDEX BY BINARY_INTEGER;
    vcharBuf t_buffer;
    vintReadlength integer := 1;
    vintSendRead integer;
    vintCntr integer := 0;
    vintTotallength integer := 1;
    vintBeginloc integer := 1;
    vclobVal clob;
    vintOffset integer := 32500;
    vintLoop integer;
    vnumError number;
    vcharErrstr varchar2(200);
    BEGIN
    select :new.rawdata into vclobVal from dual;
    vintTotallength := dbms_lob.getlength(vclobVal);
    LOOP
    if vintTotallength > vintOffset then
    if ((vintCntr + 1) * vintOffset) < vintTotallength then
    vintReadlength := vintOffset;
    else
    vintReadlength := (vintTotallength - (vintCntr * vintOffset));
    end if;
    else
    vintReadlength := vintTotallength;
    end if;
    vintSendRead := vintReadlength;
    -- dbms_output.put_line('COPYUP: vintReadlength: ' || vintReadlength || '.');
    -- dbms_output.put_line('COPYUP: vintTotallength: ' || vintTotallength || '.');
    -- dbms_output.put_line('COPYUP: vintCntr: ' || vintCntr || '.');
    -- dbms_output.put_line('COPYUP: vintOffset: ' || vintOffset || '.');
    -- dbms_output.put_line('COPYUP: vintBeginloc: ' || vintBeginloc || '.');
    -- dbms_output.put_line('COPYUP: vintBeginlocSendRead: ' || vintSendRead || '.');
    -- dbms_output.put_line('COPYUP: EventId: ' || :new.eventid || '.');
    dbms_lob.read(vclobVal, vintSendRead, vintBeginloc, vcharBuf(vintCntr));
    exit when ((vintBeginloc + vintReadlength) >= vintTotallength);
    vintCntr := vintCntr + 1;
    vintBeginloc := (vintCntr * vintReadLength) + 1;
    END LOOP;
    IF vintCntr = 0 THEN
    insert into event_data@ncarsdb2
    (ids, ip_address, center,
    detect_date, port, filter,
    rawdata, eventid, lastupdate,
    rulenum, priority, filtername)
    values
    (:new.ids, :new.ip_address, :new.center,
    :new.detect_date, :new.port, :new.filter,
    vcharBuf(0),
    :new.eventid, :new.lastupdate,
    :new.rulenum, :new.priority, :new.filtername);
    ELSIF vintCntr = 1 THEN
    insert into event_data@ncarsdb2
    (ids, ip_address, center,
    detect_date, port, filter,
    rawdata, eventid, lastupdate,
    rulenum, priority, filtername)
    values
    (:new.ids, :new.ip_address, :new.center,
    :new.detect_date, :new.port, :new.filter,
    vcharBuf(0)||vcharBuf(1),
    :new.eventid, :new.lastupdate,
    :new.rulenum, :new.priority, :new.filtername);
    ELSIF vintCntr = 2 THEN
    insert into event_data@ncarsdb2
    (ids, ip_address, center,
    detect_date, port, filter,
    rawdata, eventid, lastupdate,
    rulenum, priority, filtername)
    values
    (:new.ids, :new.ip_address, :new.center,
    :new.detect_date, :new.port, :new.filter,
    vcharBuf(0)||vcharBuf(1)||vcharBuf(2),
    :new.eventid, :new.lastupdate,
    :new.rulenum, :new.priority, :new.filtername);
    ELSIF vintCntr = 3 THEN
    insert into event_data@ncarsdb2
    (ids, ip_address, center,
    detect_date, port, filter,
    rawdata, eventid, lastupdate,
    rulenum, priority, filtername)
    values
    (:new.ids, :new.ip_address, :new.center,
    :new.detect_date, :new.port, :new.filter,
    vcharBuf(0)||vcharBuf(1)||vcharBuf(2)||vcharBuf(3),
    :new.eventid, :new.lastupdate,
    :new.rulenum, :new.priority, :new.filtername);
    ELSIF vintCntr = 4 THEN
    insert into event_data@ncarsdb2
    (ids, ip_address, center,
    detect_date, port, filter,
    rawdata, eventid, lastupdate,
    rulenum, priority, filtername)
    values
    (:new.ids, :new.ip_address, :new.center,
    :new.detect_date, :new.port, :new.filter,
    vcharBuf(0)||vcharBuf(1)||vcharBuf(2)||vcharBuf(3)||vcharBuf(4),
    :new.eventid, :new.lastupdate,
    :new.rulenum, :new.priority, :new.filtername);
    ELSIF vintCntr = 5 THEN
    insert into event_data@ncarsdb2
    (ids, ip_address, center,
    detect_date, port, filter,
    rawdata, eventid, lastupdate,
    rulenum, priority, filtername)
    values
    (:new.ids, :new.ip_address, :new.center,
    :new.detect_date, :new.port, :new.filter,
    vcharBuf(0)||vcharBuf(1)||vcharBuf(2)||vcharBuf(3)||vcharBuf(4)||vcharBuf(5),
    :new.eventid, :new.lastupdate,
    :new.rulenum, :new.priority, :new.filtername);
    ELSIF vintCntr = 6 THEN
    insert into event_data@ncarsdb2
    (ids, ip_address, center,
    detect_date, port, filter,
    rawdata, eventid, lastupdate,
    rulenum, priority, filtername)
    values
    (:new.ids, :new.ip_address, :new.center,
    :new.detect_date, :new.port, :new.filter,
    vcharBuf(0)||vcharBuf(1)||vcharBuf(2)||vcharBuf(3)||vcharBuf(4)||vcharBuf(5)||vcharBuf(6),
    :new.eventid, :new.lastupdate,
    :new.rulenum, :new.priority, :new.filtername);
    ELSIF vintCntr = 7 THEN
    insert into event_data@ncarsdb2
    (ids, ip_address, center,
    detect_date, port, filter,
    rawdata, eventid, lastupdate,
    rulenum, priority, filtername)
    values
    (:new.ids, :new.ip_address, :new.center,
    :new.detect_date, :new.port, :new.filter,
    vcharBuf(0)||vcharBuf(1)||vcharBuf(2)||vcharBuf(3)||vcharBuf(4)||vcharBuf(5)||vcharBuf(6)||vcharBuf(7),
    :new.eventid, :new.lastupdate,
    :new.rulenum, :new.priority, :new.filtername);
    ELSIF vintCntr = 8 THEN
    insert into event_data@ncarsdb2
    (ids, ip_address, center,
    detect_date, port, filter,
    rawdata, eventid, lastupdate,
    rulenum, priority, filtername)
    values
    (:new.ids, :new.ip_address, :new.center,
    :new.detect_date, :new.port, :new.filter,
    vcharBuf(0)||vcharBuf(1)||vcharBuf(2)||vcharBuf(3)||vcharBuf(4)||vcharBuf(5)||vcharBuf(6)||vcharBuf(7)||vcharBuf(8),
    :new.eventid, :new.lastupdate,
    :new.rulenum, :new.priority, :new.filtername);
    ELSIF vintCntr = 9 THEN
    insert into event_data@ncarsdb2
    (ids, ip_address, center,
    detect_date, port, filter,
    rawdata, eventid, lastupdate,
    rulenum, priority, filtername)
    values
    (:new.ids, :new.ip_address, :new.center,
    :new.detect_date, :new.port, :new.filter,
    vcharBuf(0)||vcharBuf(1)||vcharBuf(2)||vcharBuf(3)||vcharBuf(4)||vcharBuf(5)||vcharBuf(6)||vcharBuf(7)||vcharBuf(8)||vcharBuf(9),
    :new.eventid, :new.lastupdate,
    :new.rulenum, :new.priority, :new.filtername);
    ELSIF vintCntr = 10 THEN
    insert into event_data@ncarsdb2
    (ids, ip_address, center,
    detect_date, port, filter,
    rawdata, eventid, lastupdate,
    rulenum, priority, filtername)
    values
    (:new.ids, :new.ip_address, :new.center,
    :new.detect_date, :new.port, :new.filter,
    vcharBuf(0)||vcharBuf(1)||vcharBuf(2)||vcharBuf(3)||vcharBuf(4)||vcharBuf(5)||vcharBuf(6)||vcharBuf(7)||vcharBuf(8)||vcharBuf(9)||vcharBuf(10),
    :new.eventid, :new.lastupdate,
    :new.rulenum, :new.priority, :new.filtername);
    ELSIF vintCntr = 11 THEN
    insert into event_data@ncarsdb2
    (ids, ip_address, center,
    detect_date, port, filter,
    rawdata, eventid, lastupdate,
    rulenum, priority, filtername)
    values
    (:new.ids, :new.ip_address, :new.center,
    :new.detect_date, :new.port, :new.filter,
    vcharBuf(0)||vcharBuf(1)||vcharBuf(2)||vcharBuf(3)||vcharBuf(4)||vcharBuf(5)||vcharBuf(6)||vcharBuf(7)||vcharBuf(8)||vcharBuf(9)||vcharBuf(10)||vcharBuf(11),
    :new.eventid, :new.lastupdate,
    :new.rulenum, :new.priority, :new.filtername);
    ELSIF vintCntr = 12 THEN
    insert into event_data@ncarsdb2
    (ids, ip_address, center,
    detect_date, port, filter,
    rawdata, eventid, lastupdate,
    rulenum, priority, filtername)
    values
    (:new.ids, :new.ip_address, :new.center,
    :new.detect_date, :new.port, :new.filter,
    vcharBuf(0)||vcharBuf(1)||vcharBuf(2)||vcharBuf(3)||vcharBuf(4)||vcharBuf(5)||vcharBuf(6)||vcharBuf(7)||vcharBuf(8)||vcharBuf(9)||vcharBuf(10)||vcharBuf(11)||vcharBuf(12),
    :new.eventid, :new.lastupdate,
    :new.rulenum, :new.priority, :new.filtername);
    ELSIF vintCntr = 13 THEN
    insert into event_data@ncarsdb2
    (ids, ip_address, center,
    detect_date, port, filter,
    rawdata, eventid, lastupdate,
    rulenum, priority, filtername)
    values
    (:new.ids, :new.ip_address, :new.center,
    :new.detect_date, :new.port, :new.filter,
    vcharBuf(0)||vcharBuf(1)||vcharBuf(2)||vcharBuf(3)||vcharBuf(4)||vcharBuf(5)||vcharBuf(6)||vcharBuf(7)||vcharBuf(8)||vcharBuf(9)||vcharBuf(10)||vcharBuf(11)||vcharBuf(12)||vcharBuf(13),
    :new.eventid, :new.lastupdate,
    :new.rulenum, :new.priority, :new.filtername);
    ELSIF vintCntr = 14 THEN
    insert into event_data@ncarsdb2
    (ids, ip_address, center,
    detect_date, port, filter,
    rawdata, eventid, lastupdate,
    rulenum, priority, filtername)
    values
    (:new.ids, :new.ip_address, :new.center,
    :new.detect_date, :new.port, :new.filter,
    vcharBuf(0)||vcharBuf(1)||vcharBuf(2)||vcharBuf(3)||vcharBuf(4)||vcharBuf(5)||vcharBuf(6)||vcharBuf(7)||vcharBuf(8)||vcharBuf(9)||vcharBuf(10)||vcharBuf(11)||vcharBuf(12)||vcharBuf(13)||vcharBuf(14),
    :new.eventid, :new.lastupdate,
    :new.rulenum, :new.priority, :new.filtername);
    ELSIF vintCntr = 15 THEN
    insert into event_data@ncarsdb2
    (ids, ip_address, center,
    detect_date, port, filter,
    rawdata, eventid, lastupdate,
    rulenum, priority, filtername)
    values
    (:new.ids, :new.ip_address, :new.center,
    :new.detect_date, :new.port, :new.filter,
    vcharBuf(0)||vcharBuf(1)||vcharBuf(2)||vcharBuf(3)||vcharBuf(4)||vcharBuf(5)||vcharBuf(6)||vcharBuf(7)||vcharBuf(8)||vcharBuf(9)||vcharBuf(10)||vcharBuf(11)||vcharBuf(12)||vcharBuf(13)||vcharBuf(14)||vcharBuf(15),
    :new.eventid, :new.lastupdate,
    :new.rulenum, :new.priority, :new.filtername);
    ELSIF vintCntr = 16 THEN
    insert into event_data@ncarsdb2
    (ids, ip_address, center,
    detect_date, port, filter,
    rawdata, eventid, lastupdate,
    rulenum, priority, filtername)
    values
    (:new.ids, :new.ip_address, :new.center,
    :new.detect_date, :new.port, :new.filter,
    vcharBuf(0)||vcharBuf(1)||vcharBuf(2)||vcharBuf(3)||vcharBuf(4)||vcharBuf(5)||vcharBuf(6)||vcharBuf(7)||vcharBuf(8)||vcharBuf(9)||vcharBuf(10)||vcharBuf(11)||vcharBuf(12)||vcharBuf(13)||vcharBuf(14)||vcharBuf(15)||vcharBuf(16),
    :new.eventid, :new.lastupdate,
    :new.rulenum, :new.priority, :new.filtername);
    ELSIF vintCntr = 17 THEN
    insert into event_data@ncarsdb2
    (ids, ip_address, center,
    detect_date, port, filter,
    rawdata, eventid, lastupdate,
    rulenum, priority, filtername)
    values
    (:new.ids, :new.ip_address, :new.center,
    :new.detect_date, :new.port, :new.filter,
    vcharBuf(0)||vcharBuf(1)||vcharBuf(2)||vcharBuf(3)||vcharBuf(4)||vcharBuf(5)||vcharBuf(6)||vcharBuf(7)||vcharBuf(8)||vcharBuf(9)||vcharBuf(10)||vcharBuf(11)||vcharBuf(12)||vcharBuf(13)||vcharBuf(14)||vcharBuf(15)||vcharBuf(16)||vcharBuf(17),
    :new.eventid, :new.lastupdate,
    :new.rulenum, :new.priority, :new.filtername);
    ELSIF vintCntr = 18 THEN
    insert into event_data@ncarsdb2
    (ids, ip_address, center,
    detect_date, port, filter,
    rawdata, eventid, lastupdate,
    rulenum, priority, filtername)
    values
    (:new.ids, :new.ip_address, :new.center,
    :new.detect_date, :new.port, :new.filter,
    vcharBuf(0)||vcharBuf(1)||vcharBuf(2)||vcharBuf(3)||vcharBuf(4)||vcharBuf(5)||vcharBuf(6)||vcharBuf(7)||vcharBuf(8)||vcharBuf(9)||vcharBuf(10)||vcharBuf(11)||vcharBuf(12)||vcharBuf(13)||vcharBuf(14)||vcharBuf(15)||vcharBuf(16)||vcharBuf(17)||vcharBuf(18),
    :new.eventid, :new.lastupdate,
    :new.rulenum, :new.priority, :new.filtername);
    ELSIF vintCntr = 19 THEN
    insert into event_data@ncarsdb2
    (ids, ip_address, center,
    detect_date, port, filter,
    rawdata, eventid, lastupdate,
    rulenum, priority, filtername)
    values
    (:new.ids, :new.ip_address, :new.center,
    :new.detect_date, :new.port, :new.filter,
    vcharBuf(0)||vcharBuf(1)||vcharBuf(2)||vcharBuf(3)||vcharBuf(4)||vcharBuf(5)||vcharBuf(6)||vcharBuf(7)||vcharBuf(8)||vcharBuf(9)||vcharBuf(10)||vcharBuf(11)||vcharBuf(12)||vcharBuf(13)||vcharBuf(14)||vcharBuf(15)||vcharBuf(16)||vcharBuf(17)||vcharBuf(18)||vcharBuf(19),
    :new.eventid, :new.lastupdate,
    :new.rulenum, :new.priority, :new.filtername);
    ELSIF vintCntr = 20 THEN
    insert into event_data@ncarsdb2
    (ids, ip_address, center,
    detect_date, port, filter,
    rawdata, eventid, lastupdate,
    rulenum, priority, filtername)
    values
    (:new.ids, :new.ip_address, :new.center,
    :new.detect_date, :new.port, :new.filter,
    vcharBuf(0)||vcharBuf(1)||vcharBuf(2)||vcharBuf(3)||vcharBuf(4)||vcharBuf(5)||vcharBuf(6)||vcharBuf(7)||vcharBuf(8)||vcharBuf(9)||vcharBuf(10)||vcharBuf(11)||vcharBuf(12)||vcharBuf(13)||vcharBuf(14)||vcharBuf(15)||vcharBuf(16)||vcharBuf(17)||vcharBuf(18)||vcharBuf(19)||vcharBuf(20),
    :new.eventid, :new.lastupdate,
    :new.rulenum, :new.priority, :new.filtername);
    ELSIF vintCntr = 21 THEN
    insert into event_data@ncarsdb2
    (ids, ip_address, center,
    detect_date, port, filter,
    rawdata, eventid, lastupdate,
    rulenum, priority, filtername)
    values
    (:new.ids, :new.ip_address, :new.center,
    :new.detect_date, :new.port, :new.filter,
    vcharBuf(0)||vcharBuf(1)||vcharBuf(2)||vcharBuf(3)||vcharBuf(4)||vcharBuf(5)||vcharBuf(6)||vcharBuf(7)||vcharBuf(8)||vcharBuf(9)||vcharBuf(10)||vcharBuf(11)||vcharBuf(12)||vcharBuf(13)||vcharBuf(14)||vcharBuf(15)||vcharBuf(16)||vcharBuf(17)||vcharBuf(18)||vcharBuf(19)||vcharBuf(20)||vcharBuf(21),
    :new.eventid, :new.lastupdate,
    :new.rulenum, :new.priority, :new.filtername);
    ELSIF vintCntr = 22 THEN
    insert into event_data@ncarsdb2
    (ids, ip_address, center,
    detect_date, port, filter,
    rawdata, eventid, lastupdate,
    rulenum, priority, filtername)
    values
    (:new.ids, :new.ip_address, :new.center,
    :new.detect_date, :new.port, :new.filter,
    vcharBuf(0)||vcharBuf(1)||vcharBuf(2)||vcharBuf(3)||vcharBuf(4)||vcharBuf(5)||vcharBuf(6)||vcharBuf(7)||vcharBuf(8)||vcharBuf(9)||vcharBuf(10)||vcharBuf(11)||vcharBuf(12)||vcharBuf(13)||vcharBuf(14)||vcharBuf(15)||vcharBuf(16)||vcharBuf(17)||vcharBuf(18)||vcharBuf(19)||vcharBuf(20)||vcharBuf(21)||vcharBuf(22),
    :new.eventid, :new.lastupdate,
    :new.rulenum, :new.priority, :new.filtername);
    ELSIF vintCntr = 23 THEN
    insert into event_data@ncarsdb2
    (ids, ip_address, center,
    detect_date, port, filter,
    rawdata, eventid, lastupdate,
    rulenum, priority, filtername)
    values
    (:new.ids, :new.ip_address, :new.center,
    :new.detect_date, :new.port, :new.filter,
    vcharBuf(0)||vcharBuf(1)||vcharBuf(2)||vcharBuf(3)||vcharBuf(4)||vcharBuf(5)||vcharBuf(6)||vcharBuf(7)||vcharBuf(8)||vcharBuf(9)||vcharBuf(10)||vcharBuf(11)||vcharBuf(12)||vcharBuf(13)||vcharBuf(14)||vcharBuf(15)||vcharBuf(16)||vcharBuf(17)||vcharBuf(18)||vcharBuf(19)||vcharBuf(20)||vcharBuf(21)||vcharBuf(22)||vcharBuf(23),
    :new.eventid, :new.lastupdate,
    :new.rulenum, :new.priority, :new.filtername);
    ELSIF vintCntr = 24 THEN
    insert into event_data@ncarsdb2
    (ids, ip_address, center,
    detect_date, port, filter,
    rawdata, eventid, lastupdate,
    rulenum, priority, filtername)
    values
    (:new.ids, :new.ip_address, :new.center,
    :new.detect_date, :new.port, :new.filter,
    vcharBuf(0)||vcharBuf(1)||vcharBuf(2)||vcharBuf(3)||vcharBuf(4)||vcharBuf(5)||vcharBuf(6)||vcharBuf(7)||vcharBuf(8)||vcharBuf(9)||vcharBuf(10)||vcharBuf(11)||vcharBuf(12)||vcharBuf(13)||vcharBuf(14)||vcharBuf(15)||vcharBuf(16)||vcharBuf(17)||vcharBuf(18)||vcharBuf(19)||vcharBuf(20)||vcharBuf(21)||vcharBuf(22)||vcharBuf(23)||vcharBuf(24),
    :new.eventid, :new.lastupdate,
    :new.rulenum, :new.priority, :new.filtername);
    ELSIF vintCntr = 25 THEN
    insert into event_data@ncarsdb2
    (ids, ip_address, center,
    detect_date, port, filter,
    rawdata, eventid, lastupdate,
    rulenum, priority, filtername)
    values
    (:new.ids, :new.ip_address, :new.center,
    :new.detect_date, :new.port, :new.filter,
    vcharBuf(0)||vcharBuf(1)||vcharBuf(2)||vcharBuf(3)||vcharBuf(4)||vcharBuf(5)||vcharBuf(6)||vcharBuf(7)||vcharBuf(8)||vcharBuf(9)||vcharBuf(10)||vcharBuf(11)||vcharBuf(12)||vcharBuf(13)||vcharBuf(14)||vcharBuf(15)||vcharBuf(16)||vcharBuf(17)||vcharBuf(18)||vcharBuf(19)||vcharBuf(20)||vcharBuf(21)||vcharBuf(22)||vcharBuf(23)||vcharBuf(24)||vcharBuf(25),
    :new.eventid, :new.lastupdate,
    :new.rulenum, :new.priority, :new.filtername);
    ELSIF vintCntr = 26 THEN
    insert into event_data@ncarsdb2
    (ids, ip_address, center,
    detect_date, port, filter,
    rawdata, eventid, lastupdate,
    rulenum, priority, filtername)
    values
    (:new.ids, :new.ip_address, :new.center,
    :new.detect_date, :new.port, :new.filter,
    vcharBuf(0)||vcharBuf(1)||vcharBuf(2)||vcharBuf(3)||vcharBuf(4)||vcharBuf(5)||vcharBuf(6)||vcharBuf(7)||vcharBuf(8)||vcharBuf(9)||vcharBuf(10)||vcharBuf(11)||vcharBuf(12)||vcharBuf(13)||vcharBuf(14)||vcharBuf(15)||vcharBuf(16)||vcharBuf(17)||vcharBuf(18)||vcharBuf(19)||vcharBuf(20)||vcharBuf(21)||vcharBuf(22)||vcharBuf(23)||vcharBuf(24)||vcharBuf(25)||vcharBuf(26),
    :new.eventid, :new.lastupdate,
    :new.rulenum, :new.priority, :new.filtername);
    ELSIF vintCntr = 27 THEN
    insert into event_data@ncarsdb2
    (ids, ip_address, center,
    detect_date, port, filter,
    rawdata, eventid, lastupdate,
    rulenum, priority, filtername)
    values
    (:new.ids, :new.ip_address, :new.center,
    :new.detect_date, :new.port, :new.filter,
    vcharBuf(0)||vcharBuf(1)||vcharBuf(2)||vcharBuf(3)||vcharBuf(4)||vcharBuf(5)||vcharBuf(6)||vcharBuf(7)||vcharBuf(8)||vcharBuf(9)||vcharBuf(10)||vcharBuf(11)||vcharBuf(12)||vcharBuf(13)||vcharBuf(14)||vcharBuf(15)||vcharBuf(16)||vcharBuf(17)||vcharBuf(18)||vcharBuf(19)||vcharBuf(20)||vcharBuf(21)||vcharBuf(22)||vcharBuf(23)||vcharBuf(24)||vcharBuf(25)||vcharBuf(26)||vcharBuf(27),
    :new.eventid, :new.lastupdate,
    :new.rulenum, :new.priority, :new.filtername);
    ELSIF vintCntr = 28 THEN
    insert into event_data@ncarsdb2
    (ids, ip_address, center,
    detect_date, port, filter,
    rawdata, eventid, lastupdate,
    rulenum, priority, filtername)
    values
    (:new.ids, :new.ip_address, :new.center,
    :new.detect_date, :new.port, :new.filter,
    vcharBuf(0)||vcharBuf(1)||vcharBuf(2)||vcharBuf(3)||vcharBuf(4)||vcharBuf(5)||vcharBuf(6)||vcharBuf(7)||vcharBuf(8)||vcharBuf(9)||vcharBuf(10)||vcharBuf(11)||vcharBuf(12)||vcharBuf(13)||vcharBuf(14)||vcharBuf(15)||vcharBuf(16)||vcharBuf(17)||vcharBuf(18)||vcharBuf(19)||vcharBuf(20)||vcharBuf(21)||vcharBuf(22)||vcharBuf(23)||vcharBuf(24)||vcharBuf(25)||vcharBuf(26)||vcharBuf(27)||vcharBuf(28),
    :new.eventid, :new.lastupdate,
    :new.rulenum, :new.priority, :new.filtername);
    ELSIF vintCntr = 29 THEN
    insert into event_data@ncarsdb2
    (ids, ip_address, center,
    detect_date, port, filter,
    rawdata, eventid, lastupdate,
    rulenum, priority, filtername)
    values
    (:new.ids, :new.ip_address, :new.center,
    :new.detect_date, :new.port, :new.filter,
    vcharBuf(0)||vcharBuf(1)||vcharBuf(2)||vcharBuf(3)||vcharBuf(4)||vcharBuf(5)||vcharBuf(6)||vcharBuf(7)||vcharBuf(8)||vcharBuf(9)||vcharBuf(10)||vcharBuf(11)||vcharBuf(12)||vcharBuf(13)||vcharBuf(14)||vcharBuf(15)||vcharBuf(16)||vcharBuf(17)||vcharBuf(18)||vcharBuf(19)||vcharBuf(20)||vcharBuf(21)||vcharBuf(22)||vcharBuf(23)||vcharBuf(24)||vcharBuf(25)||vcharBuf(26)||vcharBuf(27)||vcharBuf(28)||vcharBuf(29),
    :new.eventid, :new.lastupdate,
    :new.rulenum, :new.priority, :new.filtername);
    ELSIF vintCntr = 30 THEN
    insert into event_data@ncarsdb2
    (ids, ip_address, center,
    detect_date, port, filter,
    rawdata, eventid, lastupdate,
    rulenum, priority, filtername)
    values
    (:new.ids, :new.ip_address, :new.center,
    :new.detect_date, :new.port, :new.filter,
    vcharBuf(0)||vcharBuf(1)||vcharBuf(2)||vcharBuf(3)||vcharBuf(4)||vcharBuf(5)||vcharBuf(6)||vcharBuf(7)||vcharBuf(8)||vcharBuf(9)||vcharBuf(10)||vcharBuf(11)||vcharBuf(12)||vcharBuf(13)||vcharBuf(14)||vcharBuf(15)||vcharBuf(16)||vcharBuf(17)||vcharBuf(18)||vcharBuf(19)||vcharBuf(20)||vcharBuf(21)||vcharBuf(22)||vcharBuf(23)||vcharBuf(24)||vcharBuf(25)||vcharBuf(26)||vcharBuf(27)||vcharBuf(28)||vcharBuf(29)||vcharBuf(30),
    :new.eventid, :new.lastupdate,
    :new.rulenum, :new.priority, :new.filtername);
    ELSIF vintCntr = 31 THEN
    insert into event_data@ncarsdb2
    (ids, ip_address, center,
    detect_date, port, filter,
    rawdata, eventid, lastupdate,
    rulenum, priority, filtername)
    values
    (:new.ids, :new.ip_address, :new.center,
    :new.detect_date, :new.port, :new.filter,
    vcharBuf(0)||vcharBuf(1)||vcharBuf(2)||vcharBuf(3)||vcharBuf(4)||vcharBuf(5)||vcharBuf(6)||vcharBuf(7)||vcharBuf(8)||vcharBuf(9)||vcharBuf(10)||vcharBuf(11)||vcharBuf(12)||vcharBuf(13)||vcharBuf(14)||vcharBuf(15)||vcharBuf(16)||vcharBuf(17)||vcharBuf(18)||vcharBuf(19)||vcharBuf(20)||vcharBuf(21)||vcharBuf(22)||vcharBuf(23)||vcharBuf(24)||vcharBuf(25)||vcharBuf(26)||vcharBuf(27)||vcharBuf(28)||vcharBuf(29)||vcharBuf(30)||vcharBuf(31),
    :new.eventid, :new.lastupdate,
    :new.rulenum, :new.priority, :new.filtername);
    ELSIF vintCntr = 32 THEN
    insert into event_data@ncarsdb2
    (ids, ip_address, center,
    detect_date, port, filter,
    rawdata, eventid, lastupdate,
    rulenum, priority, filtername)
    values
    (:new.ids, :new.ip_address, :new.center,
    :new.detect_date, :new.port, :new.filter,
    vcharBuf(0)||vcharBuf(1)||vcharBuf(2)||vcharBuf(3)||vcharBuf(4)||vcharBuf(5)||vcharBuf(6)||vcharBuf(7)||vcharBuf(8)||vcharBuf(9)||vcharBuf(10)||vcharBuf(11)||vcharBuf(12)||vcharBuf(13)||vcharBuf(14)||vcharBuf(15)||vcharBuf(16)||vcharBuf(17)||vcharBuf(18)||vcharBuf(19)||vcharBuf(20)||vcharBuf(21)||vcharBuf(22)||vcharBuf(23)||vcharBuf(24)||vcharBuf(25)||vcharBuf(26)||vcharBuf(27)||vcharBuf(28)||vcharBuf(29)||vcharBuf(30)||vcharBuf(31)||vcharBuf(32),
    :new.eventid, :new.lastupdate,
    :new.rulenum, :new.priority, :new.filtername);
    ELSE
    insert into ncars.trigger_events
    (dt, ip, id, ival1, ival2, cval1, cval2)
    values
    (sysdate, :new.ip_address, :new.eventid, vintCntr,
    vintTotallength, 'COPYUP', 'EVENT_DATA');
    END IF;
    EXCEPTION
    when others then
    vnumError := SQLCODE;
    vcharErrstr := SUBSTR(SQLERRM, 1, 200);
    insert into ncars.trigger_events
    (dt, ip, id, ival1, ival2, cval1, cval2)
    values
    (sysdate, :new.ip_address, :new.eventid, vintCntr,
    vnumError, 'COPYUP', vcharErrstr);
    END COPYUP;

    I aim to please any and all that wish to help. This is very similar to my original trigger. This trigger is constrained by the 32500 size.
    CREATE OR REPLACE TRIGGER COPYUP
    INSERT ON EVENT_DATA FOR EACH ROW
    DECLARE
    vcharBuf varchar2(32500);
    vintTotallength integer := 1;
    vclobVal clob;
    BEGIN
    select :new.rawdata into vclobVal from dual;
    vintTotallength := dbms_lob.getlength(vclobVal);
    dbms_lob.read(vclobVal, vintTotallength , 1, vcharBuf);
    insert into event_data@ncarsdb2
    (ids, ip_address, center,
    detect_date, port, filter,
    rawdata, eventid, lastupdate,
    rulenum, priority, filtername)
    values
    (:new.ids, :new.ip_address, :new.center,
    :new.detect_date, :new.port, :new.filter,
    vcharBuf,
    :new.eventid, :new.lastupdate,
    :new.rulenum, :new.priority, :new.filtername);
    END COPYUP;

  • Dw cs5 with existing wordpress site hosted on yahoo need help connecting to existing remote database

    I am having trouble establishing a database connection.  I can  connect with test databases but am having trouble using dreamweaver wtih  my existing wordpress website.  Am I able to use dreamweaver to edit  and live view my changes before uploading the changed files to my live  site?  Am I able to access my existing wordpress database with  dreaweaver?  I have imported it to my testing server/database but still  seem to be having trouble establishing a connection with it (think maybe  my folder hierarchy might be off).
    macintosh HD/Applications/MAMP/htdocs/nwm/wp/index.php
    "nwm" is the name of the folder that I have copied all of my site  files to and the folder I have dreamweaver pointing to.  "wp" is what I  have all of the wordpress files in (the ones I copied from my yahoo  server - including all my current theme files etc.)
    I am trying to put the info into the mysql connection dialog box:
    Connection Name: Testing (i am assuming this name is for my benefit only and doesn't actually matter)
    MySQL Server: mysql
    User Name: *****
    Password: *****
    Database: wp
    and am getting this message
    MySQL Error#: 2013
    Lost connection to MySQL server at 'reading initial communication packet', system error 61
    did some google seaches of the error.  Tried turning off the  firewall, and the advance tab allow mysql incoming  (there were 2 one  was allow one was not allow.  I changed both to allow)
    Cant really find anything on yahoo to help me out.  Looked in  phpmyadmin database named wp: wp_users to get the username and password  (which due to previous look for help - I think the password was  encrypted cuz it looked like a bunch of mumbo jumbo and am fairly  certain I know the correct password).
    Any help would be greatly appreciated!! I spent $50 on live chat  last night trying to resolve the issue only to find out at the end that  the guy really didn't understand my problem and doesn't have  dreamweaver.  I have also watched countless videos on Lynda.com and have  been thru forum after forum.  While this problem is only a couple weeks  old since I just got CS5.  I have been having trouble making any  headway learning php since I cant seem to make it past the set up  parts.  I have done the php / mysql essential training on lynda.com with  relative success except that I really dont want to work with any more  exercise files so I didn't go on to the beyond the basics. I recently  went thru most of the Dreamweaver CS5 and Wordpress 3. Also did the  first 4 chapters of Dreamweaver CS5 with PHP and MySQL. I need to start  integrating things into my live sites.  I am also trying to work my way  thru the learning php, mysql, javascript book by o'reily media by robin  nixon (as fun as reading a math text book) can't get thru it since I  can't relate any of it to my current sites/needs
    I am on MacBookPro OSX 10.6.6
    Installed MAMP to specification on all 20 tutorials I have tried including lynda.com
    Tested the testing server and is working
    Just installed dreamweaver cs5
    have been using wordpress online to create and edit posts (recently  upgraded to 3.? whatever the latest update was online which I believe  update the files on my yahoo server?)
    Have also installed wordpress on my computer (several times thru each tutorial trying to get this right.)
    Am I expecting the impossible?

    If wordpress controls it's own connection why am I unable to use the live view. I have synced the remote site to my local computer so all the files should be just as they are online with the exception of the DB which contains most of the content.
    I have done all of those steps.  I have even exported the database from inside internet phpmyadmin and imported into computer phpmyadmin.  When I hit live view I get one of couple of errors.
    1.  "One is that the dynamic related files could not be displayed due to an internal server error"
    At some point I was able to view some sample files inside dreamweaver.  But I would like to be able to view my real site files.  I was able to "connect" to the local databases (not the copy of my real one - I think that maybe that was because it is somehow nested inside another db an am going try to reimport to new location).  And then I changed the host/username/password trying to deal with the internal server error. Now instead I get the cannot connect to the database Error 2016 or whatever from the origianl post. Also, I am using yahoo if that matters and all I can find about what their server name is: mysql - is that correct?
    I have been thru this so many times with so many different tutorials I am losing track of what is what.
    2.  Can I access my remote database within dreamweaver? I do not want to create dummy files (seems to be a waste of time).  And while if it had worked exporting/importing a duplicate on to my computer would have satisfied me for a little while it also seems some what counter productive.  Since every post and page is different if I were doing a daily updates etc how would I be able to change the formating or design of them if I can't access the remote files.  Would I re- import everytime I want to work on it to get current database?
    I am trying to be clear.  I listed all the specs I could think as listed  in your "how to get help fast post" (yes I read that at least twice  too) of all of the steps and possible reasons for my problems.  I also  thought that the forum was on a seperate site so I didn't think it would  count as a duplicate.  I am frustrated to tears and am feeling  incredibly stupid that after all this time and all these tutorials yes  you are right I obviously am not understanding what is going on which is  why I am on this forum.

  • ORA-28150 when accessing data from a remote database

    Portal Version: Portal 3.0.9.8.0
    RDBMS Version: 8.1.6.3.0
    OS/Vers. Where Portal is Installed:: Solaris 2.6
    Error Number(s):: ORA-28150
    I have a problem with using a database link to access a table in
    a remote database. So long as the dblink uses explicit logins
    then everything works correctly. When the dblink does not have a
    username then I get the ORA-28150 message. The database link is
    always public. A synonym is created locally that points to a
    synonym in the remote database. I am using the same Oracle user
    in both databases. The Oracle portal lightweight user has this
    same Oracle user as its default schema. The contents of the
    remote table are always visible to sqlplus, both when the link
    has a username and when it doesn't have a username.
    All the databases involved are on the same version of Oracle.
    I'm not sure which Oracle login is being used to access the
    remote database, if my lightweight user has a database schema
    of 'xyz' then does portal use 'xyz' to access the remote
    database? I would be very grateful for any help or pointers that
    might help to solve this problem.
    James
    To further clarify this, both my local and remote databases
    schemas are owned by the same login.
    The remote table has a public synonym.
    The link is public but uses default rather than explicit logins.
    The local table has a public synonym that points to the remote
    synonym via the database link.
    If I change the link to have an explicit login then everything
    works correctly.
    I can view the data in the remote database with TOAD and with
    sqlplus even when the database link has default login rather
    than explicit login.
    This seems to point to Portal as being the culprit. Can anyone
    tell me whether default logins can be used across database links
    with portal?
    TIA
    James

    832019 wrote:
    One way to do this is by creating a database link and joining the two tables directly. But this option is ruled out. So please suggest me some way of doing this.Thus you MUST use two connection strings.
    Thus you are going to be either constructing some intricate SQL dynamically or you are going to be dragging a lot of data over the wire and doing an in memory search.
    Although realistically that is what the database link table would have done as well.
    Might be better to look at moving the table data from one database to the other. Depends on size of course.

  • How can I check a Remote Database is alive in a Stored Procedure

    Hi
    In a PL/SQL stored procedure, I do a select from a table on a remote database via the database link. There is a Loop around the select as it waits for a flag to be set on the remote table. However, on several occasions, while looping, the remote database has gone down and the procedure then fails with error:
    'Details ORA-02068: following severe error from ORA-02068: following severe error from 'Remote Database ' ORA-01033: ORACLE initialization or shutdown in progress ORA-06512: at "Current Database.Stored Procedure", line'
    Is it possible to trap this error and prevent the procedure from crashing?
    My current code is like:-
    LOOP     
    SELECT flag
    INTO v_flag
    FROM remote_table@remote_db;
         IF v_flag= 'OK'
         THEN
    < Run Oracle Warehouse Builder Process Flow >
         EXIT;
         ELSE dbms_lock.sleep(600);
         END IF;
    END LOOP;
    Any help with this would be appreciated.
    Thanks
    GB

    Hi Bernd
    Thanks for your help. If I do this, I think the procedure would continue onto the 'IF' statement. I am looking for a way of looping round and trying to run the select again before moving on.
    If I did something like
    LOOP --- Loop 1 ---
    LOOP --- Loop 2---
    BEGIN
    SELECT flag
    INTO v_flag
    FROM remote_table@remote_db;
    EXCEPTION WHEN OTHERS THEN NULL;
    END;
    -- Need to exit if no exception ---
    END LOOP;
    IF v_flag= 'OK'
    THEN
    < Run Oracle Warehouse Builder Process Flow >
    EXIT;
    ELSE dbms_lock.sleep(600);
    END IF;
    END LOOP;
    Is there a way of going back to the start of Loop 2 if there was an exception, otherwise EXIT and continue onto the 'IF' statement.

  • Unable to create publication item for remote database using db link

    The mobile repository is in instance A.
    I have to access and sync data from a table in remote database instance B.
    I have run the consolidator_rmt.sql script in instance B under schema_B. I have created a private fixed user db link in instance A under schema_A to access schema_B's tables. I then created a synonym test_B for table test_B in schema_B using the DB link.
    While creating publication item for test_B using MDW, the column list for test_B appears blank. Has anyone encountered this problem and what is the solution.
    Thanks for your help.
    Rosa.

    Hello Pruthvi ,
    See these threads
    Uninstalling MaxDB
    Work process Ended.
    Thanks
    Chandran

  • Replicating clobs and blobs in a remote database across dblink

    9iR2
    When creating a materialized view in a warehouse pointing to a remote table in an OLTP environment, I got this error when trying to replicate a table with 3 clobs.
    ORA-22992: cannot use LOB locators selected from remote tables
    So, how does Oracle recommend replicating Blobs and Clobs in a remote database/warehouse? Evidently using materialized views doesnt work.

    MV replication is obsolete.
    Move to 10gR2 and use Streams.

  • Oracle VPD on Remote database using DBLINk

    Hi All,
    How can i apply row level security on a table that is available in another database using DBlink
    we have two databases PDSSM and EVTA, and i would like to apply row level security on a table in EVTA from a schema in PDSSM using dblink. MXODSADM IS A SCHEMA IN EVTA AND MXEMBARGO IS A SCHEMA IN PDSSM. there is a dblink(EVTA.GMM.COM) between mxembargo and mxodsadm.
    begin
    dbms_rls.add_policy (
    object_schema => 'MXODSADM',
    object_name => 'vehicle_retail_sale',
    policy_name => ' MXEMBARGO_EVTA_POLICY',
    function_schema =>'MXEMBARGO',
    policy_type => dbms_rls.SHARED_CONTEXT_SENSITIVE,
    --policy_type => dbms_rls.STATIC,
    policy_function => ' MXEMBARGO_EVTA_POLICY.MXEMBARGO_EVTA_PREDICATE',
    statement_types => 'select, insert,update,delete',
    update_check => TRUE,
    enable => TRUE,
    static_policy => TRUE
    end;
    I am a complete Database person and i need to do this in my application, can anyone provide me how can i do this using dblink.

    wojpik wrote:
    hello
    I have one short question to you.
    Is that possible to create view at remote database using dblink? Following syntax returns error
    create view ViewName@DbLinkDame (ColumnName) as
    (select 1 from dual )
    "ORA-00905:missing keyword"
    Is that possible at all?
    And particulary - is that possible when remote database is MSSQL and I am using heterogeneous services?
    I really appreciate your help
    best regards
    Wojtek
    Edited by: wojpik on Oct 21, 2009 3:59 AMI doubt you would be able to fire any ddl through database link. You have to connect to remote database to run any ddl even if it is Oracle or some other database.
    Regards
    Anurag

  • Insert a blob in remote database using dblink

    i have a view (it has a BLOB column) from where i need to select the records. After selecting i need to insert it into a synonym in the remote database through a db link.
    if i execute the procedure i get error; ora-22992--cannot use LOB locators selected from remote table. My code is
    INSERT INTO [email protected]
    SELECT PID,RNO, PTYPE,blob_field
    FROM view;
    I dont wish to creat a temporary table and still wish to perform the above function.
    So is there any method to do this. I tried with DBMS_LOB.APPEND but it didnt work out. Any solution will be greatly appreciated.
    Thanks,
    -Nitin

    i have a view (it has a BLOB column) from where i need to select the records. After selecting i need to insert it into a synonym in the remote database through a db link.
    if i execute the procedure i get error; ora-22992--cannot use LOB locators selected from remote table. My code is
    INSERT INTO [email protected]
    SELECT PID,RNO, PTYPE,blob_field
    FROM view;
    I dont wish to creat a temporary table and still wish to perform the above function.
    So is there any method to do this. I tried with DBMS_LOB.APPEND but it didnt work out. Any solution will be greatly appreciated.
    Thanks,
    -Nitin

  • Inserting data in remote database with remote procedure

    Hi,
    I have a problem concerning inserting data in a remote database (10g) by using a remote procedure.
    I call the procedure from a 11g database just by doing:
    begin
    getlocalfilecontent@remoteserv(param)
    commit;
    end;
    And it wouldn't insert the data into the remote table.
    While when I execute the same procedure locally on that remote database (10g)
    It does insert the data I want.
    What could be causing the problem here, am I overseeing something?
    Edited by: user7634309 on 14-Aug-2009 02:14

    Already thanks for the fast replies
    The dblink works perfectly. I can select data etc with this dblink.
    The procedure on the remote database is the same.
    One other thing, when I execute the remote procedure on local database 2nd time I get the
    ORA-ERR: ORA-02041: client database did not begin a transaction.
    This could be fixed by doing a commit or rollback but still no inserting in remote table.
    So to sum it up:
    What doesn't work:(no inserting)
    On 11g server that calls remotely the procedure
    begin
    getlocalfilecontent@remoteserv(parameter);
    commit;
    end;
    What works(does insert)
    On 10g server calling the procedure locally
    begin
    getlocalfilecontent(param);
    commit;
    end;
    So everything is the same except on the 11g server I add the dblink spec behiind the procedurecall

Maybe you are looking for

  • User name and passwords autofill

    user name and passwords autofill only autofills the user name and not the password. Any ideas on how to change this so that passwords are also autofilled?

  • How to make the server respond with a popup?

    I want to make the server respond with a popup?my code is like this,but it does not work,why? <code> public class Welcome2      public static void main(String[] args)throws IOException           ServerSocket server = new ServerSocket(2222);          

  • Search functionality not working in Purchase order

    Hi all, We are using extended classic scenerio's .But we are unable to search the Purchase orders against status "order ,awaiting approval etc" However, we are able to search only "Status Held" PO's Could you please tell me the soultion for this. See

  • Adobe digital editions 4.0 has stopped working

    I keep getting the message "adobe digital editions 4.0 has stopped working".  The program then closes and I cannot view my books...by the way, I paid over $300 for this book too! I have a windows laptop, on windows 8. please help.

  • Cisco Prime collaboration 9.0 assurance OVI template link plz help!!

    Dear all, I wanted to downlaod Cisco Prime collaboration 9.0 assurance OVI template please provide me the link. I have the download access in cisco web site. Please provide me the link Please help !!!!!! Regards, Rebecca....!!!