Queries from Client regarding Database design

1. Is it advisable to use IDENTITY [(seed, increment)] to generate the sequence number in a table for concurrent user in Microsoft SQL Server 2012?
2. Is it advisable to use SCOPE_IDENTITY () to get the latest identity number during concurrent user in Microsoft SQL Server 2012? 
3. Kindly help us select the best solution from the following for creating reference  in Microsoft SQL Server 2012
Primary key integer data type with IDENTITY [ (seed , increment) ]  to generate a sequence of number
Code/ Composite primary key varchar data type
4. Kindly help us to select best solution from the following  to store hierarchy data
Single table with ID and parent ID as a column
Multiple table for each entity and a mapping table

>2. Is it advisable to use SCOPE_IDENTITY () to get the latest identity number during concurrent user in Microsoft SQL Server 2012? 
Here is an alternate solution:
http://www.sqlusa.com/bestpractices2005/outputidentitycapture/
Can you post the DDL for the tables?  Thanks.
Kalman Toth Database & OLAP Architect
SQL Server 2014 Design & Programming
New Book / Kindle: Exam 70-461 Bootcamp: Querying Microsoft SQL Server 2012

Similar Messages

  • SQL queries from a Citadel database

    We are retrieving data with third-party package SQL queries from a Citadel database. Certain queries for some object members will not return data, but the SQL search application software returns an "error". An analysis of the error from the SQL end does not find problem on SQL side. I suspect corruption of Citadel database. The link to database is good, as most tags do return a value as expected. 
    This problem occurred at the time of re-location of the database to a replacement computer.  Any ideas on how to fix such a problem?

    Can you give an example of the "bad" SQL statement and a good one?
    Ryan Shi
    National Instruments

  • Copying Queries from client to client

    Hi all,
    I have built a query within the QEA (test) client using SQ01/SQ02 and now the same query has been requested in the PEA (production) client. My question is can i copy queries across clients or does it have to be re-built?
    Cheers
    Jim

    Yes .You can move from One client to another client by copying the query program which generates once you built query in the background and that can captured in TR .
    however , you can also have option download and upload the same in PRD.
    for downloading and uploading abap query follow steps given below
    DOWNLOAD ABAP QUERY
    1. Go to SQ02 .
    Select Environment -> Query Areas..
    Select Standard Area (Client specific)
    (If Query does not exist in Standard Area then You will have to copy that Query From Global Area to Standard Area.)
    For Coping Query From Global To standard first select that query from list.
    2)Now select Environment-> Transports
    3)In next screen select Copy Global to standard radio button.
    Check Overwriting allowed (only with import/upload/copy)
    Remove Check for Test Run
    Select Transport InfoSets and queries radio button
    Fill Infoset and Query with corresponding names.
    4)Now Press Execute button.Copy Log will be displayed.
    Now Query exist in Global & Standard Area.
    5) Go to SQ02 .
    Select Environment -> Query Areas..
    Select Standard Area (Client specific)
    Select Infoset from list.
    6) Select Environment -> Transports
    7)Select Download radio button
    Check Overwriting allowed (only with import/upload/copy)
    Remove Check for Test Run
    Select Transport InfoSets and queries radio button
    Fill Infoset and Query with corresponding names.
    8) Click on Execute button
    Now It will ask you to save file.save it.
    Now Open another system where you want to make copy of that infoset.
    In the same way transport the User Groups using the Transport User GRoups radio button.
    UPLOAD ABAP QUERY
    1. Go to SQ02 .
    Select Environment -> Query Areas
    Select Standard Area (Client specific)
    2. Select Environment -> Transports
    3)Select Upload radio button
    Check Overwriting allowed (only with import/upload/copy)
    Remove Check for Test Run
    Select Transport Info Sets and queries radio button
    Fill Infoset and Query with corresponding names.
    4) Click on Execute button.
    It will ask you for the place for uploading file.
    Select that place (from where you downloaded file).
    Now infoset & query is uploaded.Log will be displayed.
    in the same way download the user group also.
    5)Go to SQ02
    Select Environment -> Query Areas
    Select Standard Area (Client specific)
    SQ02 -> Infoset -> Generate.
    Enter Yes.
    6)Go to SQ01
    Select Environment -> Query Areas
    Select Standard Area (Client specific)
    Enter your Query Name.
    7)Click on Execute button
    Regards
    JH

  • Problems connecting from Client to Database

    I've run into a strange situation,
    We are running Oracle 8.1.7 installed on Sco?!? In the past everyone has just opened a netterm connection from windows 2000 to the box that the database exists on and run SQL Plus from within that window. They do not use any of the client side Oracle tools.
    I just started working here and was trying to explain the benefits of some of the existing Oracle tools that are out there. I installed Discoverer along with some other tools and was having troubles connecting. I uninstalled everything and started with just SQL Plus. The following is my tnsnames entry for the database:
    oradev =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS =
    (PROTOCOL = TCP)
    (Host = ORADEV)
    (Port = 1521)
    (CONNECT_DATA = (SID = DVCX)
    and the error that I get when I try to connect is:
    ORA-12514: Message 12514 not found; product=RDBMS80; facility=ORA
    The strange thing is that I installed JDeveloper and told it to start a SQL Plus session and it works fine. It is pointing at the exact same executable that I tried running from the start menu. C:\ORACLE\806\BIN\PLUS80W.EXE
    I tried running this executable frmo the Dos prompt using this:
    C:\ORACLE\806\BIN\PLUS80W.EXE user/passwd@oradev:1521:DVCX
    and I get this error message:
    ORA-06401: NETCMN: invalid driver designator
    Does anyone have any ideas? It would be really nice to be able to show these guys why they spent so much money to buy Oracle. Right now they're only using it to store data.
    Any responses would be appreciated. If I don't know the answer to your questino I can ask around and find it.
    Thanks,
    Chris S.

    Before I do that,
    Since it's not really my database to hack around with, why would the everything work through JDeveloper or through a netterm session to the Sco box? I'm not familiar with stopping and starting the listener so I will have to figure out how to do that as well.
    Thanks again for your input. I appologize if these are newby questions but this has always been set up for me in the past. I'm on new ground here.
    Thanks,
    Chris S. I haven't worked with Java so I can't explain the JDeveloper connection. I assume netterm is a terminal emulater, thus running a 'local' session on the host and doesn't need the listener to be running.
    Before you change anything, on the SCO box run the following command:
    prompt> lsnrctl status
    if it is not running or configured properly, you should see this kind of output (my output is from an NT box, but it should be close):
    LSNRCTL for 32-bit Windows: Version 9.0.1.1.1 - Production on 04-OCT-2002 13:59:44
    Copyright (c) 1991, 2001, Oracle Corporation. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC0)))
    TNS-12541: TNS:no listener
    TNS-12560: TNS:protocol adapter error
    TNS-00511: No listener
    32-bit Windows Error: 2: No such file or directory
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=astra)(PORT=1521)))
    TNS-12541: TNS:no listener
    TNS-12560: TNS:protocol adapter error
    TNS-00511: No listener
    32-bit Windows Error: 61: Unknown error
    if it is running, it should show you which ports it is listening on. All things considered, you should take these steps first, because some O/Ss like to play games with the location of the config files (esp. Sun).

  • Advice needed regarding Database design practice

    OK, here is my situation. I've started working for a company about 6 months ago. I'm a .NET developer with 12+ years of experience. Most of my experience with databases is with SQL Server. Recently I've discovered an design change with our Oracle database that our DBA made that I completely disagree with.
    We had a single Event table that holds records that pertain to all HTTP traffic on a network as HTTP Usage Event. There are multiple hardware units called 'Sensors' that monitor the network and report these HTTP events to the database. At some point not long ago, the table was holding just over a million records. Performance was suffering so the DBA decided to make a change to the database to accommodate. The change she made was to create a separate Event table for each sensor. Each sensor has an integer value as a unique identifier, so our database went from having a single Event table to now having Event_100, Event_101, Event_102, etc...
    So, we now have over 200 Event tables in our database. Anytime a sensor is added to the system, we need to add another table (actually two as there is a 2nd table that was duplicated in this same fashion).
    How do I present this to my boss and to the DBA in a way that I don't embarrass my boss (he approved the change) and without pissing off the DBA? I can't imagine that the table couldn't have been optimized as it was to take care of the issues with performance without so dramatic a change.
    Any advice would be greatly appreciated.
    Edited by: jreddy on Dec 15, 2010 6:51 AM

    There is a job to purge old data. Events are kept for 3 months. These jobs were actually part of the problem, as well as removing sensors from the system. In either of these cases, the deletion of the data (more so with the removal of a Sensor i.e. DELETE FROM EVENT WHERE SENSORID = X, was taking too long).
    I'm surprised that there have been people agreeing to this design. So, now we have 208 sensors, so 208 Event tables and another table named DATA_HASH duplicated 208 times. There may be a time when our database will be handling data from over 1,000 sensor units. Maybe even double that. Can anyone argue that having 2,000 event tables is the way to go? What if we need to add a new field to the table? Do that 2000 times?
    I've been looking at bit more at the data today. I found some event tables haven't got any data (0 rows) while others range in row counts of 2 million up to as much as 30 million? I've talked to SQL DBA's and they all think that Oracle should be able to handle billions of rows in a table.
    Also, just out of curiosity, I looked up the max size for a table in Oracle 10. I know the number of rows isn't the determining factor for this, but size of the data. I was astounded to find out the max size for data storage for a single table. 127 TB (yeah, tera bytes). Based on this size, it seems our data could be handled by 1 table, but then maybe I'm wrong.

  • Can Business Object Access Queries from the BI query designer?

    Hi Gurus,
    I've started working with BOBJ and honestly I'm not impressed with it's functionalities, specially with the report layouts (SO many limitations!!). Anyway I was wondering if Business Objects can access BI Queries in the Query Designer since I can do most of the manupilation in Query Designer that I need. Thank You in advance and any help will be most certainly appreciated.
    - Kit

    Hello KIT,
    Also, look at the below Blog for xcelsius where he directly consumes the BEx query the QUERY_VIEW_DATA Web service out of the BW system. This is one way to approach the BEx query:
    /people/arvind.bhaskar/blog/2009/04/17/consuming-bi-queries-in-an-xcelcius-dashboard
    Thanks
    Arun

  • Pb connecting from client to database after changing domain name

    Hi,
    I've got 3 databases wthis 3 listeners. all worked well since we change domain name. database server is in DMZ and is reconize witn 2 IP adresses.
    I can ping with tnsping but when I run sqlplus user/passwd@ORACLE_SID I've got this message : ERROR:
    ORA-12535: TNS : le dÚlai imparti Ó l'opÚration est ÚcoulÚ
    on local host this command run well and connect to database.
    is there somebody that knows this problem and its solution?
    Thank you for your help.
    PS: I'm on oracle 9.2.0 and windows200 server and client

    I've got this message in listener.log
    Démarré avec pid=3028
    Ecoute sur : (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC0ipc)))
    Ecoute sur : (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=bam_sgbd.imelios.com)(PORT=1522)))
    TIMESTAMP * CONNECT DATA [* PROTOCOL INFO] * EVENT [* SID] * RETURN CODE
    19-MAR-2004 14:21:33 * (CONNECT_DATA=(SERVICE_NAME=ADRPRODR)(CID=(PROGRAM=c:\oracle\ora92\bin\sqlplus.exe)(HOST=U0011001)(USER=BerPRE))) * (ADDRESS=(PROTOCOL=tcp)(HOST=10.2.80.180)(PORT=2032)) * establish * ADRPRODR * 0
    19-MAR-2004 14:34:36 * (CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=ADRPRODR)(CID=(PROGRAM=C:\oracle\ora92\bin\sqlplus.exe)(HOST=BAM_SGBD)(USER=BAM_SGBD))) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.80.223)(PORT=2394)) * establish * ADRPRODR * 0
    19-MAR-2004 14:40:53 * (CONNECT_DATA=(SERVICE_NAME=ADRPRODR)(CID=(PROGRAM=c:\oracle\ora92\bin\sqlplus.exe)(HOST=U0011001)(USER=BerPRE))) * (ADDRESS=(PROTOCOL=tcp)(HOST=10.2.80.180)(PORT=2195)) * establish * ADRPRODR * 0
    19-MAR-2004 14:44:18 * (CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=ADRPRODR)(CID=(PROGRAM=C:\oracle\ora92\bin\sqlplus.exe)(HOST=BAM_SGBD)(USER=BerPre))) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.80.223)(PORT=2809)) * establish * ADRPRODR * 0
    19-MAR-2004 14:57:52 * (CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=ADRPRODR)(CID=(PROGRAM=C:\oracle\ora92\bin\sqlplus.exe)(HOST=BAM_SGBD)(USER=BAM_SGBD))) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.80.223)(PORT=3413)) * establish * ADRPRODR * 0
    19-MAR-2004 15:11:47 * (CONNECT_DATA=(SERVICE_NAME=ADRPRODR)(CID=(PROGRAM=c:\oracle\ora92\bin\sqlplus.exe)(HOST=U0011001)(USER=BerPRE))) * (ADDRESS=(PROTOCOL=tcp)(HOST=10.2.80.180)(PORT=2433)) * establish * ADRPRODR * 0
    19-MAR-2004 15:55:59 * (CONNECT_DATA=(SERVICE_NAME=ADRPRODR)(CID=(PROGRAM=c:\oracle\ora92\bin\sqlplus.exe)(HOST=U0011001)(USER=BerPRE))) * (ADDRESS=(PROTOCOL=tcp)(HOST=IP_ADRESSE)(PORT=2561)) * establish * ADRPRODR * 0
    19-MAR-2004 15:56:26 * (CONNECT_DATA=(SERVICE_NAME=ADRPRODR)(CID=(PROGRAM=c:\oracle\ora92\bin\sqlplus.exe)(HOST=U0011001)(USER=BerPRE))) * (ADDRESS=(PROTOCOL=tcp)(HOST=IP_ADRESSE)(PORT=2568)) * establish * ADRPRODR * 0
    this seems to work pas on client connection doesn't arrive

  • Not able to connect RAC database from client

    Hi there
    Recently I have configured RAC in test environment. version 11.2.0.1. OS Redhat 5.9. Everything seems to be fine except not able to connect rac database from client.  Error is as under :
    C:\Documents and Settings\pbl>sqlplus test1/test1@myrac
    SQL*Plus: Release 10.2.0.1.0 - Production on Mon Nov 17 14:29:06 2014
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    ERROR:
    ORA-12545: Connect failed because target host or object does not exist
    Enter user-name:
    myrac =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = TCP)(HOST = rac-scan)(PORT = 1521))
        (CONNECT_DATA =
          (SERVICE_NAME = racdb.testdb.com.bd)
    Please give me your valuable suggestion to  overcome the issue.
    Regards
    Jewel

    user13134974 wrote:
    ORA-12545: Connect failed because target host or object does not exist
    This error means that the hostname or IP address used in the TNS connection string, failed to resolve or connect.
    Your client is making two connections. The first connection is to the SCAN listener. It matches a db instance for your connection request based on service requested, available registered service handlers, load balancing, and so on. It then send a redirect to your client informing it of the handler for that service.
    Your client then does a second connection to this service (a local RAC listener that will provide you with a connection to the local RAC instance). This is what seems to be failing in your case.
    The SCAN listener's redirect uses the hostname of the server that the local listener is running on. Your client needs to resolve that hostname (of a RAC node) to an IP address. This likely fails.
    You can add the RAC node hostnames to your client platforms hosts file. The appropriate action however would be to ensure that DNS is used for name resolution instead.

  • Tracing queries from abap to a custom database via dblink

    I' m connecting to a database by dblink (name magiap).
    I would like to know if somewhere I can trace all the queries from abap to oracle in this specific session , to dbs ='MAGIAP'.
    For istance, i would like that the query "SELECT "DESPARTY1"
    into :v_DESPARTY1
    FROM "T040PARTY"
    WHERE "CODPARTY" = '305142941' will be stored some where (in a file??).
    I would like that parameters - w_CODPARTY- will be substituted and stored in the trace file with the value (305142941), as shown in the previous
    Here is the piece of code ..(a very short example of course)..
    DATA : dbs LIKE dbcon-con_name,
    v_CODPARTY(15),
    v_DESPARTY1(60).
    data : w_CODPARTY(15) value '305142941'.
    dbs = 'MAGIAP'.
    TRY.
    EXEC SQL.
    CONNECT TO :dbs
    ENDEXEC.
    IF sy-subrc <> 0.
    EXEC SQL.
    CONNECT TO :dbs
    ENDEXEC.
    ENDIF.
    IF sy-subrc <> 0.
    * RAISE err_conn_aea.
    ENDIF.
    EXEC SQL.
    set connection :dbs
    ENDEXEC.
    EXEC SQL .
    SELECT "DESPARTY1"
    into :v_DESPARTY1
    FROM "T040PARTY"
    WHERE "CODPARTY" = :w_CODPARTY
    ENDEXEC.
    IF sy-subrc NE 0.
    * rc = 4.
    ENDIF.
    EXEC SQL.
    DISCONNECT :dbs
    ENDEXEC.
    ENDTRY.

    Hi Silvana,
    The SQL statements have been stored in the SQL Cursor Cache, on the database and they will be available until they have been invalidated. You can access the statements at the 'MAGIAP' side and see the last executed queries in the cache.
    You can access bind variables by query on the V$SQL_BIND_CAPTURE table, also.
    On the other hand, you can activate the trace by the statement, below;
    ALTER SYSTEM SET sql_trace = true SCOPE=MEMORY;
    Then, the sql statements will be available in the usertrace file. Please note that you should execute and investigate all the statements that I noted above, at the remote side. Plus, as far as I know that it is not able to distinguish the records by the "dblink name". You should check all the statements and try to figure out what queries have been executed remotely.
    Best regards,
    Orkun Gedik

  • Trace queries from abap to a custom oracle database via dblink

    I' m
    connecting to a database by dblink (name magiap).
    I
    would like to know if somewhere I can trace all the queries from abap to oracle
    in this specific session , to dbs ='MAGIAP'.
    For istance, i would like that the query
    "SELECT "DESPARTY1"
    into :v_DESPARTY1
    FROM "T040PARTY"
    WHERE "CODPARTY" = '305142941' will
    be stored some where (in a file??).
    I would like that parameters - w_CODPARTY- will be substituted and stored in the trace
    file with the value (305142941), as shown in the previous
    Here
    is the piece of code ..(a very short example of course)..
    DATA : dbs LIKE dbcon-con_name,
    v_CODPARTY(15),
    v_DESPARTY1(60).
    data : w_CODPARTY(15) value '305142941'.
    dbs = 'MAGIAP'.
    TRY.
    EXEC SQL.
    CONNECT TO :dbs
    ENDEXEC.
    IF sy-subrc <> 0.
    EXEC SQL.
    CONNECT TO :dbs
    ENDEXEC.
    ENDIF.
    IF sy-subrc <> 0.
    * RAISE err_conn_aea.
    ENDIF.
    EXEC SQL.
    set connection :dbs
    ENDEXEC.
    EXEC SQL .
    SELECT "DESPARTY1"
    into :v_DESPARTY1
    FROM "T040PARTY"
    WHERE "CODPARTY" =
    :w_CODPARTY
    ENDEXEC.
    IF sy-subrc NE 0.
    * rc = 4.
    ENDIF.
    EXEC SQL.
    DISCONNECT :dbs
    ENDEXEC.
    ENDTRY.

    Hi Silvana,
    The SQL statements have been stored in the SQL Cursor Cache, on the database and they will be available until they have been invalidated. You can access the statements at the 'MAGIAP' side and see the last executed queries in the cache.
    You can access bind variables by query on the V$SQL_BIND_CAPTURE table, also.
    On the other hand, you can activate the trace by the statement, below;
    ALTER SYSTEM SET sql_trace = true SCOPE=MEMORY;
    Then, the sql statements will be available in the usertrace file. Please note that you should execute and investigate all the statements that I noted above, at the remote side. Plus, as far as I know that it is not able to distinguish the records by the "dblink name". You should check all the statements and try to figure out what queries have been executed remotely.
    Best regards,
    Orkun Gedik

  • Have anybody copied Queries from "Test" database to "Production database?

    I am looking for the best method to copy queries from one database to another.  From TEST to PRODUCTION.  Other than Copy Express or Copy/Past, is there another recommended approach?  Such as within SQL?

    Hi Alain,
    Copying anything from database A to database B using SQL, means somehow using  SQL command "Insert". Please note that commands like Insert, Update, Delete are NOT SUPPORTED as it might cause data corruption.
    Kind regards
    Mario

  • How to upload file from client machine to  database in server machine?

    I am developing a web application. this application is suppose to take file from client machine and store that to database in the server side.
    My jsp form is of multi part type. but I am confused about what to write in servlet.
    Can any one help me ?
    Edited by: chinmaya_mishra on Feb 16, 2009 2:55 AM
    Edited by: chinmaya_mishra on Feb 16, 2009 2:58 AM

    http://www.google.com/search?q=jdbc+blob
    Blob processing varies between databases; see also examples for whatever database you are using, e.g.
    http://www.google.com/search?q=jdbc+blob+oracle
    If you are storing text data instead of binary data, replace "blob" by "clob" in the searches.

  • How can i load file into database from client-side to server-side

    i want to upload file from client-side to server-side, i use the following code to load blob into database.
    if the file is in the server-side, it can work, but if it in the client-side, it said that the system cannot find the file. i think it only will search the file is in the server-side or not, it will not search the client-side.
    how can i solve it without upload the file to the server first, then load it into database??
    try
    ResultSet rset = null;
    PreparedStatement pstmt =
    conn.prepareStatement ("insert into docs values (? , EMPTY_BLOB())");
    pstmt.setInt (1, docId);
    pstmt.execute ();
    // Open the destination blob:
    pstmt.setInt (1, docId);
    rset = pstmt.executeQuery (
    "SELECT content FROM docs WHERE id = ? FOR UPDATE");
    BLOB dest_lob = null;
    if (rset.next()) {
    dest_lob = ((OracleResultSet)rset).getBLOB (1);
    // Declare a file handler for the input file
    File binaryFile = new File (fileName);
    FileInputStream istream = new FileInputStream (binaryFile);
    // Create an OutputStram object to write the BLOB as a stream
    OutputStream ostream = dest_lob.getBinaryOutputStream();
    // Create a tempory buffer
    byte[] buffer = new byte[1024];
    int length = 0;
    // Use the read() method to read the file to the byte
    // array buffer, then use the write() method to write it to
    // the BLOB.
    while ((length = istream.read(buffer)) != -1)
    ostream.write(buffer, 0, length);
    pstmt.close();
    // Close all streams and file handles:
    istream.close();
    ostream.flush();
    ostream.close();
    //dest_lob.close();
    // Commit the transaction:
    conn.commit();
    conn.close();
    } catch (SQLException e) {

    Hi,
    Without some more details of the configuration, its difficult to know
    what's happening here. For example, what do you mean by client side
    and server side, and where are you running the upload Java application?
    If you always run the application on the database server system, but can't
    open the file on a different machine, then it sounds like a file protection
    problem that isn't really connected with the database at all. That is to
    say, if the new FileInputStream (binaryFile) statement fails, then its not
    really a database problem, but a file protection issue. On the other hand,
    I can't explain what's happening if you run the program on the same machine
    as the document file (client machine), but you can't write the data to the
    server, assuming the JDBC connection string is set correctly to connect to
    the appropriate database server.
    If you can provide some more information, we'll try to help.
    Simon
    null

  • Regarding Batch Jobs for migration of data from client DB to our local DB

    Hi Folks,
    GoodDay, Previously I worked as a Oracle Developer and recently shifted into a BIG organisation as PL?SQL developer. Here my base work is with INTERFACES(Stored Procedure). That is retrieving data from client DB and need to put the data in our staging tables. For that i created 2 INTERFACES(stored procedures). One is for one time migration. No need to run on regular basis. The second one is to run regularly why because if any updations are done in client DB that should be replicate to our DB. For that we need to run a BATCH JOB regulary 24X7 basis.
    But i dont have any working knowledge on BATCH JOB creation and running. Please let me guide on this issue ASAP.
    Regards,
    Ramesh.

    You can try
    dbms_job(9i)
    or
    dbms_scheduler(10g)
    just out of curiosity.. tell me if you are interested...
    what you were doing as a "oracle developer" ( is it like writing only "sql" )...

  • HOW TO CONNECT FROM CLIENT MACHINE TO REMOTE MACHINE(SERVER DATABASE MACHINE)

    Hi friends.
    I need your valuable help,
    I am using oracle 11g database.
    I have two system.One is client machine and installed oracle 11G client software.
    and from this machine user can connect remote server database(This is old remote system, this is just for Information).
    And i have created one new database called RMANP in new remote server machine (this is the machine, in which i need to connect from client machine)
    ex
    CLIENT MACHINE DETAIL IS:
    system66
    ip address is 192.162.21.66
    REMOTE SEVER MACHINE DETAILS IS:
    system56
    ip address is 192.162.21.56.
    and i add entry on client machine tnsname.ora file like following,
    RMANP=
    (DESCRIPTION=
       (ADDRESS=
         (PROTOCOL=TCP)
         (HOST=192.168.21.56)
         (PORT=1521)
       (CONNECT_DATA=
         (SERVICE_NAME=rmanp)
    But when i try to connect to remote server from client machine in sqlplus, i am getting an error, Like following,
    SQL> CONN SYS/SYSPW AS SYSDBA;
    ERROR:
    ORA-12560: TNS:protocol adapter error

    2684285 wrote:
    Hi friends.
    I need your valuable help,
    I am using oracle 11g database.
    I have two system.One is client machine and installed oracle 11G client software.
    and from this machine user can connect remote server database(This is old remote system, this is just for Information).
    And i have created one new database called RMANP in new remote server machine (this is the machine, in which i need to connect from client machine)
    ex
    CLIENT MACHINE DETAIL IS:
    system66
    ip address is 192.162.21.66
    REMOTE SEVER MACHINE DETAILS IS:
    system56
    ip address is 192.162.21.56.
    and i add entry on client machine tnsname.ora file like following,
    RMANP=
    (DESCRIPTION=
       (ADDRESS=
         (PROTOCOL=TCP)
         (HOST=192.168.21.56)
         (PORT=1521)
       (CONNECT_DATA=
         (SERVICE_NAME=rmanp)
    But when i try to connect to remote server from client machine in sqlplus, i am getting an error, Like following,
    SQL> CONN SYS/SYSPW AS SYSDBA;
    ERROR:
    ORA-12560: TNS:protocol adapter error
    There is nothing in your connect string to tell sqlplus which database you want to connect to.  Therefore it assumes (by default) that you want to connect to a *local* database whose name is identified by the value of the environment variable ORACLE_SID.  And there is no such database, so he gets the reported error trying to establish a connection to a non-existent local service.
    You need to specify your target database, thusly:
    SQL>  conn sys/syspw@rmanp as sysdba
    BTW, connecting to a remote database as sysdba is considered by most DBAs to be a big secruity breach.  If you really need sysdba privileges (rare) you should be logged on to the database server machine with proper OS credentials, and work from there.
    Also, TYPING IN ALL CAPS IS PERCEIVED AS SHOUTING.

Maybe you are looking for

  • Sharing a library and changing an ID ?

    A little background first... I had a Windows XP machine - installed my ipod everything was fine. Subsequently got fed up with windows and decided to junk it altogether... Purchased a MacBook AND an iMac at the same time to replace the machines I was

  • Hi, Can anyone tell me if you can have two separate itunes accounts on one laptop?

    Hi, Can anyone tell me if you can have two separate itunes accounts on one laptop? If so can you please let me know how I set this up. I already have my itunes account loaded on and have another on a separate hardrive that I want to be able to use on

  • Errors in web dynpro

    Hi ,All, There is an error occured when i use service call to program in web dynpro. that is  "Exception NO_ENTRY_FOUND that Is Not Class-Based Occurred ". can someone tell me what i should do to modify it? Thank you very much.

  • HP Pavilion starts up in hibernate/sleep mode and remains there - there is nothing on the monitor

    I have an HP Pavilion Elite HPE-250f (Core i7) desktop computer. I was using the internet. Suddenly, the computer made some sound, and the screen went blank. The computer seemed to go into its usual hibernate/sleep mode. Usually, when the computer go

  • Unable to Initialize the Plannig Area

    Hello, While initializing the planning area for DP, we are getting the below error. Job started Step 001 started (program /SAPAPO/TS_PAREA_INITIALIZE, variant &0000000000017 ABAP/4 processor: DBIF_DSQL2_SQL_ERROR Job cancelled When checking the consi