Database operations

how can i insert or update or delete multiple rows from multiple tables ?

To erase multiple rows in a table, you can simply do the following:
com.sun.sql.rowset.CachedRowSetXImpl pkRowSet = new com.sun.sql.rowset.CachedRowSetXImpl();
try {
pkRowSet.setDataSourceName("java:comp/env/jdbc/express");
pkRowSet.setCommand("delete from cart where cart_id = " + cartid);
pkRowSet.execute();
pkRowSet.commit();
}catch(Exception e) {
error("Error fetching Max(cart_id)+1 : " + e.getMessage());
}finally {
pkRowSet.close();
This code is the action event of a button and it receives the parameter cartid which is the one that it will delete from the table, now, you can customize the sql query so that it deletes as many rows as you wish. If you want to do the same thing with more tables, you can create a function and send the name of the tables as parameters.
I hope it helps !!
Yesenia.

Similar Messages

  • Ifs-21030 Database operation timed out

    Hi,
    We have installed cmsdk 9.0.4.2.2 with oas10g 10.1.2.0.2. The application runs fine, but sometimes we got the following error:
    [AJPRequestHandler-ApplicationServerThread-6] ERROR cmsdk.CmsdkUtil - Error with gettting document
    oracle.ifs.common.IfsException: IFS-21030: Database operation timed out
    java.sql.SQLException: ORA-01013: user requested cancel of current operation.
    I have set the IFS.SERVICE.SESSION.DefaultSearchTimeoutPeriod, but it doesn't help. Normally the documents are displayed immediately, but when the error occurs, it can take 30 min or more. Mostly, but not always, the error occurs on monday morning, while getting the first or second document after the weekend in which the application is not used. Sometimes the first documents comes up immediately, and the second gives the error.
    Are the parameters, agents, sessions, .. to configure to avoid this problem?
    Can anyone help me with this?
    Regards,
    Els

    I forgot to mention that we use a webservice. This is the complete error from the OC4J instance, found in the <oracle home>\opmn\logs dir
    oracle.ifs.common.IfsException: IFS-21030: Database operation timed out
    java.sql.SQLException: ORA-01013: user requested cancel of current operation
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:137)
         at oracle.jdbc.driver.T2CConnection.checkError(T2CConnection.java:698)
         at oracle.jdbc.driver.T2CConnection.checkError(T2CConnection.java:630)
         at oracle.jdbc.driver.T2CPreparedStatement.doDefineExecuteFetch(T2CPreparedStatement.java:1142)
         at oracle.jdbc.driver.T2CPreparedStatement.execute_for_rows(T2CPreparedStatement.java:1010)
         at oracle.jdbc.driver.OracleStatement.execute_maybe_describe(OracleStatement.java:1022)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1109)
         at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:2932)
         at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:2973)
         at oracle.ifs.server.S_LibrarySession.executeQuery(S_LibrarySession.java:16561)
         at oracle.ifs.server.S_LibraryObjectSelector.findObjectById(S_LibraryObjectSelector.java:556)
         at oracle.ifs.server.S_LibraryObjectSelector.selectObjectById(S_LibraryObjectSelector.java:494)
         at oracle.ifs.server.S_LibrarySession.constructLibraryObjectData(S_LibrarySession.java:8024)
         at oracle.ifs.server.S_LibrarySession.getLibraryObjectData(S_LibrarySession.java:7811)
         at oracle.ifs.server.S_LibrarySession.getLibraryObject(S_LibrarySession.java:8283)
         at oracle.ifs.server.S_LibrarySession.getPublicObject(S_LibrarySession.java:8407)
         at oracle.ifs.server.S_LibrarySession.DMgetPublicObjectData(S_LibrarySession.java:8051)
         at oracle.ifs.beans.LibrarySession.DMgetPublicObjectData(LibrarySession.java:13209)
         at oracle.ifs.beans.LibrarySession.getPublicObject(LibrarySession.java:4944)
         at be.kindengezin.cmsdk.CmsdkUtil.getDocument(CmsdkUtil.java:74)
         at be.kindengezin.cmsdk.CmsdkUtil.getDocumentMimeType(CmsdkUtil.java:91)
         at be.kindengezin.cmsdk.content.CmsdkContentServlet.doGet(CmsdkContentServlet.java:41)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:824)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:224)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:133)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
         at java.lang.Thread.run(Thread.java:534)
    kind regards,
    Els

  • IFS-21030 Database Operation time out

    Hi everyone,
    I really need help with this one. I try to search for a folder with a certain value for a custom attribute. It ALWAYS takes a very long time, but some times it returns successfully and sometimes it gives me a "Database Operation timed out" IFSException.
    I tried to change the attribute setting to make it indexed, but it didn't help.
    I'm using Oracle Files 9.0.2 (which, I think uses CM SDK 9.0.3, or at least this is the jar I'm using on the client side).
    This doesn't happen with all folder queries, just the query where I use the
    FolderRestrictQualification.setMultiLevel(true)
    Can anyone help me with this?

    setMultiLevel(true) enables folder recursion, of course, which can be an expensive operation, depending on how many levels deep you need to go.
    how many subfolders (and documents) are we talking about here?
    .rich

  • How to improve perfomance in database operations

    In my programme i do some select, insert operations many time. so when i run my program with atlease 80000 customer data it takes 1 hrs to complete the task.
    So i switched to use threads. So i use n number of threads and gave a new connection to each thread and splited my customer data for each threads. so each thread contain 80000/n data.
    when i check the perfomance both (with and without thread) are equal
    so help me to improve the perfomance :)

    s friend. most of the time it invokes the database operations. i use addbatchs to execute the code. wait i will give the timelines,
    :AbstractRuleBasedScenario:run:test2---- is the time to execute the query
    :pool-1-thread-1:KYCScenarioTask:call:pool-1-thread-1---- is the time to run a thread
    with 1 thread
    01/04/07 10-33:pool-1-thread-1:AbstractRuleBasedScenario:run:test2 Time:::: 62
    01/04/07 10-33:pool-1-thread-1:AbstractRuleBasedScenario:run:test2 Time:::: 0
    01/04/07 10-33:pool-1-thread-1:KYCScenarioTask:call:pool-1-thread-1 ::: 94
    01/04/07 10-33:pool-1-thread-1:AbstractRuleBasedScenario:run:test2 Time:::: 63
    01/04/07 10-33:pool-1-thread-1:AbstractRuleBasedScenario:run:test2 Time:::: 31
    01/04/07 10-33:pool-1-thread-1:KYCScenarioTask:call:pool-1-thread-1 ::: 125
    01/04/07 10-33:pool-1-thread-1:AbstractRuleBasedScenario:run:test2 Time:::: 63
    01/04/07 10-33:pool-1-thread-1:AbstractRuleBasedScenario:run:test2 Time:::: 0
    01/04/07 10-33:pool-1-thread-1:KYCScenarioTask:call:pool-1-thread-1 ::: 109
    with 5 threads[
    01/04/07 10-29:pool-1-thread-3:AbstractRuleBasedScenario:run:test2 Time:::: 125
    01/04/07 10-29:pool-1-thread-1:AbstractRuleBasedScenario:run:test2 Time:::: 125
    01/04/07 10-29:pool-1-thread-2:AbstractRuleBasedScenario:run:test2 Time:::: 62
    01/04/07 10-29:pool-1-thread-2:KYCScenarioTask:call:pool-1-thread-2 ::: 266
    01/04/07 10-29:pool-1-thread-4:AbstractRuleBasedScenario:run:test2 Time:::: 32
    01/04/07 10-29:pool-1-thread-3:AbstractRuleBasedScenario:run:test2 Time:::: 63
    01/04/07 10-29:pool-1-thread-1:AbstractRuleBasedScenario:run:test2 Time:::: 47
    01/04/07 10-29:pool-1-thread-4:KYCScenarioTask:call:pool-1-thread-4 ::: 281
    01/04/07 10-29:pool-1-thread-3:KYCScenarioTask:call:pool-1-thread-3 ::: 312
    01/04/07 10-29:pool-1-thread-1:KYCScenarioTask:call:pool-1-thread-1 ::: 250

  • Oracle BR0973W Database operation alert warning

    Hello experts,
    I hope you can help me with the following:
    In transaction DB13 the checkdb job reports the following errors:
    BR0973W Database operation alert - level: WARNING, operation: sdvgirhz.dbp, time: 2007-05-14 15.46.27, condition: Last 'dbp' operation failed with rc = 4
    BR0973W Database operation alert - level: WARNING, operation: sduxubpz.tse, time: 2007-03-30 08.58.27, condition: Last 'tse' operation failed with rc = 4
    BR0973W Database operation alert - level: WARNING, operation: sduxuaou.dfa, time: 2007-03-30 08.46.40, condition: Last 'dfa' operation failed with rc = 2
    I would like to get rid of these messages in dbcheck but can't figure out how to do it.
    I searched the notes database, google and this forum and still couldn't find an answer.
    Some data regarding oracle and sap versions:
    SAP_ABA     700     0009     SAPKA70009     Cross-Application Component
    SAP_BASIS     700     0009     SAPKB70009     SAP Basis Component
    PI_BASIS     2005_1_700     0006     SAPKIPYJ76     PI_BASIS 2005_1_700
    ST-PI     2005_1_700     0003     SAPKITLQI3     SAP Solution Tools Plug-In
    SAP_BW     700     0006     SAPKW70006     SAP NetWeaver BI 7.0
    SAP_AP     700     0003     SAPKNA7003     SAP Application Platform
    BBPCRM     500     0003     SAPKU50003     BBPCRM
    ST-A/PI     01I_CRM500     0000          -     Application Servicetools for CRM 500
    Database system      ORACLE   
    Release              10.2.0.2.0
    Thanks in advance for helping.
    Regards
    Dirk Visser

    the operations mentioned were not succesfully done...check the corresponding logfiles
    -> dbp = alter database parameter (brspace)
    -> tse = extend tablespace (brspace)
    -> dfa = alter data file (brspace)
    GreetZ, AH

  • Database operations in JSP

    I am a java programmer but new to JSP and web site design.
    now am , designing a website for a bank in which I need to have database operations.from tutorials i see we can use beans or tag lib.
    which is the best in these 2?
    which is the simplest in these 2?
    and which one to select?
    is there any basic doc for this with step by step explanation?
    thank you for any help.
    joe

    sorry that was for the previous jsp. this is for the file i need.
    2007-04-09 09:46:52 StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception
    org.apache.jasper.JasperException: /dbquerySimple.jsp(8,5) Invalid standard action
         at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:39)
         at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:357)
         at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:81)
         at org.apache.jasper.compiler.Parser.parseStandardAction(Parser.java:1249)
         at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1559)
         at org.apache.jasper.compiler.Parser.parse(Parser.java:126)
         at org.apache.jasper.compiler.ParserController.doParse(ParserController.java:220)
         at org.apache.jasper.compiler.ParserController.parse(ParserController.java:101)
         at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:203)
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:422)
         at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:507)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:274)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
         at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:793)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:702)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:571)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:644)
         at java.lang.Thread.run(Thread.java:534)

  • Yellow status after "No database operations necessary, data unchanged"

    Hi,
    I am loading master data (full) and for some packages I get the message "No database operations necessary, data unchanged" the processing remains with status yellow (no "processing end" message comes for those packages). In the end, I get a red status because it times out.
    Has anyone encountered this problem before? Any idea appreciated
    Thanks!
    Andreea

    Hi,
    In case of master data, the update option for infoobject is overwrite. So if u are trying to load the same data again and again or if no changes are there in the new request at that time u may get this type of error. i am not sure about it. Check once more.
    Hope this helps u a lot.........
    <REMOVED BY ADMIN - DO NOT ASK FOR POINTS>
    Regards
    Ramakrishna Kamurthy
    Edited by: Craig Cmehil on Jul 17, 2008 9:24 AM

  • DB13 Check, Oracle BR0973W Database operation alert warning

    Dear all master and Gurus,
    when i run check DB process on DB13 it was completed with following errors. i've serched over googling, SDN, and others but couldnt get any exact answer.
    BR0973W Database operation alert - level: WARNING, operation: aeghclvm.dsv, time: 2011-07-09 13.35.38, condition: Last successful 'dsv' operation older than 10 days
    BR0973W Database operation alert - level: WARNING, operation: beghcgas.afd, time: 2011-07-09 12.30.18, condition: Last successful 'afd' operation older than 10 days
    BR0973W Database operation alert - level: WARNING, operation: beenppkm.aff, time: 2010-11-10 22.35.48, condition: Last successful 'aff' operation older than 10 days
    What is the meaning of dsv, afd , and aff?
    Should I ignore these warning?
    How to resolve ?
    Any advise is needed, Thanks
    Gustria Weka

    Hi
    When a backup of database or archive log is triggered, it writes a log file and the extension is based on the type of backup executed
    Names of the BRBACKUP Detail Logs
    http://help.sap.com/saphelp_nw70ehp1/helpdata/EN/0d/d30ec54a0c11d182b80000e829fbfe/content.htm
    Names of the BRARCHIVE Detail Logs
    http://help.sap.com/saphelp_nw70ehp1/helpdata/EN/0d/d30ec54a0c11d182b80000e829fbfe/frameset.htm
    Hope this helps you.
    Regards,
    SBK

  • What  type of  database  operations  effectd  with  Unicode  and  non  unic

    Hi  Friends,
       I want  to  know what  type of  database  operations  effects  with  Unicode  and  non Unicode  Programing  .
    Thanks,
    Ravi Kumar Mukkera

    Hi ,
    Check these links .
    http://help.sap.com/saphelp_nw04/helpdata/en/62/3f2cadb35311d5993800508b6b8b11/frameset.htm
    https://www.sdn.sap.com/irj/sdn/go/portal/prtoot/docs/library/uuid/ff99cb90-0201-0010-e389

  • Clients hang problem using database operations

    Hi there,
    I am using Oracle 9i Release 2 (9.2.0.1.0) as a database and have 10g Developer Suite (9.0.4) for Windows ...
    I am having strange problem with the clients like if one user runs my application it has no problem when more then 1 user tries to run the application after certain time period they get hang on any database operations like QUERY, INSERTION OR DELETION...one long cursor on status bar moves right and left constantly and nothing happens...can u tell me whats the problem and what are the settings which can make it better...i am on a very embarrasing state at this moment.
    Plus i wud also want to know is 9i release 2 (9.2.0.1.0) version is stable? or should I move on to 10g relase 10.1 database alongwith my developer suite? ..thanks

    Please consider asking your question in Developer Tools forum
    http://forums.oracle.com/forums/category.jspa?categoryID=19
    Just because of this hanging you cannot assume that 9i is not stable.

  • Database operations are slow on motorazr

    Hi guys,
    Database operation like setRecord and addRecord takes too much time in motorzr. Sometimes it take time in minutes which makes application unusable.
    Is it the problem with the motorazr only because i haven't encountered this problem in any other phone.
    why does setRecord take more time then addRecord?
    Please help.

    hi Sm,
    Check this below note for backup using brdb6brt
    326691 - DB6: 'BACKUP' & 'REDIRECTED RESTORE' of a DB2 UDB EEE DB
    in DB13 there is an option -> Archive inactive log files to Device. Use this to backup into a disk
    you can mount the USB dirve as a drive or a file system and take the backup to this location by specifying them while taking the backup.
    You may also check this link for DB2 backup and restore
    http://www.devx.com/gethelpon/10MinuteSolution/18039/0/page/1
    Regards,
    chandru

  • BR0973W Database operation alert in DB13 - XI Production

    Dear All
    I am getting following error on DB13 on our XI Prd system..i serch ove the web & SDN but couldnt get any valid reason for this ..can some one assist me in resolving this warning ..
    "BR0973W Database operation alert - level: WARNING, operation: sechrknv.dfa, time: 2010-01-08 11.33.19, condition: Last successful 'dfa' operat
    BR0973W Database operation alert - level: WARNING, operation: secehvio.tse, time: 2009-12-21 15.56.50, condition: Last 'tse' operation failed
    BR0973W Database operation alert - level: WARNING, operation: secdecqf.tse, time: 2009-12-15 14.51.01, condition: Last successful 'tse' operat"
    Regards
    Buddhike

    Hi,
    BR0973W Database operation alert - level: WARNING, operation: sechrknv.dfa, time: 2010-01-08 11.33.19, condition: Last successful 'dfa' operat
    BR0973W Database operation alert - level: WARNING, operation: secdecqf.tse, time: 2009-12-15 14.51.01, condition: Last successful 'tse' operat"
    You are getting some warning messages for different functions which are already performed.
    such as,
    dfa     Alter data file
    tse      Extend tablespace
    which are done by BRSPACE program.
    You can ignore these warnigns.
    If you check trx DB14, click 'Function ID's you will see where each one comes from.
    Run, Clean Up Logs Job from DB13.
    And Please Weekly Schedule/Run DB13 T-Code and Run Job - Clean Up Logs.
    Using the cleanup parameters in the Initialization Profile init<DBSID>.sap you can determine how old the objects are before they are deleted.
    The check conditions are specified in the control table DBCHECKORA. You can change these with transaction DB17
    Regards,
    Bhavik G. Shroff

  • Ogg-00552 database operation failed

    Please help!!!!
    I’m getting the below error:
    GGSCI (WIN-EG6QL92CF51) 1> dblogin sourcedb HR
    Successfully logged into database.
    GGSCI (WIN-EG6QL92CF51) 2> add trandata dbo.emp1
    2012-03-11 21:00:44 WARNING OGG-00552 Database operation failed: SQLExecDirect
    error: EXECUTE sys.sp_cdc_enable_db
    if 0 = (select st.is_tracked_by_cdc from sys.tables as st where st.object_id = o
    bject_id('dbo.emp1'))
    AND 0 = (select st.is_replicated from sys.tables as st where st.object_id = o
    bject_id('dbo.emp1'))
    BEGIN
    DECLARE @capture_instance sysname = N'OracleGG_' + cast(object_id('dbo.emp1') as
    sysname)
    CREATE TABLE #ggsTabKeys (db sysname, name sysname, owner sysname, column_name s
    ysname, key_seq int, pk_name sysname)
    INSERT INTO #ggsTabKeys EXEC sp_pkeys 'emp1', 'dbo'
    IF 0 = (SELECT COUNT(*) FROM #ggsTabKeys)
    BEGIN
    INSERT INTO #ggsTabKeys
    SELECT TOP (1) DB_NAME(), '', '', name, 1, '' FROM sys.columns sc
    WHERE sc.object_id = OBJECT_ID('dbo.emp1')
    AND is_computed = 0
    AND max_length > 0
    ORDER BY max_length
    END
    IF 0 = (select COUNT(*) from #ggsTabKeys)
    BEGIN
    INSERT INTO #ggsTabKeys
    SELECT TOP (1) DB_NAME(), '', '', name, 1, '' FROM sys.columns sc
    WHERE sc.object_id = OBJECT_ID('dbo.emp1')
    AND is_computed = 0
    AND max_length > 0
    ORDER BY max_length
    END
    DECLARE @cols NVARCHAR(max)
    SELECT @cols = STUFF(( SELECT
    ',' + QUOTENAME( t.column_name)
    FROM #ggsTabKeys AS t
    FOR XML PATH('')
    ), 1, 1, '')
    execute sys.sp_cdc_enable_table
    @source_schema = N'dbo'
    , @source_name = N'emp1'
    , @role_name = NULL
    , @captured_column_list = @cols
    , @capture_instance = @capture_instance
    IF EXISTS(SELECT OBJECT_ID('tempdb..#ggsTabKeys'))
    BEGIN
    DROP TABLE #ggsTabKeys
    END
    end
    . ODBC error: SQLSTATE 37000 native database error 22988. [Microsoft][ODBC SQL S
    erver Driver][SQL Server]This instance of SQL Server is the Express Edition with
    Advanced Services (64-bit). Change data capture is only available in the Enterp
    rise, Developer, and Enterprise Evaluation editions.
    2012-03-11 21:00:44 WARNING OGG-00782 Error in changing transaction logging fo
    r table: 'dbo.emp1'.
    ERROR: ODBC Error occurred. See event log for details..
    GGSCI (WIN-EG6QL92CF51) 3>
    Caused?
    I use sql server not express edition
    Edited by: 891982 on 11 มี.ค. 2555, 8:09 น.

    thank you
    At present:I install Developer Edition
    but
    GGSCI (WIN-EG6QL92CF51) 2> add trandata emp
    2012-03-14 15:19:28 WARNING OGG-00552 Database operation failed: SQLExecDirect
    error: if not exists ( SELECT * FROM master.dbo.sysdatabases WHERE
    name = N'HR' collate database_default AND (category & 1) = 1)begin exe
    c master..sp_replicationdboption @dbname = N'HR' , @optname = N'publish' ,
    @value = N'true'
    end
    if not exists (select * from syspublications where name = N'GoldenGate HR Publis
    her')
    begin
    exec sp_addpublication @publication = N'GoldenGate HR Publisher', @description =
    N'GoldenGate Publisher for [HR] Database', @sync_method = N'native', @retention
    = 0, @allow_push = N'true', @allow_pull = N'true', @allow_anonymous = N'false',
    @enabled_for_internet = N'false', @snapshot_in_defaultfolder = N'true', @compre
    ss_snapshot = N'false', @ftp_port = 21, @ftp_login = N'anonymous', @allow_subscr
    iption_copy = N'false', @add_to_active_directory = N'false', @repl_freq = N'cont
    inuous', @status = N'active', @independent_agent = N'true', @immediate_sync = N'
    false', @allow_sync_tran = N'false', @autogen_sync_procs = N'false', @allow_queu
    ed_tran = N'false', @allow_dts = N'false', @replicate_ddl = 1, @allow_initialize
    frombackup = N'true', @enabled_for_p2p = N'false', @enabled_for_het_sub = N'fa
    lse'
    end. ODBC error: SQLSTATE 37000 native database error 20028. [Microsoft][ODBC SQ
    L Server Driver][SQL Server]The Distributor has not been installed correctly. Co
    uld not enable database for publishing.
    2012-03-14 15:19:28 WARNING OGG-00782 Error in changing transaction logging fo
    r table: 'dbo.emp'.
    ERROR: ODBC Error occurred. See event log for details..
    GGSCI (WIN-EG6QL92CF51) 3>
    I don't know about?
    I suspect about Control Panel -> Administrative Tools -> Data Sources (ODBC)  select ?
    I select Name: HR and select Server:(local) select Finish
    thankyou stevencallan
    use sql server 2005 Developer Edition in window server 2008 R2
    but edit error in the at present: OGG-00987 Oracle GoldenGate Command Interpreter for ODBC: GGSCI command (Administrator): add trandata emp.
    Edited by: 891982 on 14 มี.ค. 2555, 0:54 น.
    Edited by: 891982 on 14 มี.ค. 2555, 1:20 น.
    Edited by: 891982 on 14 มี.ค. 2555, 2:34 น.

  • Start extract msext:  OGG-00551  Database operation failed

    Hi all,
    GG Sqlserver2008 to Oracle11gR2.
    I have configured the above setup.
    Initial LOAD was successful, using the following prms
    Source:(inext.prm)
    =====
    SOURCEISTABLE
    SOURCEDB HR, userid sa, password sa
    RMTHOST dtc-pc, MGRPORT 7809
    RMTFILE d:\GGora\dirdat\ex
    TABLE hrschema.emp;
    Target: (inload.prm)
    =====
    SPECIALRUN
    END RUNTIME
    USERID gg_user, PASSWORD welcome1
    EXTFILE d:\ggora\dirdat\ex
    SOURCEDEFS d:\ggora\dirdef\emp.def
    MAP hrschema.emp, TARGET gg_user.emp;
    Then I proceed to LIVE DATA CAPTURE. But my extract process got error? maybe the  prm is not correct?
    Source: (msext.prm)
    ===============
    EXTRACT MSEXT
    TRANLOGOPTIONS MANAGESECONDARYTRUNCATIONPOINT
    SOURCEDB HR, userid sa, password sa
    RMTHOST dtc-pc, MGRPORT 7809
    RMTTRAIL d:\ggora\dirdat\ms
    TABLE HRSCHEMA.EMP;
    Target: (msrep.prm)
    ==============
    REPLICAT MSREP
    USERID gg_user, PASSWORD welcome1
    SOURCEDEFS d:\ggora\dirdef\emp.def
    MAP hrschema.emp, TARGET gg_user.emp;
    I got error on the source EXTRACT MSEXT
    2013-06-21 23:35:01  ERROR   OGG-00551  Database operation failed: Couldn't connect to HR. ODBC error: SQLSTATE 37000 native database error 4060. [Microsoft][ODBC SQL Server Driver][SQL Server]Cannot open database "emp" requested by the login. The login failed.
    2013-06-21 23:35:01  ERROR   OGG-01668  PROCESS ABENDING.
    ggserr.log
    =======
    2013-06-21 23:31:18  INFO    OGG-00983  Oracle GoldenGate Manager for SQL Server, mgr.prm:  Manager started (port 7808).
    2013-06-21 23:32:37  INFO    OGG-00987  Oracle GoldenGate Command Interpreter for SQL Server:  GGSCI command (DTC): start manager.
    2013-06-21 23:35:00  INFO    OGG-00987  Oracle GoldenGate Command Interpreter for SQL Server:  GGSCI command (DTC): start extract msext.
    2013-06-21 23:35:00  INFO    OGG-00963  Oracle GoldenGate Manager for SQL Server, mgr.prm:  Command received from GGSCI on host DTC-PC.domain:51376 (START EXTRACT MSEXT ).
    2013-06-21 23:35:00  INFO    OGG-00975  Oracle GoldenGate Manager for SQL Server, mgr.prm:  EXTRACT MSEXT starting.
    2013-06-21 23:35:01  INFO    OGG-00992  Oracle GoldenGate Capture for SQL Server, MSEXT.prm:  EXTRACT MSEXT starting.
    2013-06-21 23:35:01  INFO    OGG-03035  Oracle GoldenGate Capture for SQL Server, MSEXT.prm:  Operating system character set identified as windows-1252. Locale: en_PH, LC_ALL:.
    2013-06-21 23:35:01  ERROR   OGG-00551  Oracle GoldenGate Capture for SQL Server, MSEXT.prm:  Database operation failed: Couldn't connect to HR. ODBC error: SQLSTATE 37000 native database error 4060. [Microsoft][ODBC SQL Server Driver][SQL Server]Cannot open database "emp" requested by the login. The login failed.
    2013-06-21 23:35:01  ERROR   OGG-01668  Oracle GoldenGate Capture for SQL Server, MSEXT.prm:  PROCESS ABENDING.
    =========
    I can login to HR using ggsci
    =====================
    GGSCI (DTC-PC) 8> dblogin sourcedb hr, userid sa, password sa
    2013-06-22 00:23:26  INFO    OGG-03036  Database character set identified as windows-1252. Locale: en_US.
    2013-06-22 00:23:26  INFO    OGG-03037  Session character set identified as windows-1252.
    Successfully logged into database.
    Please help...
    Thanks a lot,
    zxy

    Hi all,
    For the succeeding LIVE CAPTURE LOADING:
    I resolved my issue by using the ODBC System DSN  "Sqlserver native client" driver.
    It failed if I use the ODBC System DSN "Sqlserver" driver
    On the other hand the INITIAL LOAD, is good with the reverse.
    It is ok with the DSN "Sqlserver" driver only and not the native client driver.
    Thanks a lot,

  • Several processes write to the SGA during database operation.

    Greeting to all ;
    From following official document  says  Memory Architecture
    Several processes write to the SGA during database operation.
      I thinks DBWn writes updated information from dbbc to data files.
       Server process is fetching required information from data files.
    Several processes write to the SGA during database operation !
    - What are they ? 

    8f953842-815b-4d8c-833d-f2a3dd51e602 wrote:
    Thanks sybrand_b
    Several processes write to the SGA during database operation.
    So your answer is  client process for DML opearations. Ok , i got it.
    From the same link ,  Memory Architecture
    The server and background processes do NOT reside within the SGA, but exist in a separate memory space.
            Partially i can understand above statement. Here  i have little confusion also - please clarify.
    SGA + background process = INSTANCE.
    Server process is only available when user is intracting with database.
    From official document , bgprocess , server process exist in a separate memory space  - 
    -  if so ,  what is  name of the  memory area ?
        Thanks in advance ..
    Which memory area?  The one holding the SGA?  The one holding the executing code for any one of the background processes?  The one holding the code for any of the several server processes?
    Go here: Oracle Database Instance
    and take a look at figure 13-1 and its surrounding discussion.

  • Database operation was cancelled...

    hi ,
    when i am executing particular query from my application side it shows the following error
    *" The application timed out waiting for results from the query. The corresponding database operation was cancelled"*.
    can anyone suggest help me out of this... thanks in advance..
    regards
    mathesh

    Welcome to the forums !
    This forum is for questions about Oracle documentation. Pl post in the appropriate database forum - http://forums.oracle.com/forums/category.jspa?categoryID=18
    Srini

Maybe you are looking for

  • Default value in a variable - current month

    Hi! I have a infoobject called CREATE_MONTH. My queries divides the result based on this month. If there are several month it summarize the result. The CREAT_MONTH is a free characteristics, and not defined in the main table. I want the current month

  • The Comparison of IIS on Windows Server 2012 R2 and Websphere application Server on R6 or AS400

    Customer is looking for the internet application solution, and they would like to know the difference/ comparison of IIS on Windows Server and WAS on Linux.  I know it's hard to answer, but is there any data/document/information so that we could conv

  • What's a good level to record voiceover?

    Hi, I'm completely new to audio production, and need to record a voiceover. I've got my mic hooked up, and am getting a level of some sort. What I'm wondering is, what's a good level? I mean, I understand that the closer to 0 dB I can get, the better

  • Problems with @Id in EJB 3.0

    I am still learning how to use EJB 3.0s completely. I have found that in order to use a sequence you set up your ejb like such @Id(generate=SEQUENCE,generator="SEQ_ADRESSE_GEN") @SequenceGenerator(name="SDS_PAIR_RESULTS_SEQ_GEN", sequenceName="SDS_PA

  • Updating the field "relevant for POD" for customer in XD03 in R/3

    Hi All, Is there a way to update the field "relevant for POD" for newly created customer on XD03 in R/3 from CRM system. My requirement is customers will be created in CRM by interface from mainframe(legacy) system. Whenever a  new customer is create