Control file for United States Geometry

Has anyone built a control file to load all of the United States? I have tried dumping all of the STATES GEOM data out of the Demo, but to clean it up and use it in a control file to load it into a new table I need to dump it into Excel. Excel hits its limit on column numbers when trying to create the Row for Alaska.
does anyone have any other ideas on how I can do this.
Thanks in advance!
-Scott

Hi again Richard,
Again dumping the GEOM data from STATES table in the demo
the output looks like this:
Arizona AZ
SDO_GEOMETRY(3, NULL, NULL, SDO_ELEM_INFO_ARRAY(1, 3, 1), SDO_ORDINATE_ARRAY(-114.0498, 37.000423, -113.48438, 37, -112.8986, 37.000401, -112.5396, 37.000683 ........................etc..
To format the data from the demo so I can create a bulk load control file, it needs to be in the form of:
BEGINDATA
2003|Arizona|AZ|-112.5396|37.000683|-112|37.000977|-111.41205|37.001514|-111.13302|/
etc.....
this is what I am trying to accomplish, and why I would need Excel, or another tool, to help with the correct formatting.
The reason for this is that the GEOM data needs to be loaded into a different table on a different server, I only have the demo running on my local machine. I need to create this control file so I can create my own table on the production server and develop from that version of the database.
Hope that clears things up, thanks again.
-Scott

Similar Messages

  • Lost 2 of 3 Control Files for 8i - Can I recover?

    I had a hard drive crash and lost 2 of my 3 CONTROL files for my 8.1.6 database. I do have a backup, but I also have a 9i database on this machine and am afraid I will have to reinstall both of them. Is there a way that I will be able to restore my database (aka rebuild the control files) from just ONE Control File?
    Any help would be much appreciated. Thanks

    That's the reason you have 3 control files - so that you can recover from losing one of them. In theory (and also in practice) all 3 control files are exact copies of each other. Just copy the remaining one to the location(s) where Oracle is expecting to see the other 2 controlfiles.

  • Control file for the sql*loader

    hi
    i'm doing my project in database management as the part of my project i have to write the control file for the sql*loader so, any one please clear the funda...so that i can get back to my project work...help me with sample code ..

    Refer chapter 3 and 5 on this url for sql loader and its control file references :
    http://download-west.oracle.com/docs/cd/A91202_01/901_doc/server.901/a90192/toc.htm
    or
    http://download-east.oracle.com/docs/cd/A91202_01/901_doc/server.901/a90192/toc.htm
    You may also refer sql loader examples on this page:
    http://otn.oracle.com/sample_code/products/intermedia/htdocs/avi_bulk_loading.html
    Chandar

  • Control file for SQL*Loader

    Hello,
    I have the following file (2 line) which I want to intend in an oracle database with the SQL*Loader.
    tommy050+3423
    tom 070-0006
    The file consists of two lines and three columns.
    Column1 has always 5 digits and is a String. Additional empty digits will be filled with blanks. Here: “tommy” and “tom “
    Column2 has three digits and is a number. Here: “050” and “070”.
    Column 3 is also a number and consists of four digits. Additionally there is a fifth digit for the leading sign ("+" or "-"). Here: “+3423” and “-0006”.
    This file I want to import in my table “MyTab”.
    MyTab(
         thing          VARCHAR2(5)
         number     NUMBER(3)
         amount     NUMBER
    How would the control file for the SQL*Loader look like for this example?
    Regards
    Homer

    This is a start (untested)
        LOAD DATA
        INFILE 'sample.dat'
        BADFILE 'sample.bad'
        DISCARDFILE 'sample.dsc'
        APPEND
        INTO TABLE MyTab
          ( thing POSITION(1:5)  CHAR ,
           NUMBER    POSITION(6:8)  INTEGER,
           amount POSITION(9:12) INTEGER  )Can you have a column named number?

  • When purchasing on Apple TV, gives error "Only for United States customers"

    I am a United States customer and I have my Apple TV in the US and it works fine along with the new update that I got last night.
    It is connected via ethernet 100mbs lan and 'sees' my iTunes 7.6 on my computer (Windows XP) just fine.
    Sync works... plays YouTube just fine... all is great EXCEPT!!!!
    I cannot make ANY purchases from my Apple TV... is says something like:
    "...only for United States customers"
    and then it bombs out.
    Anyone else have this issue?

    Thank for you the quick reply...
    Yes, I have setup to default to the USA...
    And I have also setup Apple TV to connect to the US Itunes store.
    I have not changed anything, but it seemed to correct itself just a minute ago.
    Weird.
    I changed nothing, then it starting working by itself.
    Bug?

  • Hello  I just buy a iphone 5C of opportunity for united state (I live in France), but iCloud is block and I don t have the coordinates of the former owner.  how can I do?

    hello
    I just buy a iphone 5C of opportunity for united state (I live in France), but iCloud is block and I don t have the coordinates of the former owner.
    how can I do?

    The iPhone is Activation Locked. Without the AppleID and password of the original owner the iPhone is useless. Ask for a refund.

  • 12c Create Control File for Entire CDB (CDB-root + PDBs)

    Hi,
    In 12c, I understand that there is a single redo log and a single control file for an entire CDB. My question is what datafiles should I use to create control file for the entire CDB. According to Managing Control Files, I suppose I should use all the datafiles (the result of query from CDB-Root: select name from v$datafile), but in practice, the control file creation process can only be successful when I use CDB-Root databfiles. Thanks in advance for any advice.

    The actual error message is duplicate tablespace (system, sysaux), but the root-CDB and PDBs should have separate system and sysaux. The following is the script I used.
    CREATE CONTROLFILE REUSE DATABASE "CDB" RESETLOGS  ARCHIVELOG
        MAXLOGFILES 16
        MAXLOGMEMBERS 3
        MAXDATAFILES 1024
        MAXINSTANCES 8
        MAXLOGHISTORY 292
    LOGFILE
      GROUP 1 '/cdbdata/cdb/redo01.log'  SIZE 50M BLOCKSIZE 512,
      GROUP 2 '/cdbdata/cdb/redo02.log'  SIZE 50M BLOCKSIZE 512,
      GROUP 3 '/cdbdata/cdb/redo03.log'  SIZE 50M BLOCKSIZE 512
    DATAFILE
      '/cdbdata/cdb/system01.dbf',
      '/cdbdata/cdb/sysaux01.dbf',
      '/cdbdata/cdb/undotbs01.dbf',
      '/cdbdata/cdb/pdbseed/system01.dbf',
      '/cdbdata/cdb/users01.dbf',
      '/cdbdata/cdb/pdbseed/sysaux01.dbf',
      '/cdbdata/cdb/pdb1/system01.dbf',
      '/cdbdata/cdb/pdb1/sysaux01.dbf',
      '/cdbdata/cdb/pdb1/pdb1_users01.dbf'
    CHARACTER SET WE8MSWIN1252

  • Control file for Oracle Restore

    Hello All,
    We are making use of only ABAP stack of SAP ECC 6.0 Sr3 version
    Database version is Oracle 10.2
    how can i generate control file for ABAP stack only for database restore?
    Please Guide
    Best Regards,
    Amol Dounde

    Hi Amol,
    We discussed the issue in my previous threads;
    http://scn.sap.com/thread/3223223
    Best regards,
    Orkun Gedik

  • Concatenate positions in control file for sql*loader utility.

    Is there a way to concatenate several character positions in a control file for sql*loader???
    example... field1 position(1:3) || position(5:7) ????
    I would rather not create any unnecessary temp tables for a straight load...

    How about...
    /code
    field1 position(1:7) char "substr(:field1, 1, 3) || substr(:field1, 5)"

  • SQL-Loader Control file for Tab-delimited fields

    i want to import a text-file with TAB-DELIMITED fields and a line-break + return at the end of each record.
    a want to do this by sql-loader and a control file.
    please, can someone give me the statement:
    e.g.
    load data
    infile 'exaple.txt' .......
    (...field1, field2,....)
    thank you very much

    Case Study 3: Loading a Delimited, Free-Format File
    http://otn.oracle.com/pls/db92/db92.to_URL?urlname=http:%2F%2Fdownload-west.oracle.com%2Fdocs%2Fcd%2FB10501_01%2Fserver.920%2Fa96652%2Fch10.htm%231006907
    Modify the example and use 'terminated by whitespace' instead
    For more information on TERMINATED Fields see
    http://otn.oracle.com/pls/db92/db92.to_URL?remark=drilldown&urlname=http:%2F%2Fdownload-west.oracle.com%2Fdocs%2Fcd%2FB10501_01%2Fserver.920%2Fa96652%2Fch06.htm%231013838

  • Bursting control file for Printer not working in WINDOWS ENVIRONMENT

    Hi,
    We are trying to print xml publisher report output (PDF) using bursting control file. Is not wokring.
    We are using ebs (R12.1.1) on Windows environment.
    Any pre-requisite setup (ie. cups config) should be done before printing using control file. Please guide me i am not having knowledge in printer setup and printer part..
    Thanks in advance
    --Ben                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Hi Hussein,
    Yes, I am able to print seed concurrent report (o/p -text) to that printer (method:- giving the printer name and copies by clicking " Option " in SRS window.. )
    When i do the same for xml publisher publisher report to the same printer , its not working using bursting control file.
    I too made the test in xml publisher report without bursting control file , there i faced another new issue. Let me explain
    1. We are using RDF as data source . here o/p :-" XML "
    2. We are using RTF as layout. In template definition, i chose the default o/p type as :- "HTML"
    3. When i submit the request, i choose the printer which is working fine for printing seeded report. (method:- giving the printer name and copies by clicking " Option " in SRS window.. )
    4. My printer getting prints HTML tag, instead of desired o/p. I wondered after seeing the printout.
    5. I cross checked by clicking view output, its showing me the exact html output as per RTF layout.
    Dont know wat happening ??? Help me out.
    i did the same for changing default output type in template definition to RTF,PDF.. its printing source code of the output type instead of printing output.
    Thanks & Regards,
    --Ben                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • I am getting error while creating Control file for a fla file upoad in HANA

    Hi Experts,
    I am getting the following error when I try to create crtrol file for a flat file extraction in SAP HANA.
    Could not execute 'import data into table P935718."COPATBL" from 'COPATBL.csv' record delimited by '\n' fields ...'
    SAP DBTech JDBC: [257] (at 14): sql syntax error: incorrect syntax near "into": line 2 col 1 (at pos 14)
    Here is the code I have used to create control file after I creating the table.
    import data
    into table P935718."COPATBL"
    from 'COPATBL.csv'
        record delimited by '\n'
        fields delimited by ','
        optionally enclosed by '"'
    error log 'P935718.COPATBL.err'
    p935718 is my user ID, COPATBL is my table created, COPABL.CSV is a flat file.
    Please help me in this regard.
    Thanks,
    Guna

    Hello,
    guessing from the error message it looks that you are trying to execute "import data" as SQL command.
    Please note that import data is NOT SQL command but it is syntax for control file. You need to create file with this syntax on server and then use command: IMPORT FROM '/<path>/<filename>.ctl'
    In a shortcut:
    1.- create comma separated CSV file with your data - <source cvs>.csv
    2.- upload CVS file to HANA server
    3.- create the control file <filename>.ctl:
    import data
    into table <schema>."<table name>"
    from '<source cvs>.csv'
    record delimited by '
    fields delimited by ','
    optionally enclosed by '"'
    error log '<file name>.err'
    4.- execute command:
    IMPORT FROM '/<path>/<filename>.ctl'
    Please check following threads:
    How to load CSV files into HANA
    Will HANA supports Bulkload
    Tomas

  • Need help in writing the control file for SQLLOADER

    Is it possible to error out the Sqlloader in case the data fields in the data file for a row are more than the fields stated in the control file?
    i.e. My data file is something like
    aaa,bbb,cc
    dd,eee
    And my ctl file has just 2 columns in it. Is it possible to write a control file which will cause the Sqlloader to error out?
    Thanks...

    Nisha,
    Again I posted test example in your other post but here is how can do that
    CREATE TABLE mytest111 (
       col1 NUMBER,
       col2 NUMBER,
       col3 NUMBER
    LOAD DATA
    TRUNCATE INTO TABLE MYTEST111
    FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"'
    TRAILING NULLCOLS
    col1 integer external,
    col2 integer external
    #mytest.dat
    1,2,3
    1,2
    SQL*Loader: Release 10.2.0.1.0 - Production on Fri Apr 10 11:40:39 2009
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Control File:   mytest.ctl
    Data File:      mytest.dat
      Bad File:     mytest.bad
      Discard File:  none specified
    (Allow all discards)
    Number to load: ALL
    Number to skip: 0
    Errors allowed: 50
    Bind array:     64 rows, maximum of 256000 bytes
    Continuation:    none specified
    Path used:      Conventional
    Table USIUSER.MYTEST111, loaded from every logical record.
    Insert option in effect for this table: TRUNCATE
    TRAILING NULLCOLS option in effect
       Column Name                  Position   Len  Term Encl Datatype
    COL1                                FIRST     *   ,  O(") CHARACTER           
    COL2                                 NEXT     *   ,  O(") CHARACTER           
    Table MYTEST111:
      2 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:                  33024 bytes(64 rows)
    Read   buffer bytes: 1048576
    Total logical records skipped:          0
    Total logical records read:             2
    Total logical records rejected:         0
    Total logical records discarded:        0
    Run began on Fri Apr 10 11:40:39 2009
    Run ended on Fri Apr 10 11:40:40 2009
    Elapsed time was:     00:00:00.99
    CPU time was:         00:00:00.06
    {code}
    Regards                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Creating a standby control file for cloning a standby database

    Hi
    I am in the process of trying to document the cloning of a standby database. I am trying to amalgamate three different documents - one for a normal clone, one for the creation of a SB database, and the other a formal Oracle document - the Business Continuity doc.
    Among the several things that confuse me, is the issue of creating (or not) a standby control file.
    I am not doing any kind of data file deletion / copying from source to target, as the SB database is updated all day with data file changes. I am doing a complete copying over of the APPL_TOP and techstacks.
    My question then, is this: should I be worried about creating a standby control file? I am told by our Senior here that "you can get away with not doing it", which sounds like too much of a risk to me.
    I am under a bit of pressure for this and I am not 100% sure about certain issues (see my other post for knowing how many DATA_TOPS we have on the SB, for instance).
    Thanks for listening.
    AIX 5.2.
    Oracle 10g.
    DA

    Do you already have a Standby running ? (then it may be using a standby controlfile).
    Yes. And there is already a standby control file there. It seems to me, that if the data (logs) transfers are done each minute or whatever between source and SB, and the SB is a copy of the db, then we dont need to worry about any kind of data files, since they should be identical. The only things I will need to change are the configuration files like the ifile in both dbs and tns_names, listener, tnsnames.ora, and the init.ora.
    b. Are you creating a document about the process of creating standby from production ? If you plan to use DataGuard, you will need a standby controlfile. Otherwise , it depends on how you configure the standby.
    No. I am creating a doc for how to clone from Production to a SB environment. A reason behind this is that the Apps side of the SB is about 9 patches behind the Production box, and we need to update it. I believe this is the main reason for doing this.
    c. Just to check : You are NOT using Storage Mirroring -- ie D.R. ?
    No, no DR on this environment.
    Thanks.
    DA

  • No autobackup of control file for rman

    This is what I used for a backup of database. I do not have controlfile autobackup set, I back it up using rman commands. Backup is made to a third party media manager.
    I tried to restore and it cannot startup mount the database, it can only nomount the database. I am assumming this is because it cannot find the control file.
    Is it possible to recover the controlfile if autobackup not on ? I did make a backup current controlfile with the rman script below .. Is it possible to get back the database at all ..
    SQL> Connected to an idle instance.
    SQL> ORACLE instance started.
    Total System Global Area 1286066176 bytes
    Fixed Size 2221160 bytes
    Variable Size 805309336 bytes
    Database Buffers 469762048 bytes
    Redo Buffers 8773632 bytes
    ORA-00205: error in identifying control file, check alert log for more info
    This is the backup script.
    rman target xxx/xxx nocatalog << eof
    run {
    allocate channel t1 type 'sbt_tape' parms
    'ENV=(tdpo_optfile=xxxxxxxxxxxx)';
    backup as compressed backupset database plus archivelog delete input;
    release channel t1;
    quit
    eof
    rman target xxxx/xxxx nocatalog << eof
    run {
    allocate channel t1 type 'sbt_tape' parms
    'ENV=(tdpo_optfile=xxxxxxxxxxxxx)';
    backup current controlfile;
    release channel t1;
    quit
    eof
    CONFIGURE CONTROLFILE AUTOBACKUP OFF; # default
    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '%F'; # default

    joecbc wrote:
    I did find this in my ORACLE_HOME .. I was able to do the resrore controlfile command as below .. Not certain how the file named control02.ctl got there, maybe from my backup I did yesterday .. anyway the database is restored, thanks.
    RMAN> restore controlfile from '$ORACLE_HOME/fast_recovery_area/RMANT/control02.ctl';
    Starting restore at 05-OCT-12
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: SID=212 device type=DISK
    channel ORA_DISK_1: copied control file copy
    output file name=/data99/oradata/RMANT/control01.ctl
    output file name=/u11/app/oracle/fast_recovery_area/RMANT/control02.ctl
    Finished restore at 05-OCT-12You have mutiplexed controlfile in two different location:
    /data99/oradata/RMANT
    /u11/app/oracle/fast_recovery_area/RMANT
    This controlfile "control02.ctl" was your current controlfile, you have controlfile in two different location "/data99/oradata/RMANT" and "/u11/app/oracle/fast_recovery_area/RMANT"
    So, be aware you have lost only this file "/data99/oradata/RMANT/control01.ctl" and the "control02.ctl" file is not a backup of controlfile, but is your current controlfile.
    You restored control01.ctl from control02.ctl
    Check it using command above
    sqlplus / as sysdba
    Select  name, status from v$controlfile.
    or
    show parameter controlEdited by: Levi Pereira on Oct 5, 2012 1:05 PM

Maybe you are looking for

  • Lightroom doent see the .icc profile - color profiles

    Lightroom 5 doent see the .icc profile -they are in the correct folder  C:\Windows\System32\spool\drivers\color - it sees some but not all - I have tried everything - even installing Lightroom again. Nothing seems to work I am running windows 7 profe

  • Which email service do you recommend for macbook pro?

    which email service do you recommend for macbook pro?  we have an HP desktop with Windows Mail that is sync'd  to laptop Mail currently.

  • Using illustrator to create flex skins

    Hi, I want to create a border container with only the top right and bottom right corners rounded. I had read somewhere that I can create the image in Adobe Illustrator and somehow use the code in the mxml skin for this border container(using the <pat

  • MAX shows my GBIP-USB Interface, but no communicatin with Labview

    I'm using a GPIB-USB(Agilent) Inferface to communicate with my devices.I Install the drivers form agilent and Labview 6.0.2. MAX 2.0 does not show me my USB-GBIP Interface and no devices. So i have download MAX 2.2 and now i can communicate with my d

  • ALE_EDI_Query?

    Hi.. Can we use t-RFC port with EDI and file port with ALE? Thank You