Oracle RAC and sql loader

hi all,
We have Oracle 10g RAC on IBM AIX
Today i will be uploading data in a table through sql loader.
I want that at the time of insertion only data which i am inserting goes into the table,As i am using sequence on particular column A.
Problem is If i shutdown database then i will not to able to insert data and if i doesnt shutdown db value for that column A is generated automatically when application works.
i have recommanded that we should stop connectivity of application with database then i will perform insertion but some people are saying no.Find other method
What steps should i do?

Ok i thing my question was not clear
I have table XYZ
A B C
1 2 3
4 4 5
if application is connected to database value to Coulmn is incremented
A B C
1 2 3
4 4 5
5 6 7
i have to insert into table XYZ using sql loader giving sequence (4,1) on column A.
But if it is connected to application it will give me error of PK.
as Value 5 is already inserted by application so how can i stop this.
so that i can have the max value of coulmn and start sequence
Hope this time make u clear.
sorry for bad english

Similar Messages

  • Oracle Replication and SQL*Load direct Path

    We are setting up Oracle replication and have a few tables which are loaded using SQL*Loader Direct path. I have following questions:
    1. Can MultiMaster replication replicate direct patch sqlloaded data.
    2. If the answer to the above question is no, should we set up a new snapshot replication group . All other tables are in the Multi Master replication.
    3. Another question is on the number of replication groups. How many of these we should create. We have total of about 500 tables and database size is about 450 Gig. We plan to replicate all the tables and the refresh interval we want to be one minute for all the tables. Does having more/less replication groups help??
    Thanks for your help

    We are setting up Oracle replication and have a few tables which are loaded using SQL*Loader Direct path. I have following questions:
    1. Can MultiMaster replication replicate direct patch sqlloaded data.Yes, I don't think it should matter how the table is getting updated.
    2. If the answer to the above question is no, should we set up a new snapshot replication group . All other tables are in the Multi Master replication.see above
    3. Another question is on the number of replication groups. How many of these we should create. We have total of about 500 tables and database size is about 450 Gig. We plan to replicate all the tables and the refresh interval we want to be one minute for all the tables. Does having more/less replication groups help??
    Thanks for your help I believe what Oracle recommends is that you split up your tables into replication groups transactionally. I personally have 6 replication groups supporting 700+ tables. They are broken up more by business function than by number and size.

  • Oracle RAC and Datastage

    Could anyone tell me If you have some Best Practices with Oracle RAC and Datastage ETL. I am concerned about performace of ETL loads into oracle database......

    http://download.oracle.com/docs/cd/B19306_01/server.102/b14220/bus_intl.htm#sthref2435
    Your answers are just a few clicks beyond the URL below.
    http://tahiti.oracle.com

  • Installing Oracle Database and SQL Developer

    Hi, I was looking for some help/advice in regards to installing an Oracle Database and SQL Developer onto a Windows 7 32bit machine. I have been asked to create a database to store data that I create through reports in Excel so I am required to create a local database but not sure how to go about doing this. Also not sure if I install the Express Edition or Oracle Database 11g R2. If somebody could please advise on how I can get this started or even any links/tutorials that would guide me in how to get this installed with a localhost.
    Thanks in advanc.

    318f20b8-a3d0-4fb4-bb0f-73785250b7d4 wrote:
    Thanks guys, I have managed to install Oracle 11gR2 and I have setup a database using the dbca tool and I can connect to my new database. One thing that I have noticed is that when i look into my tables in sql developer i see loads of different tables i.e. def$_, logmnr_, etc and I am not sure why this is as I expected an empty tablespace.
    Thanks btw for all your help.
    One of the key principles of relational databases is that they use their own facilities to manage themselves.  That means the database management system uses the database to manage data about the database using exactly the same facilities (tablespaces, tables, user accounts, procedures, etc) that an application uses to keep data for the application. See "data dictionary"   So there is no such thing as a completely empty database.
    As said by others, you do NOT want to be creating your own tables under oracle's schemas (users) or in oracle's own tablespaces (esp. SYSTEM and SYSAUX).  Create your own user account/schema.  Create your own tablespace. Make that tablespace the default for that user.

  • Need to understand basics of Oracle RAC and Grid technology, for training

    I need to understand Oracle RAC and Grid infrastructure, from a manager's / training perspective.
    I see links here and here, so a couple questions:
    - what's the basic difference from a layman's (e.g., a manager's) perspective ?
    - What training options are available for a generic 11g DBA to learn this new technology ? I've seen this course from an Oracle partner ("Course:Oracle 11g: RAC and Grid Infrastructure Administration Accelerated Release 2"), for a boat load of money, for 5 days I think. So we're looking for something a little more reasonable (and accessible), e.g., books, online, etc.

    Wm Peck 1958 wrote:
    I need to understand Oracle RAC and Grid infrastructure, from a manager's / training perspective.
    I see links here and here, so a couple questions:
    - what's the basic difference from a layman's (e.g., a manager's) perspective ?
    - What training options are available for a generic 11g DBA to learn this new technology ? I've seen this course from an Oracle partner ("Course:Oracle 11g: RAC and Grid Infrastructure Administration Accelerated Release 2"), for a boat load of money, for 5 days I think. So we're looking for something a little more reasonable (and accessible), e.g., books, online, etc.
    For a very basic definition, RAC is technology that is used by the database and GI is the infrastructure that makes RAC work. In a forum reply, that's probably all what can be said about both. For a very lengthy answer, you should read the links that you have quoted.
    For #2, the course that you are looking at is called Accelerated as it combines two courses in a single week training-RAC(4) and GI(3). So it's a 7 day curriculum that one would be doing in a 5 day course and that should justify its cost. But let me say, it's a really really good course. But on the other side, it can be quite overwhelming for someone who doesn't know about these technologies already. So I shall suggest that you send your team to each course individually and probably after doing some homework . They can start reading the following books,
    Pro Oracle Database 11g RAC on Linux
    https://www.mheducation.co.in/html/9781259004063.html
    And this doc link,
    Oracle Database Online Documentation 11g Release 2 (11.2)
    Aman....

  • Importing to a Oracle Table from SQL Loader Fails

    Hi ,
    When I try to upload one xml file from my server to my table in oracle server using sql loader it fails at times.Some times it works perfectly.
    This is a daily process which automatically dumps data to my oracle.
    Please find the error log :
    SQL*Loader: Release 10.2.0.4.0 - Production on Thu Dec 5 04:07:32 2013
    Copyright (c) 1982, 2007, Oracle.  All rights reserved.
    Control File:   xmlFeedDelta.ctl
    Data File:      xmlFileNames_Delta.txt
      Bad File:     xmlFileNames_Delta.bad
      Discard File:  none specified
    (Allow all discards)
    Number to load: ALL
    Number to skip: 0
    Errors allowed: 1000
    Bind array:     50000 rows, maximum of 256000 bytes
    Continuation:    none specified
    Path used:      Conventional
    Table XMLFEEDDELTA, loaded from every logical record.
    Insert option in effect for this table: APPEND
       Column Name                  Position   Len  Term Encl Datatype
    FILENAME                            FIRST  4000   ,       CHARACTER           
    FILECONTENT                       DERIVED     *  EOF      CHARACTER           
        Dynamic LOBFILE.  Filename in field FILENAME
    value used for ROWS parameter changed from 50000 to 63
    SQL*Loader-643: error executing INSERT statement for table XMLFEEDDELTA
    ORA-03113: end-of-file on communication channel
    SQL*Loader-2026: the load was aborted because SQL Loader cannot continue.
    Table XMLFEEDDELTA:
      0 Rows successfully loaded.
      0 Rows not loaded due to data errors.
      0 Rows not loaded because all WHEN clauses were failed.
      0 Rows not loaded because all fields were null.
    Space allocated for bind array:                 252378 bytes(63 rows)
    Read   buffer bytes: 1048576
    Total logical records skipped:          0
    Total logical records read:             1
    Total logical records rejected:         0
    Total logical records discarded:        0
    Run began on Thu Dec 05 04:07:32 2013
    Run ended on Thu Dec 05 04:08:42 2013
    Elapsed time was:     00:01:10.05
    CPU time was:         00:00:00.28
    My Control File Looks like this :
    LOAD DATA
    INFILE xmlFileNames_Delta.txt
    INTO TABLE xmlFeedDelta APPEND
    fields terminated by ','
    filename CHAR(4000),
    filecontent LOBFILE(filename) terminated by eof
    My Database version :
    Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
    PL/SQL Release 11.2.0.2.0 - Production
    "CORE 11.2.0.2.0 Production"
    TNS for Linux: Version 11.2.0.2.0 - Production
    NLSRTL Version 11.2.0.2.0 - Production
    I am not sure why this is happening at times . Any help would be appreciated.

    Hi,
    have you tried with the FILLER  command like
    LOAD DATA
    INFILE xmlFileNames_Delta.txt
    INTO TABLE xmlFeedDelta APPEND
    fields terminated by ','
    filename  FILLER CHAR(4000),
    filecontent LOBFILE(filename) terminated by eof

  • How to provide joins between oracle tables and sql server tables

    Hi,
    I have a requirement that i need to generate a report form two different data base. i.e Oracle and Sql Server.
    how to provide joins between oracle tables and sql server tables ? Any help on this
    Regards,
    Malli

    user10675696 wrote:
    I have a requirement that i need to generate a report form two different data base. i.e Oracle and Sql Server. Bad idea most times. Heterogeneous joins do not exactly scale and performance can be severely degraded by network speed and b/w availability. And there is nothing you can do in the application and database layers to address performance issue at the network level in this case - your code's performance is simply at the mercy of network performance. With a single glaring fact - network performance is continually degrading. All the time. Always. Until it is upgraded. When the performance degradation starts all over again.
    If the tables are not small (few 1000 rows each) and row volumes static, I would not consider doing a heterogeneous join. Instead I would rather go for a materialised view on the Oracle side, use a proper table and index structure, and do a local database join.

  • Is it possible to install Oracle 9i and SQL server on same machine

    1. Is it possible to install Oracle 9i and SQL server on same machine ?
    2. If yes, what are the problems i may encounter during installation
    3. What should be hardware configuration for installing both databases in same machine like hard disk space, RAM speed etc,

    Hi,
    1. Yes you can do it.
    2. There shouldn't be any problems
    3. Depends on your needs
    Jarek

  • Intermedia and SQL*Loader

    I created a small test table to try and figure out the syntax for the control file for SQL*Loader. I'm using what I found on technet but I can't seem to get past ->
    ** SQL*Loader-416: SDF clause for field LOCALDATA in table QUERY_INTERMEDIA references a non existent field.**
    All the files, control file, .bat file and front.tif file all exist in the same directory. I was able to get this to work when the column type was a blob but can't seem to get this right for interMedia.
    create table bsw.query_intermedia
    customer_id number not null,
    image_front ORDSYS.ORDImage
    LOB (image_front.source.localData) STORE AS
    (tablespace images_lc1 storage (pctincrease 0)
    pctversion 0 chunk 8K NOCACHE LOGGING DISABLE STORAGE IN ROW)
    pctfree 0
    Control file
    LOAD DATA
    INFILE *
    INTO TABLE query_intermedia
    TRUNCATE
    FIELDS TERMINATED BY ','
    (customer_id integer external,
    image_front column object
    (source column object
    localdata_fname FILLER CHAR(128),
    localdata LOBFILE(image.source.localdata_fname)
    mimetype char(40)
    BEGINDATA
    1,front.tif,image/tif
    .bat file to initiate sqlldr.
    sqlldr userid=bsw/bsw control=control_intermedia.ctl log=test_intermedia.log rows=300 bindsize=20000000 readsize=20000000
    Any help or suggestions would be much appreciated. Thanks.
    null

    User,
    There's a [url http://forums.oracle.com/forums/forum.jspa?forumID=260]SQL Developer Forum that's probably better suited for SQL Developer enhancement requests.
    John

  • How to insert BLOB datatype image using PL/SQL Procedure and SQL Loader

    Hi,
    How to insert an image into database using PL/SQL Procedure and also how to insert using SQL Loader. Please help by giving sample code and process description.
    Thanks,
    Vijay V

    http://asktom.oracle.com/pls/apex/f?p=100:11:0::::P11_QUESTION_ID:232814159006

  • Load Data from SQL Server to Oracle 10g using Sql*loader utility

    I am trying to lod data from sql server 2005 to oracle 10g.
    What is the best way to do it?
    Can sql*loader utility do it?
    what is the difference of using sql*loader utility and migration tool fom sql developer ?
    Thanks
    Edited by: user11313758 on Sep 30, 2009 4:30 PM

    Hello:
    You could consider using Oracle Heterogeneous Services to do this. If your Oracle database is on a Windows platform the link below shows you how to make a connection to SqlServer from an Oracle database.
    http://www.databasejournal.com/features/oracle/article.php/3442661/Making-a-Connection-from-Oracle-to-SQL-Server.htm
    Varad

  • Oracle Rac 11GR2 + SQL

    Hi,
    I have a database 11gr2 in RAC and an IIS application.
    This application insert data into database.
    Sometimes i have a crazy case :
    When the web page is display a package is launch : this package insert a row in a table with a sequence number and sysdate.
    When the user validate this page this package is launch again.
    Sometimes, i have those rows in the table :
    1 07/06/2013 13:00:00
    2 07/06/2013 12:59:56
    How can i have a date anterior in the second insert ?
    Do you have an idea ?
    Thanks.

    You connect for every statement and disconnect after every statement.
    You use load balancing, or the database is configured for load balancing.
    Both invocations of the package end up on different instances.
    You don't use any mechanism to synchronize the system clocks of the server.
    BINGO!
    Sybrand Bakker
    Senior Oracle DBA
    '

  • Need help:Scripting on windows and Sql Loader

    Hi
    I need some help regarding script work on windows machines i.e., how to write a script,the file extension,how to run the script etc,how to schedule it...
    I also need the doc regarding sql loader(complete details.....)
    Thanks in advance...
    bye

    The sqlldr utility is fully documented in the Oracle version# Utilities manual for your version of Oracle. You can find the documentation sets here on OTN for download or you can use the online versions at http://tahiti.oracle.com
    There is a product called Script Works and it is documented by the vendor. Otherwise the details depend on the scripting language/tool you use: DOS, Perl, etc....
    HTH -- Mark D Powell --

  • Installing Oracle 10G and SQL Developer for Windows 7 Home Premium

    Hi Folks,
    I need your helping me in getting the correct Database installed for my Windows 7 .
    Can you please help me out in sending me the correct url for Oracle 10G Database & SQL Developer URL
    So i can install both and get on with it...
    Thanks ,
    satish.p

    user4789048 wrote:
    Hi Folks,
    I need your helping me in getting the correct Database installed for my Windows 7 .
    Can you please help me out in sending me the correct url for Oracle 10G Database & SQL Developer URL
    So i can install both and get on with it...
    Thanks ,
    satish.pWith the caveat (as already pointed out by Srini in this thread) that no Oracle product has ever been certified on any "home" edition of any version of Oracle ...
    If I were looking to download any product, I'd start by going to that company's web site (like, www.oracle.com) and look for a tab or link called "download". I'll bet if you did that, you'd find all sorts of goodies.
    But, again, since you are dealing with a "home" edition of Windows, you'll need to start by installing a virtual machine product -- VM Ware's "VMworkstation" or "VMplayer", or Oracle's VirtualBox. Then you can create a virtual machine running a supported OS. Oracle's own Linux (derived from Red Hat Linux) is also free.

  • Using oracle sequence in SQL Loader

    I'm using oracle sequence in control file of sql loader to load data from .csv file.
    Controlfile:
    LOAD DATA APPEND
    INTO TABLE PHONE_LIST
    FIELDS TERMINATED BY "," TRAILING NULLCOLS
    PHONE_LIST_ID "seqId.NEXTVAL",
    COUNTRY_CODE CHAR,
    CITY_CODE CHAR,
    BEGIN_RANGE CHAR,
    END_RANGE CHAR ,
    BLOCKED_FREE_FLAG CHAR
    Datafile:
    1516,8,9,9,B
    1517,1,1,2,B
    1518,8,9,9,B
    1519,8,9,9,B
    1520,8,9,9,B
    1521,8,9,9,B
    1) As first column uses oracle sequence, we have not defined that in datafile.
    This gives me error "Can not insert NULL value for last column"
    Is it mandatory to specify first column in datafile, even though we are using sequence?
    2) Another table is referencing PHONE_LIST_ID column (the one for which we using sequence) of this table as a foreign key.
    So is it possible to insert this column values in other table simultaneously? Sequence no. should be same as it is in first table...
    Kindly reply this on urgent basis....

    use BEFORE INSERT trigger
    with
    select your_seq.nextval into :new.id from dual;

Maybe you are looking for