Find data same kind in Oracle dBase SQL

Hello all
I'm working on a project were i need to find data that are cross referencing in between them (Redundant data).
I explain:
I have this SQL that i use all the time to extract trailer per carrier ID:
SELECT NULL,
     NULL,
     TRC.TL_RESOURCE_ID,
     TRC.CARRIER_ID,
     TRC.PERIOD,
     TRC.MAX_LOADS,
     TRC.CONTRACT_MAX_TEAMS,
     TRC.CURRENT_MAX_TEAMS,
     TRC.PERCENT_COMMIT,
     L.NAME,
     R.NAME AS REGION_NAME,
     RD.KEY_NUM,
     RD.LOW_KEY_VALUE,
     RD.HIGH_KEY_VALUE,
     R1.NAME AS REGION_NAME_1,
     RD1.KEY_NUM,
     RD1.LOW_KEY_VALUE,
     RD1.HIGH_KEY_VALUE,
     NULL,
     NULL,
     TRT.TRLR_TYPE_ID,
     to_char(TRT.EFFECTIVE, 'yyyymmdd'),
     TRT.CONTRACT_NUM_VEHICLES,
     TRT.CURRENT_NUM_VEHICLES
FROM TL_RESOURCE_CARRIER TRC,
     TL_RESOURCE_TRLR TRT,
     LANE L,
     REGION R,
     REGION R1,
     REGION_DETAIL RD,
     REGION_DETAIL RD1
WHERE TRC.TL_RESOURCE_ID = TRT.TL_RESOURCE_ID
     AND R.ID = RD.REGION_ID
     AND R1.ID = RD1.REGION_ID
     AND TRC.LANE_ID = TRT.LANE_ID
     AND TRC.CARRIER_ID = TRT.CARRIER_ID
     AND L.ID = TRC.LANE_ID
     AND L.ID = TRT.LANE_ID
     AND L.FROM_REGION_ID = RD.REGION_ID
     AND L.TO_REGION_ID = RD1.REGION_ID
     AND TRC.CARRIER_ID = 'UPS';What we see in these fields bellow are Location ID or Postal Code or States value from an origin to a destination:
RD.LOW_KEY_VALUE, (Origin)
RD1.LOW_KEY_VALUE, (Destination)
Ex:
H7S 2B9 (Postal code)
QC (State) etc...
In these 2 fields bellow, i have keys that link to a specific type of data:
RD.KEY_NUM,
RD1.KEY_NUM,
Ex:
4 (State)
8 (Postal code) etc...
In TRC.CARRIER_ID field, i will have the Carrier ID ex: UPS
Now here comes my problem:
I have to link this to the location table to validate for example the postal code is in what state for example.
4 IN (RD.KEY_NUM) AND (EXISTS (SELECT STATE FROM LOCATION WHERE STATE IN (RD.LOW_KEY_VALUE))
8 IN (RD.KEY_NUM) AND (EXISTS (SELECT ZIP FROM LOCATION WHERE ZIP IN (RD.LOW_KEY_VALUE, ))If i have UPS carrier ID set from origin postal 7 : H7S 2B9 to Destination postal 7 : G0L 2K0
and also UPS carrier set from origin postal 7 : H7S 2B9 to Destination State : QC
Since we have the same carrier, and the same origin postal 7 and that the destination postal 7 equal the destination state from the second record, i need to see that i have these 2 lanes that are overlapping.
I'm trying to extract all duplicated data like this.
I know this is kind of a big thing but it can be done in multiple set of you want.
I just need to start from the beginning.
Can you please help me?
Thanks again
Edited by: 974487 on Dec 2, 2012 2:22 PM

Hello all
sorry for the big delay.
I was working on the SQL;
I have now this error:
ORA-01427: single-row subquery returns more than one row
On this part of the code:
( select distinct carrier_id, low_key_value, (select state from location would you know what it is?
Thanks again
Full code
with S1   -- with constuction enables to use selected data twice
AS
SELECT NULL,
      NULL,
      TRC.TL_RESOURCE_ID,
      TRC.CARRIER_ID,
      TRC.PERIOD,
      TRC.MAX_LOADS,
      TRC.CONTRACT_MAX_TEAMS,
      TRC.CURRENT_MAX_TEAMS,
      TRC.PERCENT_COMMIT,
      L.NAME,
      R.NAME AS REGION_NAME,
      RD.KEY_NUM,
      RD.LOW_KEY_VALUE,
      RD.HIGH_KEY_VALUE,
      R1.NAME AS REGION_NAME_1,
      RD1.KEY_NUM,
      RD1.LOW_KEY_VALUE as LOW_KEY_VALUE_1,            -- as added
      RD1.HIGH_KEY_VALUE as HIGH_KEY_VALUE_1,          -- as added
      NULL,
      NULL,
      TRT.TRLR_TYPE_ID,
      to_char(TRT.EFFECTIVE, 'yyyymmdd'),
      TRT.CONTRACT_NUM_VEHICLES,
      TRT.CURRENT_NUM_VEHICLES
FROM TL_RESOURCE_CARRIER TRC,
      TL_RESOURCE_TRLR TRT,
      LANE L,
      REGION R,
      REGION R1,
      REGION_DETAIL RD,
      REGION_DETAIL RD1
WHERE TRC.TL_RESOURCE_ID = TRT.TL_RESOURCE_ID
      AND R.ID = RD.REGION_ID
      AND R1.ID = RD1.REGION_ID
      AND TRC.LANE_ID = TRT.LANE_ID
      AND TRC.CARRIER_ID = TRT.CARRIER_ID
      AND L.ID = TRC.LANE_ID
      AND L.ID = TRT.LANE_ID
      AND L.FROM_REGION_ID = RD.REGION_ID
      AND L.TO_REGION_ID = RD1.REGION_ID
select s2.*
from
select carrier_id, low_key_value, low_key_1_state 
from
( select distinct carrier_id, low_key_value, (select state from location
  where zip = s1.LOW_KEY_VALUE_1
         or city =  s1.LOW_KEY_VALUE_1
         or state = s1.LOW_KEY_VALUE_1
  and rownum = 1   -- because there are more rows with same city or same state
  )  low_key_1_state,  low_key_value_1
from s1
group by carrier_id, low_key_value, low_key_1_state
having count(*) > 1 -- select duplicates
)       s2

Similar Messages

  • Matching data types b/w oracle and sql server

    anyone here knows if there is a list of data types supported by both oracle and sql server (regardless of releases & versions?
    an immediate response would be highly appreciated.
    thanks.

    Hi,
    The following post might be of assistance to you:
    http://msdn.microsoft.com/en-us/library/ms151817.aspx
    If this is what you're looking for, then mark the question as answered and closed.
    Regards,
    Naveed.

  • Data filter when migrating Oracle to SQL

    How can I use a data filter (via t-sql or ??) when using SSMA to migrate data from Oracle to SQL Server ?

    Hi sqlworker,
    SQL Server Migration Assistant for Oracle are designed to migrate data from Oracle to SQL Server, we can convert and synchronize the schema of database, the particular category of the schema, and the attributes of objects. However, we can only use data filter
    to help you retrieve from a database table by using the WHERE clause to specify search conditions in SQL. According to your description, we need to verify if you just want to migrate some specific data from Oracle to SQL Server, or just use data filter in
    SQL Server after migration. You can post more information for analysis.
    For more information, you can review the following article.
    migrating
    data form Oracle to SQL Serve via SSMA.
    Filtering Data Retrieved from Database Table in SQL
    Regards,
    Sofiya Li
    Sofiya Li
    TechNet Community Support

  • Find Datas from Select Satement - Oracle 11g After changing the Connection?

    Iam very very new to Oracle. Yesterday only I have Installed Oracle 11G & created DataBase - JafferDB
    And from Oracle SQL Developer, I have created a connection called - JafferCon and SID also given..and the role is - SYSDBA
    And I excute the below statement
    insert into MyTable1 Values ('AAA1', 'BBB1', 'CCC1')
    insert into MyTable1 Values ('AAA2', 'BBB2', 'CCC2')
    Then I checked by Select statement, it has shown the values....No Problem....
    But, as a test, I deleted the connection and created a new connection tio the same DataBase with different name
    and when I checked by Select Statement....., it has not shown the values....????
    Does any mistakes....?
    Thanks for the directions...

    after you insert, update or delete any data in the database you must use "commit" or "rollback" statement. Commit if you want "save" the changes or rollback if you don't.
    Other users can't see this new changes until you do the "commit".

  • XSU error oracle.xml.sql.OracleXMLSQLException: Conversion to String failed

    Appication Server: 10g, Database: Oracle 9i and Oracle 10g
    I have a table 'sw_icd2' in the database that has one column of XMLType.
    The code below, attempts to query this table as 'select * from sw_icd2' and display the result. I was able to execute this query in sqlplus.
    But when I run a program using XSU in JDeveloper:
    OracleXMLQuery qry = new OracleXMLQuery(conn, "select * from sw_icd2");
    XMLDocument domDoc = (XMLDocument)qry.getXMLDOM();
    domDoc.print(System.out);
    StringWriter s = new StringWriter(10000);
    domDoc.print(new PrintWriter(s));
    System.out.println(s.toString());
    qry.close();
    I get the following Error:
    "oracle.xml.sql.OracleXMLSQLException: Conversion to String failed"
    Any ideas on how I can resolve this issue? Your help would be appreciated.
    Thanks!

    Okay, it looks like the problem has something to do with the TIMESTAMP data type in tables.
    oracle.xml.sql.query.OracleXMLQuery can't seem to handle tables with the TIMESTAMP data type.
    this code ran fine on my machine :
    import oracle.jdbc.driver.*;
    import oracle.xml.sql.query.OracleXMLQuery;
    import java.lang.*;
    import java.sql.*;
    public class testXMLSQL {
         public static void main(String[] args) {
    try {
    // Create the connection
    System.out.println("before getConnection ");
    Connection conn = getConnection("scott","tiger");
    System.out.println("after getConnection ");
    // Create the query class
    OracleXMLQuery qry = new OracleXMLQuery(conn, "SELECT * FROM EMP");
    System.out.println("after OracleXMLQuery object created ");
    // Get the XML string
    String str = qry.getXMLString();
    // Print the XML output
    System.out.println("The XML output is:\n"+str);
    // Always close the query to get rid of any resources..
    qry.close();
    } catch(SQLException e) {
    System.out.println(e.toString());
    // Get the connection given the user name and password.!
    private static Connection getConnection(String username,
    String password)
    throws SQLException
    // register the JDBC driver..
    DriverManager.registerDriver(new
    oracle.jdbc.driver.OracleDriver());
    // Create the connection using the OCI8 driver
    Connection conn =
    DriverManager.getConnection(
    "jdbc:oracle:thin:@<server_name>:1521:<sid>",
    username,password);
    return conn;
    Then I created another table :
    create table emp_test as select * from emp;
    added a timestamp to it :
    alter table emp_test add (time timestamp(6));
    and filled it with timestamp information :
    update emp_test set time = timestamp'2005-09-22 09:26:50.124';
    ran the same code but changed the SQL to :
    "SELECT * FROM EMP_TEST"
    and got the error message :
    The XML output is:
    <?xml version = '1.0'?>
    <ERROR>oracle.xml.sql.OracleXMLSQLException: Conversion to String failed</ERROR>
    looks like bug in OracleXMLQuery object??

  • Unable to find data source null [Caused by: jdbc/Apps1DataSource not found]

    Hi,
    I am using OA Adapter which listens to an EBiz HRMS event, and I am encountering the following error in $Home\j2ee\oc4j_soa\log\oc4j_soa_default_group_1\oc4j\log.xml while registering the ESB service.
    Error details:
    <MSG_TEXT>Failed to process control event for Service "DefaultSystem.SyncWorkerPartyEbizOAAdapter" due to an error while adding the Service! Reason : oracle.tip.esb.server.common.exceptions.BusinessEventFatalException: An unhandled exception has been thrown in the ESB system. The exception reported is: "ORABPEL-12517
    AdapterFrameworkImpl::endpointActivation - Endpoint Activation Error.
    The Resource Adapter Oracle Applications Resource Adapter was unable to activate the endpoint oracle.tip.adapter.apps.AppsWFBesQueueDequeueActivationSpec:{MessageSelectorRule=tab.user_data.event_name = 'oracle.apps.per.api.person.update_person', QueueName=WF_BPEL_Q, Consumer=ORA_6krj2dpn70s36c1g6h1k8dhi8h, DatabaseSchema=APPS, AppsEventSchema=ANY_SCHEMA} due to the following reason: javax.resource.ResourceException: Unable to find data source null Caused by: jdbc/Apps1DataSource not found
    Please correct the reported issue and redeploy the BPEL process.
         at oracle.tip.adapter.fw.jca.AdapterFrameworkImpl.endpointActivation(AdapterFrameworkImpl.java:566)
         at oracle.tip.esb.server.service.impl.inadapter.ESBActivationAgent.activateInboundJcaEndpoint(ESBActivationAgent.java:390)
         at oracle.tip.esb.server.service.impl.inadapter.ESBActivationAgent.performEndpointActivation(ESBActivationAgent.java:306)
         at oracle.tip.esb.server.service.impl.inadapter.ESBActivationAgent.activateEndpoint(ESBActivationAgent.java:236)
         at oracle.tip.esb.server.service.impl.inadapter.ESBActivationAgent.activateEndpoint(ESBActivationAgent.java:209)
         at oracle.tip.esb.server.service.impl.inadapter.InboundAdapterService.activateEndpoint(InboundAdapterService.java:177)
         at oracle.tip.esb.server.service.impl.inadapter.InboundAdapterService.activateService(InboundAdapterService.java:119)
         at oracle.tip.esb.server.service.EsbServiceFactory.activateEsbService(EsbServiceFactory.java:222)
         at oracle.tip.esb.server.service.EsbServiceFactory.addEsbService(EsbServiceFactory.java:240)
         at oracle.tip.esb.server.common.RuntimeESBSystem.addService(RuntimeESBSystem.java:211)
         at oracle.tip.esb.common.system.ServiceEventsHandler.handleCreateService(ServiceEventsHandler.java:72)
         at oracle.tip.esb.common.system.MetadataChangeListener.handleServiceEvent(MetadataChangeListener.java:136)
         at oracle.tip.esb.common.system.MetadataChangeListener.onMetadataChange(MetadataChangeListener.java:85)
         at oracle.tip.esb.common.control.ControlMessageHandler.handleMessage(ControlMessageHandler.java:115)
         at oracle.tip.esb.server.dispatch.agent.ESBWork.process(ESBWork.java:162)
         at oracle.tip.esb.server.dispatch.agent.ESBWork.run(ESBWork.java:120)
         at oracle.j2ee.connector.work.WorkWrapper.runTargetWork(WorkWrapper.java:242)
         at oracle.j2ee.connector.work.WorkWrapper.doWork(WorkWrapper.java:215)
         at oracle.j2ee.connector.work.WorkWrapper.run(WorkWrapper.java:190)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:814)
         at java.lang.Thread.run(Thread.java:595)
    Caused by: javax.resource.ResourceException: Unable to find data source null
         at oracle.tip.adapter.apps.AppsManagedConnectionFactory.getDataSourceConnection(AppsManagedConnectionFactory.java:411)
         at oracle.tip.adapter.apps.AppsManagedConnectionFactory.getConnection(AppsManagedConnectionFactory.java:288)
         at oracle.tip.adapter.apps.AppsManagedConnection.getConnection(AppsManagedConnection.java:85)
         at oracle.tip.adapter.apps.AppsConnection.getJdbcConnection(AppsConnection.java:70)
         at oracle_tip_adapter_apps_AppsConnection_Proxy.getJdbcConnection()
         at oracle.tip.adapter.aq.database.MessageReader.establishDBconnection(MessageReader.java:358)
         at oracle.tip.adapter.aq.database.MessageReader.&lt;init>(MessageReader.java:265)
         at oracle.tip.adapter.aq.inbound.AQActivationSpecDequeuer.init(AQActivationSpecDequeuer.java:142)
         at oracle.tip.adapter.aq.AQEndpoint.&lt;init>(AQEndpoint.java:99)
         at oracle.tip.adapter.aq.AQResourceAdapter.endpointActivation(AQResourceAdapter.java:73)
         at oracle.tip.adapter.apps.AppsResourceAdapter.endpointActivation(AppsResourceAdapter.java:147)
         at oracle.tip.adapter.fw.jca.AdapterFrameworkImpl.endpointActivation(AdapterFrameworkImpl.java:541)
         ... 20 more
    Caused by: javax.naming.NameNotFoundException: jdbc/Apps1DataSource not found
         at com.evermind.server.rmi.RMIServerContext.lookup(RMIServerContext.java:207)
         at com.evermind.server.ApplicationContext.unprivileged_lookup(ApplicationContext.java:257)
         at com.evermind.server.ApplicationContext.lookup(ApplicationContext.java:197)
         at javax.naming.InitialContext.lookup(InitialContext.java:351)
         at oracle.tip.adapter.apps.AppsManagedConnectionFactory.getDataSourceConnection(AppsManagedConnectionFactory.java:408)
         ... 31 more
    </MSG_TEXT>
    I have added the connection properties in $Home\j2ee\oc4j_soa\application-deployments\defaul\oc4j-ra.xml as follows:
    <connector-factory location="eis/Apps/apps1" connector-name="Oracle Applications Adapter">
         <config-property name="xADataSourceName" value="jdbc/AIADataSource"/>
         <config-property name="dataSourceName" value=""/>
         <connection-pooling use="none">
         </connection-pooling>
         <security-config use="none">
         </security-config>
    </connector-factory>
    Please correct me if the connection properties are wrong.
    I tried AppsEventSchema with 'NO-SCHEMA' and 'ANY-SCHEMA' also.
    If I use File Adapter I was able to register the ESB and instances were created successfully.
    My versions:
    JDEV:      10.1.3.3.0
    SOA:     10.1.3.3.0
    I have done a lot of research on this but in vain. Is there any patch for rectifying this error?
    Help me on this issue pl.
    Regards
    RK

    You need to check your datasource name jdbc/AIADataSource
    Check out your data-sources.xml to make sure you didn't mistype it.

  • How can I connect to Oracle and SQL server at the same time?

    I have been trying to find a way to connect to Oracle Database through the developer 2000 and SQL server at the same time. I need to return some data from Oracle Database and some from the Sql Server Database. And update both through SQL. I find there is such a thing as the Oracle Transparent Gateway for SQL server. I can't find it on any of my CD's or through OTN downloadable files. If anyone can point me where to get this. Or tell of another way this can be accomplished I would appreciate it. TIA.
    [email protected]

    I have been trying to find a way to connect to Oracle Database through the developer 2000 and SQL server at the same time. I need to return some data from Oracle Database and some from the Sql Server Database. And update both through SQL. I find there is such a thing as the Oracle Transparent Gateway for SQL server. I can't find it on any of my CD's or through OTN downloadable files. If anyone can point me where to get this. Or tell of another way this can be accomplished I would appreciate it. TIA.
    [email protected]
    As far as I know you have 3 options depending on your specifications. I don't think option #3 will work if you need to actually join a
    SQL Server table to an Oracle table.
    1. Oracle Transparent Gateway. I haven't used the Oracle Transparent Gateway but my understanding is that Oracle gateways are
    separate purchased products from Oracle. I've never seen any free/development versions of it anywhere. You'll need to contact
    your Oracle sales rep about it.
    2. Heterogeneous Connectivity. There's something called Heterogeneous Connectivity that could work for you - depends on what
    version of Oracle you're on and what OS. You basically set up an ODBC data source on the Oracle server and modify the listener.ora
    and tnsnames.ora files. You can then create a database link to SQL Server just like you would to any other Oracle database. You can
    check your Oracle documentation for how this works. There's also some very good documents on Metalink that tell you how to do this
    as well as a Heterogeneous Connectivity forum on this site.
    3. Use the exec_sql package available in Developer 2000. This allows you to open and execute cursors to remote databases within
    Developer. We have an account validation process that uses this - when a person enters an account number in a form while logged
    into Oracle it validates the account is valid in our main accounting DB2 database. We also pull HR information from DB2 into Oracle
    this way. If you're using Forms 6i exec_sql is a built-in command, in Forms 5.0 and 5.5 you have to add it as an attached library to
    the form. I think you also need the OCA options installed from the Developer software to have access to the library in Forms 5.0 and
    5.5. The library will be in the $ORACLE_HOME\oca20\plsqllib directory for these versions. The Developer documentation should have
    additional information.
    HTH

  • How to debugg and find wrong statements and correct in Oracle PL/SQL

    Hi friends,
    Any1 can guide me, how to debug oracle PL/SQL package, and have to fix bugs or changing the requirement by using toad, sometimes i resolve the problem, and i take backup in notepad, after sometime if i use the same notepad contents, the something changed, i dont no how to keep the "IF loop" correctly, Sometimes while editing, the loop nevigation changes, so that i am getting more confusions. I dont no how to correct the packages already written, and how to solve problems, i use anonymous for seeing output. Dont no how to identify and fix the bug or requirement changes,. I am not sure where the code need changes. How to test properly for fixing the bugs, and how to change the logic, any1 help me out from this,... kindly give me good solution.. thnak you in advance

    Hi,
    you seem a little confused with your previous posts:
    956684 wrote:
    Hi, Friends,
    I have 4+ years experience in oracle plsql developer,
    956684 wrote:I am newly changed the technology into oracle PL/SQL developer,In one (3-Sep-2012) you said you have 4+ years experienced in PL/SQL developer, in the other (17-Nov-2012) you said you are new to PL/SQL developer.
    The kind of question you are posting shows that you have little experience and you have been thrown in a sort of "training on the job" which is a bit scary to my opinion.
    Other users have already posted their opinion. Oracle documentation, available online is a good source of information. I've learnt a lot reading it.
    But what is really important it try to work in a rational way:
    a) understand business , business requirement and data model.
    b) organize your job in a "safe" way. Version control is mandatory!! You cannot avoid it.
    c) Be clean and organized in your coding. Spaghetti coding doesn't lead you anywhere. And never miss documenting your code.
    d) Whenever you have a question constantly check Oracle documentations, Oracle forums, internet. Having web access is a great advantage of our days, you have all you need on your fingertips.
    If I can give you my humble opinion, learning is a slow path. You don't become expert in one day. It's a matter of learning and experiencing day by day.
    One last thing. Writing message like this:
    Any1 can guide me, how to debug oracle PL/SQL package, and have to fix bugs or changing the requirement by using toad, sometimes i resolve the problem, and i take backup in notepad, after sometime if i use the same notepad contents, the something changed, i dont no how to keep the "IF loop" correctly, Sometimes while editing, the loop nevigation changes, so that i am getting more confusions. I dont no how to correct the packages already written, and how to solve problems, i use anonymous for seeing output. Dont no how to identify and fix the bug or requirement changes,. I am not sure where the code need changes. How to test properly for fixing the bugs, and how to change the logic, any1 help me out from this,... kindly give me good solution.. thnak you in advanceis not nice. Your message looks confusing, a single paragraph, approximate English.
    Being clean and organized in your job is shown also in your messages. If you post your message in a clear and well written (and formatted) way you will have more chances to get an answer.
    Regards.
    Al

  • In JDBC Sender Adapter , the server is Microsoft SQL .I need to pass current date as the input column while Executing stored procedure, which will get me 10 Output Columns. Kindly suggest me the SQL Query String

    In JDBC Sender Adapter , the server is Microsoft SQL .I need to pass current date as the input column while Executing stored procedure, which will get me 10 Output Columns. Kindly suggest me the SQL Query String , for executing the Stored Procedure with Current date as the input .

    Hi Srinath,
    The below blog might be useful
    http://scn.sap.com/community/pi-and-soa-middleware/blog/2013/03/06/executing-stored-procedure-from-sender-adapter-in-sap-pi-71
    PI/XI: Sender JDBC adapter for Oracle stored procedures in 5 days
    regards,
    Harish

  • Same icons for objects in SQL Developer as Data Modeler

    Hello,
    would it be possible to display the same icons for objects in SQL Developer as Data Modeler?
    For example:
    - in SQLD a session temporary table has the icon of a table with an X symbol, in Data Modeler it is just a table icon.
    - in SQLD a materialized view has the icon of a table with 2 arrows, in data Modeler it is just a table icon.
    Joop

    Hi Joop,
    I think you will find that in Data Modeler's Physical Model tree the same icons are used for temporary Tables and Materialized Views as in SQL Developer.
    David

  • Sql loader loading data from legacy to Oracle

    Hi
    we have a requirement that we need to import data from legacy to oracle AR.We know that we need to put the data file in BIN folder,but I want to know about the data file source if we place in windows folder instead of BIN directory will SQL loader picks the file and loads the data.
    Thanks
    Y

    Yes,
    Refer this
    http://www.oracle.com/technology/products/database/utilities/htdocs/sql_loader_overview.html
    * Load data across a network. This means that a SQL*Loader client can be run on a different system from the one that is running the SQL*Loader server.
    * Load data from multiple datafiles during the same load session
    * Load data into multiple tables during the same load session
    * Specify the character set of the data
    * Selectively load data
    * Load data from disk, tape, or named pipe
    * Specify the character set of the data
    * Generate sophisticated error reports, which greatly aid troubleshooting
    * Load arbitrarily complex object-relational data
    * Use either conventional or direct path loading.
    -Arun

  • Pulling data from oracle into sql server 2005

    hi,
    these days i am working on sql server 2005 on windows server 2008 64 bit.
    and oracle 10g on 32 bit unix.
    my problem is that when i am pulling data from oracle into sql server it shows me about *500-700 entries less*.
    why this is happening? is it because 32 bit to 64bit? or is it because of different os?

    Akki,
    are you using snapshot or replication from MSSQL? I am doing the same thing, hope to share your experience.
    I am using import/export from MGT studio and pull some data from Oracle database, I am working on how to update the changes on these tables pulled from Oracle.
    Thanks,
    -hank

  • Complicated Question (see pdf): Use data from one table to find the same data in a second table and take other data from that table and place it in a third table. :)

    I don't even know if this is posible.
    I'm using iwork '09 
    View PDF

    I hope I can clarify:
    For our purposes here:
    Table 1 = "Step 2 - Product Sizes"
    Table 2 = "Option id Master"
    Table 3 = "Export - Product Info"
    Table 1:
    The user would enter values for "productcode," "Horz," and "Vert"
    "Size" would auto fill based on values in Horiz and Vert (I have this taken care of already).
    Table 2: This is a completely static table that I want to search against. - Data from other tables in the doc does not alter or change the data in this doc.
    We just want to look at table 2. Find the existing value in "table 2 : size" column that matches the "table 1 : size" column  and then pull the "optionids" and "productprice" from that row.
    Can the value from "Table 1 : Size" be used as a search term in "Table 2 : Size?"
    Table 3: The user does not enter any values on this table. 
    "productcode" is pulled from table 1 - "Table 1 :: A5" = "Table 3 :: A5"
    "optionids" and "productprice" are pulled from Table 2 columns "D" and "E" - however we do not know which Table 2 row it is pulling from until we enter data in Table 1.
    As I'm writing this I'm realizing that
    A. this is probably really confusing to you.
    B. this may be impossible inside of numbers.
    If you have some other method that would facilitate the same out come but be structured differently please let me know.
    --- maybe to help you understand further what I am doing here is my current workflow:
    I record the size of a piece of art.
    Then I manually go to my "Option id Master" and find the same size.
    I then copy the corresponding "optionids" and "productprice" cells. (these options control the prices displayed on my website)
    I got to my "Export - Product Info" table and paste the values in the corresponding cells.
    I was hoping to automate this as it takes a long time when you have hundreds of products.
    Thanks for the help!

  • Our exchange server crashed and we lost all contact and calendar data.  We found an app to get the contacts off of people's phone to import but can't find the same for calendar.  How do I get my calendar info off my phone and in to new exchange server?

    Our exchange server crashed and we lost all contact and calendar data.  We found an app to get the contacts off of people's phone to import but can't find the same for calendar.  How do I get my calendar info off my phone and in to new exchange server?

    You'd have to think through this, but it seems like if you are using Outlook, and the items vanished from the Outlook client as well as the server,that you could re-populate Outlook using iTunes. 

  • [Oracle][ODBC SQL Server Driver]String data, right truncation {01004}

    While importing data from SQL Server 2005 to Oracle gateway 11g Release2, i am getting following error:
    insert into CSDescr select * from CSDescr@sqlserver
    ERROR at line 1:
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    +[Oracle][ODBC SQL Server Driver]String data, right truncation {01004}+
    ORA-02063: preceding 2 lines from SQLSERVER
    Oracle database characterset is AL32UTF8
    SQLServer database characterset is SQL_Latin1_General_CP1_CI_AS
    Following is the configuration in the parameter file for gateway:
    HS_KEEP_REMOTE_COLUMN_SIZE=LOCAL
    HS_NLS_LENGTH_SEMANTICS=CHAR
    I think setting the HS_LANGUAGE parameter shall fix the error but I  want to know what should be the value of this parameter?

    HS_LANGUAGE needs to be set to a character set that is used by the foreign database
    So try: HS_LANGUAGE=american_america.WE8MSWIN1252
    Also specify HS_NLS_NCHAR=UCS2 as the nvarchars of a SQl Server are stored in UCS2 character set

Maybe you are looking for

  • (view hint or Query  writing method) using views in Select Query

    Need Assistance, Hi all, My database having many views. while i am joining the views in a select query increase the cost of the querys due to the complex joins in the conditions. While checking the select query with views individualy taking less cost

  • Sending LOB to procedure

    Is there any possibility how to send BLOB parameter to PL/SQL procedure from OCI The following PL/SQL code is working connect test_user1/test_user1; drop table test_tab; create table test_tab (f1 integer, f2 blob); create or replace procedure test_bl

  • I am in horry please if some one can help me with my FTP code, thanks

    import java.io.*; import java.net.*; import java.util.*; public class Ass_2 {      public static void main(String[] args){           String currentPath = new String(); currentPath = "ftp://ftp.scit.wlv.ac.uk/pub";           try {                Buffe

  • Process Chains Greyed in QA

    HI ,         I have transported my process chains from my Dev to QA, they are all active in Dev and they dont display in QA, but the name of the process chains still appear under the root "Not assigned", And all my Transports were also good, This is

  • Back up files from Mac Mini to external hard drive

    how do I back up the files and pictures to External Hard Drive before i Install the newer OSX Snow Leopard. current OSX is Leopard 10.5.8 any Helpful Tips and Tricks will be appreciated in basic step by step which I am not a Mac Expert. Thanks! Jay