What is a \par for in PL/SQL?

Hello...
I received some code from a vendor to create a function in my database and I have never seen PL/SQL code have a "\par". What is a \par? What does it do? I'm use to running PL/SQL blocks without these? I'm stumped! Please help!
Thx!
Ken
CREATE OR REPLACE function tsp_FindAllChildren(record_id$ int, rend_ids$ varchar2, where_clause$ varchar2)\par
return tspkg_types_int_int_str_tbl\par
as\par
--usage:\par
--select * from table (cast (tsp_FindAllChildren(1, '1, 2', '1') as tspkg_types_int_int_str_tbl));\par
ret$ tspkg_types_int_int_str_tbl := tspkg_types_int_int_str_tbl();\par
file_checksum$ varchar2(256) := '';\par
query$ varchar2(4000) := '';\par
crs$ int := 0;\par
count$ int := 0;\par
rec_id$ int := 0;\par
rend_id$ int := 0;\par
begin\par
query$ := 'select distinct d.record_id, d.rend_id, d.file_checksum from (select distinct d.record_id, d.rend_id, d.file_checksum from doc_renditions d where d.file_checksum in (select g.file_checksum from cov_geometry g where g.record_id = ' || ltrim(record_id$) || ' and g.file_checksum is not null and g.geometry_type = ''DOCUMENT'')'\par
|| ' union select distinct d.record_id, d.rend_id, d.file_checksum from doc_renditions d where d.record_id in (select max(v.record_id) from ed_versions v, cov_geometry g where v.file_checksum = g.file_checksum and g.record_id = ' || ltrim(record_id$) || ' and g.file_checksum is not null and g.geometry_type = ''DOCUMENT'' group by v.file_checksum) ) d';\par
if (where_clause$ is not null) then\par
query$ := query$ || ', editorial e';\par
query$ := query$ || ' where (' || where_clause$ || ') and d.record_id = e.record_id';\par
if (rend_ids$ is not null) then\par
query$ := query$ || ' and d.rend_id in(' || rend_ids$ || ')';\par
end if;\par
else\par
if (rend_ids$ is not null) then\par
query$ := query$ || ' where d.rend_id in(' || rend_ids$ || ')';\par
end if;\par
end if;\par
query$ := query$ || ' order by d.file_checksum, d.record_id, d.rend_id';\par
crs$:= dbms_sql.open_cursor;\par
dbms_sql.parse(crs$, query$, dbms_sql.v7);\par
dbms_sql.define_column(crs$, 1, rec_id$);\par
dbms_sql.define_column(crs$, 2, rend_id$);\par
dbms_sql.define_column(crs$, 3, file_checksum$, 32);\par
count$ := dbms_sql.execute(crs$);\par
while (0 < dbms_sql.fetch_rows(crs$)) loop\par
dbms_sql.column_value(crs$, 1, rec_id$);\par
dbms_sql.column_value(crs$, 2, rend_id$);\par
dbms_sql.column_value(crs$, 3, file_checksum$);\par
ret$.extend;\par
ret$(ret$.count) := tspkg_types_int_int_str(rec_id$, rend_id$, file_checksum$);\par
end loop;\par
dbms_sql.close_cursor(crs$);\par
return ret$;\par
end;\par
}

Maybe a cut and paste from a RTF document?
From Rich Text Format:
A backslash (\) starts an RTF control code. The \par control code indicates the end of a paragraph, and \b switches to a bold typeface.

Similar Messages

  • What is the url for executing PL/SQL

    what is the URL for 9i http pl/sql routines?
    http://machine:port/?????????
    thnx
    endre

    Hi endre,
    Are you looking for the URL for executing Oracle9i PSP routines?
    -shefali

  • What is the url for executing PL/SQL via 9i http

    what is the URL for 9i http server pl/sql routines that I just compiled? I don't run 9ias just the 9i http server
    http://machine:port/?????????/procedure_name
    thnx
    endre

    do this if you are still having problemd
    CREATE AND SETUP NEW USER
    The second step is to create an application user that will
    own the code for this example. Connect to SQL*PLUS as a user with
    DBA rights, and execute the following commands:connect
    SQL> CREATE USER user IDENTIFIED by user;
    SQL> GRANT CONNECT, RESOURCE TO user;
    CONFIGURE DAD IN THE PL/SQL GATEWAY
    The third step is to create a new DAD.
    Enter the PL/SQL gateway configuration menu. The generic address to the
    page is
    http://<machin:port/pls/admin_/gateway.htm
    The is specified in your plsql.conf file. By default the address
    will be
    http://..:/pls/admin_/gateway.htm
    (Replace ..: with the valid entry for your
    configuration, e.g. www.acme.com:8080).
    Click on the link 'Gateway Database Access Descriptor Settings' to access
    your DAD settings. Then press the link 'Add for WebDB 2.x configuration'
    to create a new DAD. Enter the following values:
    Parameter Value
    Database Access Descriptor Name give name
    Schema Name the user you created
    Oracle User Name the user you created
    Oracle Password the password of the user
    Oracle Connect String <- found in your
    tnsnames.ora
    Document Table                    documents
    Document Access Procedure user.package.procedure
    Extensions to be uploaded as LONG RAW
    Leave the other parameters as they are. If you are not using an 8i database
    or need to use the LONG RAW datatype for
    some reason, you can place an '*' in the "Extensions to be uploaded as LONG
    RAW" field. You can also limit this to
    specific file name extensions such as jpg or pdf by entering the extensions
    and using a comma to separate the
    values. Click the OK button to save the DAD configuration.
    Hope this helps

  • What is the format for the DATE date type in SQL

    I just wanted to know what the format is for the Date type in Oracle 10g SQL. I need to be able to specify to the second, but not further than that. Thanks in advance.

    Hi,
    DATE format is configurable and can be easily changed. I suggest the function TO_DATE. For example:
    to_date('10-20-2008', 'MM-DD-YYYY')
    to_date('20/12/08 20:15', 'dd/mm/yyyy hh24:mi')Regards,
    Miguel

  • What is the process for SQL Server 2005 patch update

    hi,
    i have 2 production SQL Server2005  Database servers in cluster ,
    what is the process for applying patches.
    Saidireddy

    In 2005 you can do it in two ways...
    Method 1 :
    With SQL Server 2005,
    when you start installing cluster service pack (or hotfix), it must be launched on the active node(node
    that hosts the instance). When installing the Setup will launch simultaneously  "remote silence" on all passive nodes. All nodes in the cluster containing the SQL Server instance are updated in the same time.
    Method 2: First you can install in passive node then you can install in the active node, In this way you can save your down time ( If you start in the active node it will check in the passive, and if its installed already then it skips that
    and start applying in the active node ), but most of the DBA's follows only first method because they may not aware of this or just they follows Microsoft common method. 
    SQL 2008 and Later....
    1.  Apply the hotfix on pasive node N2
    2.  Reboot the passive node N2
    3.  Failover on SQL resource : the passive node become the active node
    4.  Apply the hotfix on the passive node N1
    5.  Reboot the passive node N1
    Raju Rasagounder Sr MSSQL DBA

  • What is the diffrence between package javax.sql and java.sql

    Is javax designed for J2EE?
    And when to use package javax?

    Hi,
    What is the diffrence between package javax.sql and java.sql?The JDBC 2.0 & above API is comprised of two packages:
    1.The java.sql package and
    2.The javax.sql package.
    java.sql provides features mostly related to client
    side database functionalities where as the javax.sql
    package, which adds server-side capabilities.
    You automatically get both packages when you download the JavaTM 2 Platform, Standard Edition, Version 1.4 (J2SETM) or the JavaTM 2, Platform Enterprise Edition, Version 1.3 (J2EETM).
    For further information on this please visit our website at http://java.sun.com/j2se/1.3/docs/guide/jdbc/index.html
    Hope this helps.
    Good Luck.
    Gayam.Srinivasa Reddy
    Developer Technical Support
    Sun Micro Systems
    http://www.sun.com/developers/support/

  • Creating tabs for a single SQL report type region

    I would like to find a way to use tabs in a single SQL report type region. The problem I have is that there are too many columns to be displayed so the report looks very cluttered. I would like to find a way to assign say columns 1 - 5 to tab 1, 6-10 to tab 2 etc so the user can find the columns they need by simply clicking on the various tabs without having to execute the query again.
    I have looked at JQuery tabs but that seems to only be applicable to more or less unrelated regions. I tried to create different regions using the same query with different columns and that kind of works, but the regions don't stay in sync if say the user change the order for column 2 in tab 1, when they click on tab 2 everything displays in a different order.
    Another wrinkle is that this is an updatable report so some of the columns are updatable.
    I also looked at the hide / display column solution which is described in a few threads and that may also sort of work, but it is also not quite what I am looking for.
    Any help is greatly appreciated

    Does anybody know if this can be accomplished using APEX? What I am really looking for is very similar to an old fashioned client / server screen developed using say Oracle Forms. Consider an order line screen where say columns line number, SKU and SKU description is to the left of the tabs so these columns are visible no matter which tab is active. Then the first tab has say pricing information including UOM, quantity, list price, unit selling price, price list. The next tab has say customer information including customer number, name, bill to and ship to addresses. the next tab has say shipping information with say the warehouse, shipping instructions and shipping method.

  • BPM - Par for each

    I am having some issues with my Par for Each block in my BPM.
    My scenario is File(CSV format) --> BPM --> IDOC.
    The BPM will receive the file and it will convert the incoming message into IDOC and in the Parforeach Block I am sending the IDOC to R/3.
    Currently in my file I am having around 1300 Records.
    I am seeing the following error message in the Message Monitoring
    Work Item  000000015782 :Object Flowitem method cannot be executed
    Error When Processing Node 00000000023 (Parforeach index 00000000)
    Parforeach  table element contains  1268 entries
    Error when creating  a component  of type "dynamischer paraller  abschint"
    Error When Processing Node 00000000023 (Parforeach index 00000000)
    Error during result  processing of work  item  00000015784
    Question
    Whats the problem ? Previously when I ran for few records it ran fine? so the Parforeach is unable to handle the load? Where to increase the limit.
    thanks for your help.

    Hi Jenni,
    Check this...
    A ParForEach is recommended if:
    ·        The number of parallel processing branches is less than 999 (the multiline table element that is processed in the ParForEach contains less than 999 lines).
    http://help.sap.com/saphelp_nw04/helpdata/en/ce/bb2c421f3fda2ce10000000a1550b0/content.htm
    Regards
    Anand

  • What is the wrong in this PL/SQL  block

    Hi a...
    Can you please tell what is the wrong in this pl/sql block.
    declare
    TYPE TYP_NT_NUM IS TABLE OF NUMBER ;
    v_tab TYP_NT_NUM := TYP_NT_NUM();
    TYPE uname is VARRAY(30) of varchar2(100) ;
    usr uname := uname ( 'u1','u2','u3','u4' );
    TYPE pwd is VARRAY(30) of varchar2(100) ;
    psw pwd := pwd('p1','p2','p3','p4');
    x number(10):=0;
    Cursor fcid IS Select distinct FC_ID From FCMASTER ;
    Begin
    Open fcid ;
    --for ii in usr.first .. usr.last loop
         Loop
              Fetch fcid Into x ;
              Exit When fcid%NOTFOUND ;
              v_tab(fcid%ROWCOUNT) := x ;
         End loop ;
         For iii IN v_tab.FIRST .. v_tab.LAST Loop
              dbms_output.put_line(v_tab(iii).FC_ID) ;
              End loop ;
    End loop; End of outer loop
    End;
    The error is
    Error
    [row:28,col:36] ORA-06550: line 28, column 36:
    PLS-00487: Invalid reference to variable 'NUMBER'
    ORA-06550: line 28, column 4:
    PL/SQL: Statement ignored
    Thanks in advance,
    Pal

    v_tab(iii).FC_ID
    declare
      type typ_nt_num is table of number;
      v_tab typ_nt_num;
    begin
      select distinct object_id bulk collect into v_tab from all_objects where rownum <= 10;
      for i in 1 .. v_tab.count loop
        dbms_output.put_line(v_tab(i)) ;
      end loop ;
    end;
    /

  • What are the announcements for renting VPS?

    What are the announcements for renting VPS? For details, understand VPS and make the choice of rental; for Taiwan VPS and Hong Kong VPS, without records, unlimited contents, wider range, and more efficient experience. Your server will show its excellence with the advantages.
    Most station agents become less inclined to virtual hosting, for national space, domain name records are needed, which waste the time; for overseas hosting such as Korea hosting, US hosting, no records, but slower speed than national space; therefore, more and more station agents prefer servers, but because the price of servers are too high, they turn their focus on VPS.
    The following are the announcements:
    1.Open remote desktop lander:
    Start-run-mstsc or start-procedure-nearby-remote desktop connect
    2.Several conditions for account halt:
    First, client side login cause account halt
    Second, certain account quits the remote control in midway when it runs routine
    Third, certain routine is restricted by synchronous operation of system administrator.
    3. Not install the third party firewall
    If you need firewall, please use windows firewall, the third party firewall in VPS will cause system collapse and data loss, the system automatically obtains the newest windows patches and install itself, which do not require human operation. Installing system patches in VPS sometimes will heavily lead to VPS collapse and data loss.
    Do not modify remote desktop port.
    Because of the specialty of VPS system, default remote desktop port is 3389, do not modify randomly, or the remote connection will be out of work.
    4. Except some special conditions that user registration is needed for certain procedure, when the remote connection has been close down, do not forget logout user to save memory resource, and prevent the loading connection next time, if it happens, reboot VPS.
    5. VPS has been set with relative security when it was paid, with high security. It suggests that do not open firewall randomly, if you open it by your own, the following ports should be opened: 21(FTP), 3389(remote connection), 80(website http), 3306(MySQL), 1433(SQL Server). Timely check whether there is suspicious account or system log, download 360 safety guard to avoid these files and process.
    6. Try not to modify registry hand-actuated, ensure the reboot of VPS. Modify remote ports please add the modified port in firewall first, and then reboot.
    7.Modify IIS installation files, backup these files, and then modify them with the software that can keep the file layout, prevent these files from destroying IIS.
    8.Website service of VPS and FTP service of IIS are default to open hand-actuated, set Web Publishing Service as automatically if you are station agent. If you often use FTP service of IIS, please set FTP Publishing Service as automatically, i.e. reboot it automatically. If you use serv-u, tick all the system service terms. In the terms of security and resource consumption , it suggests that those users who seldom use FTP do not set it as automatically.

    Hi there
    "So for ALL the apps, the annual monthly fee is £46.88, but you can rent occasionally for £70.32 pm.... ?" Correct
    £17.58 single app plan requires an annual commit - it's £27.34 for the month-to-month plan without annual commit.
    Thanks
    Bev

  • Java API for running entire ".sql" files on a remote DB ( mySQL or Oracle)?

    Hi,
    Would anyone happen to know if there's a java API for executing entire ".sql" files (containing several different SQL commands), on a remote database server ?
    It's enough if the API works with MySQL and/or Oracle.
    Just to demonstrate what i'm looking for:
    Suppose you've created sql file "c:/test.sql" with several script lines:
    -- test.sql:
    insert into TABLE1 values(3,3);
    insert into TABLE1 values(5,5);
    create table TABLE2 (name VARCHER) ENGINE innoDB; -- MYSQL specific
    Then the java API should look something like:
    // Dummy java code:
    String driver="com.mysql.jdbc.Driver";
    String url= "jdbc:mysql://localhost:3306/myDb";
    SomeAPI.executeScriptFile( "c:/test.sql", driver, url);
    Thanks.

    No such a API, but it's easy to parse all sqls in a file, then run those command:
    For instance:
    import java.sql.*;
    import java.util.Properties;
    /* A demo show how to load some sql statements. */
    public class testSQL {
    private final static Object[] getSQLStatements(java.util.Vector v) {
    Object[] statements = new Object[v.size()];
    Object temp;
    for (int i = 0; i < v.size(); i++) {
    temp = v.elementAt(i);
    if (temp instanceof java.util.Vector)
    statements[i] = getSQLStatements( (java.util.Vector) temp);
    else
    statements[i] = temp;
    return statements;
    public final static Object[] getSQLStatements(String sqlFile) throws java.
    io.IOException {
    java.util.Vector v = new java.util.Vector(1000);
    try {
    java.io.BufferedReader br = new java.io.BufferedReader(new java.io.
    FileReader(sqlFile));
    java.util.Vector batchs = new java.util.Vector(10);
    String temp;
    while ( (temp = br.readLine()) != null) {
    temp = temp.trim();
    if (temp.length() == 0)
    continue;
    switch (temp.charAt(0)) {
    case '*':
    case '"':
    case '\'':
    // System.out.println(temp);
    break; //Ignore any line which begin with the above character
    case '#': //Used to begin a new sql statement
    if (batchs.size() > 0) {
    v.addElement(getSQLStatements(batchs));
    batchs.removeAllElements();
    break;
    case 'S':
    case 's':
    case '?':
    if (batchs.size() > 0) {
    v.addElement(getSQLStatements(batchs));
    batchs.removeAllElements();
    v.addElement(temp);
    break;
    case '!': //Use it to get a large number of simple update statements
    if (batchs.size() > 0) {
    v.addElement(getSQLStatements(batchs));
    batchs.removeAllElements();
    String part1 = temp.substring(1);
    String part2 = br.readLine();
    for (int i = -2890; i < 1388; i += 39)
    batchs.addElement(part1 + i + part2);
    for (int i = 1890; i < 2388; i += 53) {
    batchs.addElement(part1 + i + part2);
    batchs.addElement(part1 + i + part2);
    for (int i = 4320; i > 4268; i--) {
    batchs.addElement(part1 + i + part2);
    batchs.addElement(part1 + i + part2);
    for (int i = 9389; i > 7388; i -= 83)
    batchs.addElement(part1 + i + part2);
    v.addElement(getSQLStatements(batchs));
    batchs.removeAllElements();
    break;
    default:
    batchs.addElement(temp);
    break;
    if (batchs.size() > 0) {
    v.addElement(getSQLStatements(batchs));
    batchs.removeAllElements();
    br.close();
    br = null;
    catch (java.io.FileNotFoundException fnfe) {
    v.addElement(sqlFile); //sqlFile is a sql command, not a file Name
    Object[] statements = new Object[v.size()];
    for (int i = 0; i < v.size(); i++)
    statements[i] = v.elementAt(i);
    return statements;
    public static void main(String argv[]) {
    try {
    String url;
    Object[] statements;
    switch (argv.length) {
    case 0: //Use it for the simplest test
    case 1:
    url = "jdbc:dbf:/.";
    if (argv.length == 0) {
    statements = new String[1];
    statements[0] = "select * from test";
    else
    statements = argv;
    break;
    case 2:
    url = argv[0];
    statements = getSQLStatements(argv[1]);
    break;
    default:
    throw new Exception(
    "Syntax Error: java testSQL url sqlfile");
    Class.forName("com.hxtt.sql.dbf.DBFDriver").newInstance();
    //Please see Connecting to the Database section of Chapter 2. Installation in Development Document
    Properties properties = new Properties();
    Connection con = DriverManager.getConnection(url, properties);
    Statement stmt = con.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,
    ResultSet.CONCUR_READ_ONLY);
    //Statement stmt = con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_UPDATABLE);
    // stmt.setMaxRows(0);
    stmt.setFetchSize(10);
    final boolean serializeFlag = false;//A test switch to serialize/deserialize the resultSet
    ResultSet rs;
    for (int i = 0; i < statements.length; i++) {
    if (statements[i] instanceof java.lang.String) {
    String temp = (java.lang.String) statements;
    switch (temp.charAt(0)) {
    case 'S':
    case 's':
    case '?':
    System.out.println(temp);
    rs = stmt.executeQuery(temp);
    if (serializeFlag) {
    // serialize the resultSet
    try {
    java.io.FileOutputStream fileOutputStream = new
    java.io.FileOutputStream("testrs.tmp");
    java.io.ObjectOutputStream
    objectOutputStream = new java.io.
    ObjectOutputStream(fileOutputStream);
    objectOutputStream.writeObject(rs);
    objectOutputStream.flush();
    objectOutputStream.close();
    fileOutputStream.close();
    catch (Exception e) {
    System.out.println(e);
    e.printStackTrace();
    System.exit(1);
    rs.close(); //Let the CONCUR_UPDATABLE resultSet release its open files at once.
    rs = null;
    // deserialize the resultSet
    try {
    java.io.FileInputStream fileInputStream = new
    java.io.FileInputStream("testrs.tmp");
    java.io.ObjectInputStream objectInputStream = new
    java.io.ObjectInputStream(
    fileInputStream);
    rs = (ResultSet) objectInputStream.
    readObject();
    objectInputStream.close();
    fileInputStream.close();
    catch (Exception e) {
    System.out.println(e);
    e.printStackTrace();
    System.exit(1);
    ResultSetMetaData resultSetMetaData = rs.
    getMetaData();
    int iNumCols = resultSetMetaData.getColumnCount();
    for (int j = 1; j <= iNumCols; j++) {
    // System.out.println(resultSetMetaData.getColumnName(j));
    /* System.out.println(resultSetMetaData.getColumnType(j));
    System.out.println(resultSetMetaData.getColumnDisplaySize(j));
    System.out.println(resultSetMetaData.getPrecision(j));
    System.out.println(resultSetMetaData.getScale(j));
    System.out.println(resultSetMetaData.
    getColumnLabel(j)
    + " " +
    resultSetMetaData.getColumnTypeName(j));
    Object colval;
    rs.beforeFirst();
    long ncount = 0;
    while (rs.next()) {
    // System.out.print(rs.rowDeleted()+" ");
    ncount++;
    for (int j = 1; j <= iNumCols; j++) {
    colval = rs.getObject(j);
    System.out.print(colval + " ");
    System.out.println();
    rs.close(); //Let the resultSet release its open tables at once.
    rs = null;
    System.out.println(
    "The total row number of resultset: " + ncount);
    System.out.println();
    break;
    default:
    int updateCount = stmt.executeUpdate(temp);
    System.out.println(temp + " : " + updateCount);
    System.out.println();
    else if (statements[i] instanceof java.lang.Object[]) {
    int[] updateCounts;
    Object[] temp = (java.lang.Object[]) statements[i];
    try {
    for (int j = 0; j < temp.length; j++){
    System.out.println( temp[j]);
    stmt.addBatch( (java.lang.String) temp[j]);
    updateCounts = stmt.executeBatch();
    for (int j = 0; j < temp.length; j++)
    System.out.println((j+1)+":"+temp[j]);
    for (int j = 0; j < updateCounts.length; j++)
    System.out.println((j+1)+":" +updateCounts[j]);
    catch (java.sql.BatchUpdateException e) {
    updateCounts = e.getUpdateCounts();
    for (int j = 0; j < updateCounts.length; j++)
    System.out.println((j+1)+":"+updateCounts[j]);
    java.sql.SQLException sqle = e;
    do {
    System.out.println(sqle.getMessage());
    System.out.println("Error Code:" +
    sqle.getErrorCode());
    System.out.println("SQL State:" + sqle.getSQLState());
    sqle.printStackTrace();
    while ( (sqle = sqle.getNextException()) != null);
    catch (java.sql.SQLException sqle) {
    do {
    System.out.println(sqle.getMessage());
    System.out.println("Error Code:" +
    sqle.getErrorCode());
    System.out.println("SQL State:" + sqle.getSQLState());
    sqle.printStackTrace();
    while ( (sqle = sqle.getNextException()) != null);
    stmt.clearBatch();
    System.out.println();
    stmt.close();
    con.close();
    catch (SQLException sqle) {
    do {
    System.out.println(sqle.getMessage());
    System.out.println("Error Code:" + sqle.getErrorCode());
    System.out.println("SQL State:" + sqle.getSQLState());
    sqle.printStackTrace();
    while ( (sqle = sqle.getNextException()) != null);
    catch (Exception e) {
    System.out.println(e.getMessage());
    e.printStackTrace();

  • CDC for Oracle in SQL 2012 not writing updates

    Hello...
    I have set up a CDC for Oracle Service and Instance for use with SQL 2012.  After the instance was started, I inserted six rows of data into my Oracle table and a few minutes later, it looks like the changes were picked up by the service.
    The instance status page contains the following information:
    Status = Green Checkmark
    Detailed Status = PROCESSING
    Last Transaction Timestamp = 7/22/2014 12:11:56 PM
    Last Change Timestamp = 7/22/2014 11:58:35 AM
    Transaction Log Head Change Number = 0x0A2C1C...
    Transaction Log Tail Change Number = 0x0A2C1C... (not the same value as the head)
    Current Change Number = 0x0A2C1C...
    Active Transactions = 1
    Staged Transactions = 0
    Completed Transactions = 0
    Written Changes = 0
    Read Changes = 6
    It looks like the six rows have been read, but they are not being written to cdc.CDC_TEST_TABLE_CT on my SQL 2012 database.
    I exported the diagnostic data using the "Collect Diagnostics" link, but there are no errors in the log.  Is there a primer for how to read the results of the diagnostics?
    I had the following error earlier today:
    "ORACDC517E:Oracle Call Intreface (OCI) method failed: ORA-01291: missing logfile 
    ORA-06512: at "SYS.DBMS_LOGMNR"
    But that error was resolved when my Oracle account was granted DBA and "execute_catalog_role" permissions.
    The account being used for the CDC Service and Instance has dbo rights on the SQL Server.
    Does anyone have an idea what the problem could be?
    Any help would be greatly appreciated.
    Thanks!

    Arthur, thank you for responding.  I appreciate it! :)
    I followed the instructions from Rakesh Parida's video on Technet.  Below are the individual steps I followed for creating the CDC Service and Instance.
    CDC Service Setup:
    I made sure that supplemental logging was enabled on my Oracle server.  I also made sure that my Windows account had DBA and "execute_catalog_role" permissions on the Oracle database.
    From the CDC Service Config MMC I ran Action>Prepare SQL Server which created the MSXDBCDC database.
    I then ran Action>New Service and entered the following information:
    Service name: OracleCDCService1
    Service Account: "This Account" radio button with my Windows username and password information
    Associated SQL Server: <My SQL 2012 Server>
    Authentication: Windows authentication
    I also provided a CDC Service master password.
    CDC Instance Setup:
    Connected to <My SQL 2012 Server> using the CDC Designer MMC
    Went through the steps of creating the Oracle CDC Instance
    Oracle CDC Instance Name = CDC_TEST_SOURCE
    Connected to my Oracle DB using Windows authentication
    Selected a single table that I wanted to try CDC on and left CDC Gating Role blank
    Ran the Oracle Logging script that enables table logging and supplemental log groups on the Oracle DB
    Ran the Status Check step and all passed
    Finished the wizard and started the instance
    A few minutes after the instance was started I added six records to the table in Oracle.
    Please let me know if you need more info.
    Thanks!

  • What index is suitable for a table with no unique columns and no primary key

    alpha
    beta 
    gamma
    col1
    col2
    col3
    100
    1
    -1
    a
    b
    c
    100
    1
    -2
    d
    e
    f
    101
    1
    -2
    t
    t
    y
    102
    2
    1
    j
    k
    l
    Sample data above  and below is the dataype for each one of them
    alpha datatype- string 
    beta datatype-integer
    gamma datatype-integer
    col1,col2,col3 are all string datatypes. 
    Note:columns are not unique and we would be using alpha,beta,gamma to uniquely identify a record .Now as you see my sample data this is in a table which doesnt have index .I would like to have a index created covering these columns (alpha,beta,gamma) .I
    beleive that creating clustered index having covering columns will be better.
    What would you recommend the index type should be here in this case.Say data volume is 1 milion records and we always use the alpha,beta,gamma columns when we filiter or query records 
    what index is suitable for a table with no unique columns and primary key?
    col1
    col2
    col3
    Mudassar

    Many thanks for your explanation .
    When I tried querying using the below query on my heap table the sql server suggested to create NON CLUSTERED INDEX INCLUDING columns    ,[beta],[gamma] ,[col1] 
     ,[col2]     ,[col3]
    SELECT [alpha]
          ,[beta]
          ,[gamma]
          ,[col1]
          ,[col2]
          ,[col3]
      FROM [TEST].[dbo].[Test]
    where   [alpha]='10100'
    My question is why it didn't suggest Clustered INDEX and chose NON clustered index ?
    Mudassar

  • BPM Message Split in Block par for Each: Just last message is sent n-times

    Hello everybody,
    we got BPM with a message split. In a par-for-each block the message is send.
    Asuming I have 3 lines in the multiline container element, I can see in SXMB_MONI that that message is send 3 times.
    The error is, that 3 times the last message is send.
    <u>Sample Error:</u>
    Message incoming in BPM:
    <root>
      <mymessage>M1</mymessage>
      <mymessage>M2</mymessage>
      <mymessage>M3</mymessage>
    </root>
    Messages outgoing:
    <root>
      <mymessage><b>M3</b></mymessage>
    </root>
    <root>
      <mymessage><b>M3</b></mymessage>
    </root>
    <root>
      <mymessage><b>M3</b></mymessage>
    </root>
    --> As you can see, just the last message M3 is send 3 times!
    What can I do?
    Regards Mario

    If I take the payload from SXMB_MONI an try to test, I get an syntax error when I copy&paste the data into the message mapping.
    This is very strange, because
    a) the message mapping is done on basis of imported IDOCs!
    b) the BPM works without throwing a mapping error
    So what should I do?

  • Shell script for below pl/sql script dbms_file_transfer

    Please let me know how tt write the shell script for below pl/sql script dbms_file_transfer it is
    I have trasfer the files from asm into filesystem .
    it is working . but i have to put in the loop
    begin
    dbms_file_transfer.copy_file(
    source_directory_object => 'src',
    source_file_name => 'ncsn',
    destination_directory_object => 'dest',
    destination_file_name => 'ncsn');
    end;
    Edited by: user8680248 on 27/10/2009 20:55

    user8680248 wrote:
    Please let me know how tt write the shell script for below pl/sql script dbms_file_transfer it is
    I have trasfer the files from asm into filesystem .
    it is working . but i have to put in the loop
    begin
    dbms_file_transfer.copy_file(
    source_directory_object => 'src',
    source_file_name => 'ncsn',
    destination_directory_object => 'dest',
    destination_file_name => 'ncsn');
    end;What database version?
    What are you trying to do exactly?
    It's working but you have to put it in a loop. Fine, what's the problem you are having?
    begin
      loop
        exit when ... whatever the exit condition is ...
        dbms_file_transfer.copy_file(
          source_directory_object => 'src',
          source_file_name => 'ncsn',
          destination_directory_object => 'dest',
          destination_file_name => 'ncsn');
      end loop;
    end;

Maybe you are looking for

  • TRANSACTION VARIANT

    Dear All, I am facing a problem while doing the transaction variant. It is as follows - With the T.Code SHD0, i started creating a transaction variant and named as ZMM01 for the transaction MM01. After clicking the create(F5), it went to the MM01 tra

  • You know that whole .desktop file security scare?

    It goes something like this: 1) Open a malicious email attachment or go to a website with malicious javascript or whatever... 2) A program is downloaded and executed with your permissions 3) It edits ~/.local/applications/synaptic.desktop or whatever

  • If condtion checking in doGet()

    Hello techies, Iam very new to servlets. My problem is I want take 2 arguments from htm file. If i did not give the arguments from html file it will show " uhave to pass the following arguments" Iam able to get connection with the database server and

  • Music album multiple added in albumlist

    Hello I have following problem: I add a music album to IPhone (23 songs). Then I get 23 times the whole album added in Ipod > Albums (23 x 23 songs). The albumlist is spamed over Sometimes only 2 times (2 x 23) or 4 (4 x 23)times... In ITunes the alb

  • Images on FSG reports

    Hi, We have more than 20 companies in Oracle Financials. For a specific FSG report, we have multiple templates (XML Publisher) because the logo of the company changes for each company. How could we use a single template, where the company logo would