Importing from 8 to oracle 10g

how can i export oracle 8 data to oracle 10g

Hi,
There is two ways to do it.
1) export from oracle 8 database and import in to oracle10g database
2) export oracle 8 data from oracle 10g database by using tns alias and import in to the oracle 10g database.
example: form oracle 10g database
     (tnsalias= for connect to oracle 8 from oracle 10g)
     exp system/XXXX@<tnsalias> file=xyz.dmp log=xyz.log ......
Alex

Similar Messages

  • Problem in importing data in oracle 10g from 9i backup

    Hi ,
    Am trying to import data in oracle 10g..but it does not importing constraints, and stop doing anything by the msg.
    About to enable constraints.....
    after this msg it does not work.
    plz help,
    Regards,
    Neha

    Hi Neha,
    You have a lot of options. I'll supose you can test first, and you're using an export file.
    First forget about the data, think in your database structure. So you can do this:
    exp userid=... file=exp_norows.dmp full=y rows=n statistics=none
    Now you have the structure of your database. Create the database, in 10g, empty, check you have all filesystem, etc. for you new datafiles. And do the import with parameter ignore=y, you'll see a lot off errors on SYSTEM schema, don't worry about it.
    Now you have the structure of you database in 10g. You can take a look in the import log file, looking for some possible errors come from your schemas. so check the objects, and check the schemas.
    Bear in mind things like CONNECT role in 9i it's different in 10g, you can't create db_links in 10g with "IDENTIFIED BY VALUES" because you'll get an ORA-00600, etc.
    Well, fix all problems on source database (9i) and repeate this procedure until you don't recieve any more errors (not a SYSTEM schema errors).
    When you have everything solved, you can try to import the data.
    I hope, this method can help you. If you have any problem do not hesitate to ask me.
    John Ospino Rivas

  • Data pump import from 11g to 10g

    I have 2 database: first is 11.2.0.2.0 and second is 10.2.0.1.0
    In 10g i created database link on 11g
    CREATE DATABASE LINK "TEST.LINK"
    CONNECT TO "monservice" IDENTIFIED BY "monservice"
    USING '(DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = host)(PORT = port))) (CONNECT_DATA = (SID = sid)))';
    And execute this query for test dbLink which work fine:
    select * from v$[email protected];
    After it i try to call open function:
    declare
    h number;
    begin
    h := dbms_datapump.open('IMPORT', 'TABLE', 'TEST.LINK', null, '10.2');
    end;
    and get exception: 39001. 00000 - "invalid argument value"
    if i remove 'TEST.LINK' from the arguments it works fine
    Edited by: 990594 on 26.02.2013 23:41

    Hi Richard Harrison,
    result for import from 11g to 10g:
    impdp user/pass@dburl schemas=SCHEMANAME network_link=TEST_LINK version=10.2
    Connected to: Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
    ORA-39001: invalid argument value
    ORA-39169: Local version of 10.2.0.1.0 cannot work with remote version of 11.2.0.2.0
    result for export from 11g to 10g:
    expdp user/pass@dburl schemas=SCHEMANAME network_link=TEST_LINK version=10.2
    Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64 bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing option
    ORA-39006: internal error
    ORA-39065: unexpected master process exception in DISPATCH
    ORA-04052: error occurred when looking up remote object SYS.KUPM$MCP@TEST_LINK
    ORA-00604: error occurred at recursive SQL level 3
    ORA-06544: PL/SQL: internal, error, arguments: [55916], [], [], [], [], [], [], []
    ORA-06553: PLS-801: internal error [55916]
    ORA-02063: preceding 2 lines from TEST_LINK
    ORA_39097: Data Pump job encountered unexpected error -4052

  • Hebrew Characters...Chars display as junk after import from 8i to 10g

    Gurus,
    I have a problem with a customer upgrade...
    Background of the issue... the customer is an Agile PLM customer of version 8.5 (Agile PLM version 8.5). The database was hosted on oracle 8i. He is intending to upgrade from Agile 8.5 to Agile 9.2.2.4. During this process he has upgraded he db from Agile 8.5 to Agile 9.2.2.4, and has also shifted the DB platform from 8i to 10g.
    Problem: There were hebrew characters entered in Varchar2 columns (Oracle 8i), which after upgrade are not displaying correctly. Newly entered hebrew characters after upgrade display correctly in UI...
    Customer DB Parameters : The nls parameters on the source db before upgrade(8i) are American_America.WE8ISO8859P1, and the destination db parameters are American_America.UTF8.
    What i have done to deal with the issue: i have tried exporting the db using UTF8 and importing the db to 10g on UTF8, but still the characters show as garble characters..., have tried various options of exporting/importing using the combinations of WE8ISO8859P1 char set as well as IW8ISO8859P8 charsets, as i have learnt during my research abt the charsets that Hebrew Characters are supported in IW8ISO8859P8 charset and not WE8ISO8859P1. My suspicion here is that the problem is with the export and import from 8i to 10g, and the Char conversion which is happening during this process..(this is my guess and i might be wrong tooo...)
    Currently this is a hot issue with the customer, and needs an immediate fix (to display the Hebrew characters properly after upgrade)
    I am a layman on the NLS Settings and couldnt figure out what else to do....I would request all the Gurus out there to help us figure out the problem and try resolve it...
    Thanks for your Help in Advance
    Regards,
    Raja.

    Hebrew characters aren't supported using the ISO 8859-1 character set. In the original system, what must be happening is that the NLS_LANG on the client matches the database character set, which tells the Oracle client not to do character set conversion. This causes Oracle to treat character data just as a binary data stream and to store whatever bits the client sends. So long as the client is really sending ISO 8859-8 data, telling Oracle it is ISO 8859-1, and on the return side asking Oracle for ISO 8859-1 and treating it internally as ISO 8859-8 while Oracle is doing no character set conversions, this will appear to work. But the data in the database is fundamentally wrong. You can configure things so that you can, apparently, store Chinese data in a US7ASCII database using this sort of approach, but you end up with screwed up data.
    This sort of problem usually comes to light when you start using tools (like export) that don't know how to mis-identify the data they are sending and retrieving like your application is doing or when character set conversion is necessary. Since the data in the database isn't valid ISO 8859-1, Oracle has no idea how to translate it to UTF8 properly.
    As previously suggested, the safest option is to move the data with a solution that replicates the behavior of the application. So
    - Set the client NLS_LANG to match the database character set (WE8ISO8859P1)
    - Extract the data to a flat file using SQL*Plus or a C/C++ application
    - This data file will, presumably, really be ISO 8859-8 encoded
    - Use SQL*Loader to load the data into the UTF8 database, specifying the actual character set (ISO 8859-8) in the control file.
    If you're rather more adventurous and working with Oracle Support, it is potentially possible to change the character set of the source database from ISO 8859-1 to ISO 8859-8 and then export and import will work properly. But this would require some undocumented options that shouldn't be used without Oracle Support being involved and introduces a number of risks that the flat file option avoids.
    Justin

  • How to run import from Unix Oracle 8.0.5 database with Windows Oracle client?

    How to run import from Unix Oracle 8.0.5 database via network with Windows Oracle client? Is it possible? When I try to do it Oracle client just hangs... If not which ones are compatible Aix or Solaris to Unix or it must be a Unix client to connect to Unix Oracle database. Thank's for any help.

    Hi,
    In our project we are using this type. Since in this project server in UNIX(DEC) and client is running on windows. We have created a listener which always listen requests from client and doing the according to the request.
    Step1. create a request table, where u are inserting ur request.
    step2. create PRO*C proram, which is listening request on the table. If there is any request, call the imp (executable). This is happening on server side.
    Benifit. U can make a request from cleint and ftp the file client sit.
    Are u interested in more details and code, pls send a mail to me
    ---- Boby Jose Thekkanath
    [email protected]
    Dharma Computers(p) Ltd. Bangalore.
    null

  • Exporting database from oracle 11g and then importing it in oracle 10g

    Hi! there every one...
    please tell me the way to export the data and my data structures i.e the complete database from Oracle 11g to older version(oracle 10g) and how to import it there..
    i'm moving the database from one machine to another without lan, preferably via storage device...

    EXPORT FROM 11G to 10G.
    1) log on to 11G box.
    2) cd /<>/product/app/oracle/product/10.2/network/admin/
    3) Get the connection string from tnsnames.ora for the respective instances
    4) export ORACLE_HOME=/<>/app/oracle/product/10.2.0
    5) export LD_LIBRARY_PATH=$ORACLE_HOME/lib
    6) cd /<>/app/oracle/product/10.2.0/bin
    7) #>./exp file= test.dmp ......
    Username: user1@<connection_string>
    Password:*******
    8) Import as usual

  • Importing a few Oracle 10g schemas into oracle 11g database

    Hi,
    I have the task to import a few schemas that are on oracle 10g database (10.2.0.4) into oracle 11gR2 database (11.2.0.2). Now I have only oracle 10g export and import utility (the 11g server is in not where I am given the import rights).
    Can I do the export of the 10g schemas using the 10g export utility and then import into 11g database using the 10g import utility? I ran a test to do that and found it works but would also like to have expert opinion on it.
    Also another question is: if the source schema is 11g - suppose- in that case can the 10g export/import utility still work? I mean export the schema from say db1 (which is 11g) using 10g export utility and import them into 11g database db2 (which is again 11g) using 10g import? I am asking because I don't have access to 11g server and trying to find what I can do with the 10g utilities.
    Thanks,

    set up a database link to the 10gR2 version database in the 11gR2 database.
    Now using the 11gR2 client impdp utility use
    impdp network_link=<link to 10gR2 database>
    Done.
    Your 'objection' you don't have access to 11gR2 doesn't count as you can install a 11gR2 client.
    Also generally speaking you should not use a lower version imp to imp to a higher version database
    Also exp and imp are deprecated in 10g and higher.
    Sybrand Bakker
    Senior Oracle DBA

  • Import xls to oracle 10g db

    I need to import xls files into 10g and have no idea where to start.
    The tables do not exist as yet, therefore they also need to be created.
    Please give me pointers on where to start.

    Start from here:
    http://tinyurl.com/p4bbd8
    Kamran Agayev A. (10g OCP)
    http://kamranagayev.wordpress.com
    [Step by Step install Oracle on Linux and Automate the installation using Shell Script |http://kamranagayev.wordpress.com/2009/05/01/step-by-step-installing-oracle-database-10g-release-2-on-linux-centos-and-automate-the-installation-using-linux-shell-script/]

  • Connect to MS-SQL Server from a Oracle 10g running under Solaris

    Hi,
    I have the following problem. I want to access a MS-SQL server from an Oracle database (10g Enterprise licence) that is running on Solaris.
    After googling a while, the following questions arise:
    - Is it correct that the Oracle Transparant Gateway for the SQL Server is not available on Solaris platforms (but only on Windows)?
    - Is it right, that the second possibility to solve this problem is to use an SQL-Server odbc driver for Solaris and access the SQL-Server over ODBC? And: Is this feature included in the Enterprise licence?
    - If yes, which driver is good and cheap ;-)?
    - Is there any other way to solve this problem?
    Thanks
    Aron
    Message was edited by:
    user583720

    I believe the Transparenet Gateway for SQL Server is available on Solaris. The problem is that you need a Unix based ODBC driver which you will also need to pay for.
    We had this same problem and decided to run a windows based Heterogeneous Services gateway and routed through it instead of using the SQL Server transparent gateway. The Heterogenous severives gateway is NOT an add on product (as is Transparent Gateway). The drawback would be performance as I would expect the native MS SQL transparent gateway to perform better, but in our case it worked acceptably.

  • Important differences between oracle 10g and 11g

    Hi friends, can anyone tell me (pointwise) what are the major (and minor) differences between Oracle 10g and 11g.
    Please point me to some documents if possible.
    Thanks in advance

    The name of the link says it all: "top_features."
    In short it is Oracle's list of what they have for marketing and sales reasons designated "top features."
    It is not intended to be, and is not, a complete list of features. Often the features Oracle does not
    talk about are the most important.
    Let me give you some examples. I have never seen Oracle announce DBMS_XPLAN as a new feature
    yet you should not run an explain plan without it. Neither have I ever seen Oracle announce the new
    NO_DATA_NEEDED predefined exception. I have listed literally hundreds of new features you will not
    find in Oracle's new features docs.
    I did a presentation at OpenWorld this year as part of the unconference titled "New Features in
    Database 11gR2 that Oracle will not announce." It was easy to prepare a one hour presentation with
    little fear of being proved incorrect. As I turned out only one of the features I presented was mentioned
    by Oracle.
    You can find the presentation slides here:
    http://www.morganslibrary.org/pres/oow09_ucnf.pdf

  • URGENT !!!!!!!!!How to pass parameters to Forms from Reports(Oracle 10g)

    Hai
    I can call a form named "ABC" from one Report, using "hyperlink" . The URL is
    http://....../forms90/f90servlet?form=c:/ABC&userid=a/a@a
    Now I want to pass 2 parameters (that are received in that report) to the form ABC.
    I am using Oracle 10g.
    What to do?
    Please reply soon.
    I am eagerly waiting for the solution.
    Please Help.
    Bye

    Hai
    Thank u for the reply.
    Is it possible to pass the variable instead of values.
    My report receives 2 parameters named p1 & p2. Actually I want to pass that parameters to the form from the report.
    I have tried as You said.
    //http/.........&otherparams=param1=:p1+param2=:p2
    Then the form receives the ":p1" as the value, it does not take the value of that variable p1.
    Please Reply Soon.
    Bye...

  • Can you import Access into Oracle 10g Express Edition?

    Hi all,
    I know you can import files from Access into some other versions of Oracle, but is it possible with 10g XE?
    I've been looking at all the tools in my browsers and none seem to do it.
    I guess I'll need to convert the tables into text, and then from text into Oracle?
    Thanks

    Why not give SQLDeveloper's migration a shot?
    You can get it for free here.
    http://www.oracle.com/technology/software/products/sql/index.html
    I've never personally done it, but it doesn't look to mind bending :)
    http://www.oracle.com/technology/obe/11gr1_db/appdev/msamigrate/msamigrate.htm
    Should work fine with XE.

  • Import from 8 to 10g

    Hi all.
    I have a .DMP from Oracle 8 and I must import in 10g r2 and I have no idea whats wrong with my import..
    I create the instance from the beginning and I still hve the same error.
    I suppose the problem is TEMP tablespace but i dont know how to resolve this.
    this is my .log file
    Connected to: Oracle Database 10g Release 10.2.0.2.0 - Production
    Export file created by EXPORT:V08.01.07 via conventional path
    Warning: the objects were exported by EXPORTA, not by you
    import done in US7ASCII character set and AL16UTF16 NCHAR character set
    import server uses WE8ISO8859P1 character set (possible charset conversion)
    export client uses WE8ISO8859P1 character set (possible charset conversion)
    export server uses WE8ISO8859P1 NCHAR character set (possible ncharset conversion)
    . importing SYSTEM's objects into SYSTEM
    IMP-00017: following statement failed with ORACLE error 12913:
    "CREATE TABLESPACE "TEMP" DATAFILE 'D:\ORACLE\ORADATA\INEVOLUP\TEMP01.DBF' "
    "SIZE 1073741824 , 'D:\ORACLE\ORADATA\INEVOLUP\TEMP02.DBF' SIZE 1073741"
    "824 DEFAULT STORAGE(INITIAL 65536 NEXT 65536 MINEXTENTS 1 MAXEXTENTS"
    " 2147483645 PCTINCREASE 0) ONLINE TEMPORARY "
    IMP-00003: ORACLE error 12913 encountered
    ORA-12913: Cannot create dictionary managed tablespace
    IMP-00017: following statement failed with ORACLE error 3249:
    "CREATE TABLESPACE "TOOLS" DATAFILE 'D:\ORACLE\ORADATA\INEVOLUP\TOOLS01.DBF"
    "' SIZE 209715200 DEFAULT STORAGE(INITIAL 32768 NEXT 32768 MINEXTENTS"
    " 1 MAXEXTENTS 4096 PCTINCREASE 0) ONLINE PERMANENT "
    IMP-00003: ORACLE error 3249 encountered
    ORA-03249: Uniform size for auto segment space managed tablespace should have atleast 5 blocks
    IMP-00017: following statement failed with ORACLE error 3249:
    "CREATE TABLESPACE "INDX" DATAFILE 'D:\ORACLE\ORADATA\INEVOLUP\INDX01.DBF' "
    "SIZE 2500M , 'D:\ORACLE\ORADATA\INEVOLUP\INDX02.DBF' SIZE 2500M "
    "DEFAULT STORAGE(INITIAL 16384 NEXT 16384 MINEXTENTS 1 MAXEXTENTS 5000 PCTI"
    "NCREASE 0) ONLINE PERMANENT "
    IMP-00003: ORACLE error 3249 encountered
    ORA-03249: Uniform size for auto segment space managed tablespace should have atleast 5 blocks
    IMP-00017: following statement failed with ORACLE error 24344:
    "BEGIN SYS.DBMS_PSWMG_IMPORT.IMPORT_PSW_VERIFY_FN(' P_USER_GRAL ', ' VERIF"
    "Y_FUNCTION ', ' username varchar2,password varchar2,old_password varchar2) "
    "RETURN boolean IS"
    " m integer;"
    " ischar boolean;"
    " chararray varchar2(52);"
    "BEGIN"
    " chararray:= ''abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'';"
    " -- Check if the password is same as the username"
    " IF password = username THEN"
    " raise_application_error(-20001, ''La clave no puede ser igual al usuar"
    "io'');"
    " END IF;"
    " -- Check for the minimum length of the password"
    " IF length(password) < 8 THEN"
    " raise_application_error(-20002, ''La clave no puede ser menor de 8 ca"
    "racteres'');"
    " END IF;"
    " -- 2. Check for the character"
    " ischar:=FALSE;"
    " m := length(password);"
    " FOR i IN 1..length(chararray) LOOP"
    " FOR j IN 1..m LOOP"
    " IF substr(password,j,1) = substr(chararray,i,1) THEN"
    " ischar:=TRUE;"
    " GOTO findpunct;"
    " END IF;"
    " END LOOP;"
    " END LOOP;"
    " IF ischar = FALSE THEN"
    " raise_application_error(-20003, ''La clave debe ser alfanumerica'');"
    " END IF;"
    " <<findpunct>>"
    " -- Everything is fine; return TRUE ;"
    " RETURN(TRUE);"
    "END;"
    "'); END;"
    IMP-00003: ORACLE error 24344 encountered
    ORA-24344: success with compilation error
    ORA-06512: at "SYS.DBMS_PSWMG_IMPORT", line 100
    ORA-06512: at line 1
    IMP-00017: following statement failed with ORACLE error 28004:
    "ALTER PROFILE "P_USER_GRAL" LIMIT PASSWORD_VERIFY_FUNCTION "VERIFY_FUNCTION"
    IMP-00003: ORACLE error 28004 encountered
    ORA-28004: invalid argument for function specified in PASSWORD_VERIFY_FUNCTION VERIFY_FUNCTION
    IMP-00017: following statement failed with ORACLE error 28004:
    "ALTER PROFILE "P_USER_ADMIN" LIMIT PASSWORD_VERIFY_FUNCTION "VERIFY_FUNCTIO"
    "N""
    IMP-00003: ORACLE error 28004 encountered
    ORA-28004: invalid argument for function specified in PASSWORD_VERIFY_FUNCTION VERIFY_FUNCTION
    IMP-00017: following statement failed with ORACLE error 959:
    "ALTER USER "SYSTEM" IDENTIFIED BY VALUES 'F5145E3A6C640AC2' DEFAULT TABLESP"
    "ACE "TOOLS" TEMPORARY TABLESPACE "TEMP" PROFILE "P_USER_ADMIN""
    IMP-00003: ORACLE error 959 encountered
    ORA-00959: tablespace 'TOOLS' does not exist
    IMP-00017: following statement failed with ORACLE error 959:
    "CREATE USER "TOAD" IDENTIFIED BY VALUES '4759257F78A8B5A3' DEFAULT TABLESPA"
    "CE "TOOLS" TEMPORARY TABLESPACE "INDX" PROFILE "P_USER_ADMIN""
    IMP-00003: ORACLE error 959 encountered
    ORA-00959: tablespace 'TOOLS' does not exist
    IMP-00017: following statement failed with ORACLE error 959:
    Thanks a lot....!!!

    What's your import command used?
    Oracle is trying to create tablespace during import if they don't exist. However the tablespace in 8i were using dictionary managed tablespace which is depreciate in 10g. Further more, if your target OS is different from source dmp file. the filename syntax won't be correct. For example, if you create tablespace on linux using windows path it will fail.
    In your case, you'd better precreate the tablespaces first to avoid the errors. Because the create tablespace failed all succeeding create table statements willl fail too.

  • Export/import from 9i to 10G

    Dear all
    i have oracle 9i database on windows
    i want to migrate to 10G on windows
    i know it is done by export/import utility but how it can be done please let me know as i need step by step documentation of it
    please let me know its urgent
    Regards

    To do a proper upgrade, I would go through the Upgrade Guide make sure my server hardware and configuration met pre-requirement, there's no compatibility issue between my applications and newly upgraded server etc.
    The Guide is very detailed and thorough.
    I really don't think there's a document that is both simple and in details.
    The upgrade guide even has a section specially talk about export/import option
    http://download-west.oracle.com/docs/cd/B19306_01/server.102/b14238/expimp.htm#i262247

  • Output required in MS Excel from Reports Oracle 10g error with built in pac

    Hi All,
    Our requirement is to get matrix report output in MS Excel. For that i found a report online. However, im having issues with Built-in Package OLE2.obj_type.
    Below is the report log file:
    ******* Custom: Version : UNKNOWN
    Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.
    XX_MATRIX_REPORT module: XX_MATRIX_REPORT
    Current system time is 10-AUG-2012 17:23:17
    +-----------------------------
    | Starting concurrent program execution...
    +-----------------------------
    APPLLCSP Environment Variable set to :
    Current NLS_LANG and NLS_NUMERIC_CHARACTERS Environment Variables are :
    American_America.UTF8
    Enter Password:
    REP-0736: There exist uncompiled program unit(s).
    REP-0736: There exist uncompiled program unit(s).
    REP-1247: Report contains uncompiled PL/SQL.
    REP-0069: Internal error
    REP-57054: In-process job terminated:Terminated with error:
    REP-1247: There exist uncompiled program unit(s).
    REP-1247: Report contains uncompiled PL/SQL.
    Report Builder: Release 10.1.2.3.0 - Production on Fri Aug 10 17:23:19 2012
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Start of log messages from FND_FILE
    End of log messages from FND_FILE
    Program exited with status 1
    Concurrent Manager encountered an error while running Oracle*Report for your concurrent request 11242010.
    Review your concurrent request log and/or report output file for more detailed information.
    Executing request completion options...
    Output file size:
    0
    Finished executing request completion options.
    Concurrent request completed
    Current system time is 10-AUG-2012 17:23:20
    Please Help!!!

    After Report:
    function AfterReport return boolean is
    begin
    RPT2XLS.release_memory;
    srw.user_exit('FND SRWEXIT');
    srw.message(101,'After Report');
    return (TRUE);
    end;
    RPT2XLS package body:
    PACKAGE BODY RPT2XLS IS
         TYPE ExcelCell IS RECORD(RowNo binary_integer,
                                                                     ColNo binary_integer,
                                                                     Val varchar2(2000),
                                                                     FontName varchar2(20),
                                                                     FontSize binary_integer,
                                                                     FontStyle binary_integer,
                                                                     FontColor binary_integer,
                                                                     BgrColor binary_integer,
                                                                     Format varchar2(60),
                                                                     Align xlHAlign
         TYPE ExcelCells IS TABLE OF ExcelCell;
         Cell ExcelCells := ExcelCells();
         CurrentRow binary_integer := 1;
         PROCEDURE new_line IS
         BEGIN
              CurrentRow := CurrentRow + 1;
         END;
         PROCEDURE put_cell(ColNo binary_integer, CellValue in varchar2,
                                                      FontName in varchar2 DEFAULT null,
                                                      FontSize in binary_integer DEFAULT null,
                                                      FontStyle in binary_integer DEFAULT null,
                                                      FontColor in binary_integer DEFAULT null,
                                                      BgrColor in binary_integer DEFAULT null,
                                                      Format in varchar2 DEFAULT null,
                                                      Align in xlHAlign DEFAULT null
                                                      ) IS
         BEGIN
              Cell.Extend;
              Cell(Cell.Last).RowNo := CurrentRow;
              Cell(Cell.Last).ColNo := ColNo;
              Cell(Cell.Last).Val := CellValue;
              Cell(Cell.Last).FontName := FontName;
              Cell(Cell.Last).FontSize := FontSize;
              Cell(Cell.Last).FontStyle := FontStyle;
              Cell(Cell.Last).FontColor := FontColor;
              Cell(Cell.Last).BgrColor := BgrColor;
              Cell(Cell.Last).Format := Format;
              Cell(Cell.Last).Align := Align;
         END;
    PROCEDURE run IS
              Application OLE2.OBJ_TYPE;
              Workbooks OLE2.OBJ_TYPE;
              Workbook OLE2.OBJ_TYPE;
              Worksheets OLE2.OBJ_TYPE;
              Worksheet OLE2.OBJ_TYPE;
              WorkCell OLE2.OBJ_TYPE;
              WorkColumn OLE2.OBJ_TYPE;
    WorkFont OLE2.OBJ_TYPE;
    WorkInterior OLE2.OBJ_TYPE;
              ArgList OLE2.LIST_TYPE;
         BEGIN
              Application := OLE2.create_obj('Excel.Application');
              OLE2.set_property(Application, 'Visible', 1);
              Workbooks := OLE2.get_obj_property(Application, 'Workbooks');
    Workbook := OLE2.invoke_obj(WorkBooks, 'Add');
              Worksheets := OLE2.get_obj_property(Workbook, 'Worksheets');
              Worksheet := OLE2.get_obj_property(Application, 'ActiveSheet');
              for i in Cell.First .. Cell.Last
              loop
                   if Cell(i).Val is not null then
                        ArgList := OLE2.create_arglist;
                        OLE2.add_arg(ArgList, Cell(i).RowNo);
                        ole2.add_arg(ArgList, Cell(i).ColNo);
                        WorkCell := OLE2.get_obj_property(Worksheet, 'Cells', ArgList);
                        ole2.destroy_arglist(ArgList);
                        ole2.set_property(WorkCell, 'Value', Cell(i).Val);
                        ole2.set_property(WorkCell, 'NumberFormat', Cell(i).Format);
                        if Cell(i).Align is not null then
                             ole2.set_property(WorkCell, 'HorizontalAlignment', Cell(i).Align);
                        end if;
                        WorkFont := OLE2.get_obj_property(WorkCell, 'Font');
                        WorkInterior := ole2.Get_Obj_Property(WorkCell, 'Interior');
                        if Cell(i).FontName is not null then
                             OLE2.set_property(WorkFont, 'Name', Cell(i).FontName);
                        end if;
                        if Cell(i).FontSize is not null then
                             OLE2.set_property(WorkFont, 'Size', Cell(i).FontSize);
                        end if;
                        if mod(Cell(i).FontStyle, 2) = 1 then
                             OLE2.set_property(WorkFont, 'Bold', 1);
                        end if;
                        if mod(Cell(i).FontStyle, 4) > 2 then
                             OLE2.set_property(WorkFont, 'Italic', 1);
                        end if;
                        if mod(Cell(i).FontStyle, 8) > 4 then
                             OLE2.set_property(WorkFont, 'Underline', 2);
                        end if;
                        if Cell(i).FontColor is not null then
                             OLE2.set_property(WorkFont, 'ColorIndex', Cell(i).FontColor);
                        end if;
                        if Cell(i).BgrColor is not null then
                             OLE2.set_property(WorkInterior, 'ColorIndex', Cell(i).BgrColor);
                        end if;
                        OLE2.release_obj(WorkInterior);
                        OLE2.release_obj(WorkFont);
                        OLE2.release_obj(WorkCell);
                   end if;
              end loop;
              ArgList := ole2.create_arglist;
              ole2.add_arg(ArgList, 'A:Z');
              WorkColumn := ole2.Get_Obj_Property(WorkSheet, 'Columns', ArgList);
              ole2.destroy_arglist(ArgList);
              ole2.invoke(WorkColumn, 'AutoFit');
              OLE2.release_obj(WorkColumn);
              OLE2.release_obj(Worksheet);
              OLE2.release_obj(Worksheets);
              OLE2.release_obj(Workbook);
              OLE2.release_obj(Workbooks);
              OLE2.release_obj(Application);
         END;
         PROCEDURE release_memory IS
         BEGIN
              Cell := ExcelCells();
              SYS.DBMS_SESSION.free_unused_user_memory;
         END;
    END;
    We are getting the error in log file Report contains uncompiled PL/SQL.
    due to ole2.obj_type...

  • Importing from an Oracle database converted from non-unicode to unicode - SSIS 2012

    Hi,
    I've some SSIS 2012 pkgs that read from a non-unicode Oracle database to a non-unicode SQL Server database.
    Few days later, the Oracle database will be converted to unicode one and so I need to update the SQL database and the SSIS pkgs. Obiously no data conversion transformations are present in the pkgs. I'd like to avoid to add more of these data conversions.
    As a first step, I'm trying to convert a SQL table to unicode format, but it isn't possible to convert non-unicode and unicode string data types.
    I did not expect to have an error about the conversion from to non-unicode Oracle database (not yet converted) to unicode SQL Server database: a such conversion doesn't lost any information content. For me, it is right to have an error by from unicode to
    non-unicode conversion.
    Any suggests to solve this issue with a minimum development effort? Many thanks

    Nope once you change datatypes to unicode you've to refresh metadata settings within SSIS packages for it to work fine. SSIS doesnt have the ability to do metadata changes at runtime. So someone has to update package metadata information to make them unicode
    to make sure it works correctly after the changes.
    What you can do is create test dbs in oracle and sql in uncode and create some modified packages based on it. Once you make changes to production dbs you need to move these modified copies also to production after making necessary config value changes like
    servername,dbname,folder paths etc and then they will continue to work normally without causing any further downtimes to the customer.
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

Maybe you are looking for