PostgreSQL Database migration help

I have table called TEST in postgreSQL database with some data and I want to migrate this to oracle. I am a newbie to oracle database and I dont know which is the suitable data types in oracle for my table. Below are the my table information. Can any one please help me with this scenario. This would be the greate help to me.
CREATE TABLE TEST(id integer,data_tab text[])
insert into TEST (1,'{DATA1,DATA2}')
insert into TEST (2,'{DATA3,DATA4}')
insert into TEST (3,'{DATA5,DATA6}')
I am using Oracle 10.2 version for migration.
Thanks

891903 wrote:
I am not worry about the normalizations rules at this point of time, I just need the solution. Please help me out.Neither now nor in the future! :-)
The Postgre text data type is defined as unlimited
http://www.postgresql.org/docs/8.3/interactive/datatype-character.html
The closest I would suggest you can come to this is to use a CLOB data type in Oracle which can hold 4GB of data.
I would suggest if you need more than 4GB of data in a single column of a single row, you might want to revisit the idea of normalisation!
Seriously though, if you are doing a migration, don't expect things to work in the same way on Oracle. The way Oracle works is different in a great number of ways to PostgreSQL. Don't expect that if you faithfully copy every table and index that your system will perform and operate exactly as it did previously. You are going to need to refactor some things and you're going to need to make changes here and there. If there are glaring design issues, it might be a time to approach correcting them.
Here's a link to the Oracle docs
http://www.oracle.com/pls/db111/homepage
I'd familiarise yourself with the concepts guide as a start...
http://download.oracle.com/docs/cd/B28359_01/server.111/b28318/toc.htm
HTH
David

Similar Messages

  • Database Migration Help/Suggestions Needed Plzzz Share You Views

    Dear Sirs
    Please help me in my database migration from old database to new database, as we have developed new application and want to switch from old but with using same data(not same database, instead with new and different structure) from old database so
    what i did are bellow thing ;
    1. Created new database with different database structure from old
    2. Used export command to export all data and restore it to one dummy database with (database structure as old database)
    3. created "insert into (select .......)" scripts to fetch out the data and put it into new database (with different structure)
    4.i verified and tested that data and did cross checking with old data.
    Now my problem
    1..Now my problem is that since we took backup on Dec 2010 and did all these activity and with that old database was operational so now more data is added from Dec 2010 till now(17/102011) how to take backup of that.
    2...And sir if somehow we able to do(till then i don’t know how) that then doing this whole procedure will again take few more days then we will again be trailing becoz old database is operational and will be until we do not switch to new with complete data.
    how to solve this problem of migration becz i cant put my old database down also for more then 4-5 hours to switch to new application
    Total database is approx: 60 GB
    Kindly help or give your expert suggestions as i am in great need of solution to my this problem
    Thanks

    839880 wrote:
    Dear Sirs
    Please help me in my database migration from old database to new database, as we have developed new application and want to switch from old but with using same data(not same database, instead with new and different structure) from old database so
    what i did are bellow thing ;
    1. Created new database with different database structure from old
    2. Used export command to export all data and restore it to one dummy database with (database structure as old database)
    3. created "insert into (select .......)" scripts to fetch out the data and put it into new database (with different structure)
    4.i verified and tested that data and did cross checking with old data.
    Now my problem
    1..Now my problem is that since we took backup on Dec 2010 and did all these activity and with that old database was operational so now more data is added from Dec 2010 till now(17/102011) how to take backup of that.
    2...And sir if somehow we able to do(till then i don’t know how) that then doing this whole procedure will again take few more days then we will again be trailing becoz old database is operational and will be until we do not switch to new with complete data.
    how to solve this problem of migration becz i cant put my old database down also for more then 4-5 hours to switch to new application
    Total database is approx: 60 GB
    Kindly help or give your expert suggestions as i am in great need of solution to my this problem
    ThanksWhat is the old database? WHat is the new databse? I'm assuming they are both Oracle but different versions? If so, what versions? Have you considered using a db link from the new to the old and INSERT INTO ... SELECT ... FROM OLD_TABLE@DBLINK?

  • Help!! How To Connect Java & PostgreSQL Database

    I'm final year student in comp sc. I'm doing java in my thesis.
    How to get/read data from postgresql using java?
    My thesis is "2 Dimensional Graph Statistics Online Viewing Using Java Applet". So i need a mechanism how to read data from postgresql database using java programming. Please Help!!

    Hi,
    getting started you need some basics on JDBC.
    Have a look at the tutorials, or look at this site (its german):
    http://www.furchur.de/de/informatik/laborberichte2.htm#dbswt
    Have a look at the java.sql package.
    First you need to build up a connection using
    java.sql.DriverManager.getConnection(...)
    The parameter for the PostgreSQL you must look somewhere.
    After you have a connection you can use Statements and PreparedStatements to get and set data in the database.
    At the end, make sure, the connection will be closed, otherwise data can be lost.
    Hope that will help you a little bit

  • Need help with database migration using export/import

    Hi,
    I am planning to do a database migration from 8.0.6 to 10.2.0.4. I am using export/import. Please answer some of my queries:
    1) Do i need to do full export using SYS/SYSTEM user.
    exp80 system/manager file=c:full.dmp log=c:\full.txt full=y consistent=y
    2) Will there be any data corruption while export.
    3) Is export/import the only method of migration/upgradation.
    Please help
    Thanks.

    I'll answer the specifics that I know about your questions, but please look at the post from Srini for additional info:
    1) Do i need to do full export using SYS/SYSTEM user.
    exp80 system/manager file=c:full.dmp log=c:\full.txt full=y consistent=yA full export will move as much information (metadata/data) as possible. In order to do a full export/import, you need to do this from a
    privileged account. A privileged account is one with EXP_FULL_DATABASE for export and IMP_FULL_DATABASE for import.
    2) Will there be any data corruption while export.The data in the objects that you are exporting is being read, nothing is written to user data. I'm not sure what this is available in 8.0.6,
    but if you need a consistent export, look to see if consistent=y is available in 8.0.6. All this means is that the dump file created will have
    consistent data in it.
    3) Is export/import the only method of migration/upgradation.If you are changing hardware, the only supported way from 8.0 to 10.2.0.4, that I know of, is using exp/imp.
    Hope this helps.
    Dean

  • Oracle E-business suite database migrate from AIX to Linux

    Oracle 11i application database migration from single Aix instance to oracle Linux cluster RAC.
    What is the easy way to migrate?
    Migrate single instance from aix to linux cluster.
    OR
    Migrate single instance from aix to linux cluster RAC.
    We have installed oracle Linux cluster.
    Please help me which way I can go with RAC.
    Thanks
    Prince

    Migrating to a single instance will be the simplest. The migration itself will not be much different between the two because you're migrating from one platform to another. The options you have available are, the traditional IMP/EXP, datapump, and RMAN to migrate to either a standalone or RAC environment. The difficulty will be in creating a RAC environment and a little a few extra steps in the RMAN restore. Working with RAC will make things harder, but the actual migration is similar. The steps to IMP/EXP, whether it's traditional or Datapump will be no different. However, standing up a RAC database will be.

  • Oracle Database Migration Assistant for Unicode (DMU) is now available!

    Oracle Database Migration Assistant for Unicode (DMU) is a next-generation GUI migration tool to help you migrate your databases to the Unicode character set. It is free for customers with database support contracts. The DMU is built on the same GUI platform as SQL Developer and JDeveloper. It uses dedicated RDBMS functionality to scan and convert a database to AL32UTF8 (or to the deprecated UTF8, if needed for some reasons). For existing AL32UTF8 and UTF8 databases, it provides a validation mode to check if data is really encoded in UTF-8. Learn more about the tool on its OTN pages.
    There is a new Database Migration Assistant for Unicode. We encourage you to post all questions related to the tool and to the database character set migration process in general to that forum.
    Thanks,
    The DMU Development Team

    HI there!
    7.6.03 ? Why do you use outdated software for your migration.
    At least use 7.6.06 or 7.7.07 !
    About the performance topic - well, you've to figure out what the database is waiting for.
    Activate time measurement, activate the DBanalyzer with a short snapshot interval (say 120 or 60 seconds) and check what warnings you get.
    Also you should use the parameter check to make sure that you don't run into any setup-induced bottlenecks.
    Apart from these very basic prerequisites for the analysis of this issue, you may want to check
    SAP Note 1464560 FAQ: R3load on MaxDB
    Maybe you can use some of the performance features available in the current R3load versions.
    regards,
    Lars
    p.s.
    open a support message if you're not able to do the performance analysis yourself.

  • PDP pages do not get restored in database migration

    Hi All,
    I have an issue while performing database migration. Let me explain the scenario. The issue is that I had migrated 4+1 databases, i.e., 1 Content db and 4 Project Server DBs. We have only 2 site collections listed in DB, PWA and Top level root site collection,
    obviously when I restored the content DB, the PWA site is also restored. So I deleted that as I need to provision a new one with the same name. So after restoration, I provisioned a new PWA site with the restored databases. It provisioned perfectly and our
    data like projects, custom fields, etc are present. Also EPT pages are listed but they are not working reason being PDP pages are not restored in the migration. I tried this migration on 2 separate environments as well apart from this one and same is the case
    in all restoration. Though there are ways to get the PDP pages like using Playbook tool or configuring Manually again, but as per the concept it should be migrated along with the content database.
    Can anyone please help in such situation as how can we get the PDP pages in database migration? Is there anything that I am missing?
    Thanks, Sumit Gupta SharePoint Consultant MCP, MCTS, CCNA

    Hi,
    The PDPs reside in a document library within the PWA site. You mentioned above when you did the 4+1 restore you deleted the PWA site, the main benefit of doing a 4+1 is that you don't lose the contents of your PWA site and effectively wire it back up on
    the new instance.
    If you restore again, this time, do not delete the PWA site and perform the reprovision, this will take your four Project server databases and then wire them back up to the PWA site (which includes your PDPs).
    In answer to your other question, yes Playbooks can be used to move PDP's between environments.
    So in short, don't delete the PWA site post content DB migration :)
    Hope this helps.
    Alex Burton
    www.epmsource.com |
    Twitter
    Project Server TechCenter |
    Project Developer Center |
    Project Server Help | Project Product Page

  • IBM DB2 to Oracle Database Migration Using SQL Developer

    Hi,
    We are doing migration of the whole database from IBM DB2 8.2 which is running in WINDOWS to Oracle 11g Database in LINUX.
    As part of pre-requisites we have installed the Oracle SQL Developer 4.0.1 (4.0.1.14.48) in Linux Server with JDK 1.7. Also Established a connection with Oracle Database.
    Questions:
    1) How can we enable the Third Party Database Connectivity in SQL Developer?
    I have copied the files db2jcc.jar and db2jcc_license_cu.jar from the IBM DB2 (Windows) to Oracle (Linux)
    2) Will these JAR files are universal drivers? will these jar files will support in Linux platform?
    3) I got a DB2 full privileged schema name "assistdba", Shall i create a new user with the same name "assistdba" in the Oracle Database & grant DBA Privillege? (This is for Repository Creation)
    4) We have around 35GB of data in DB2, shall i proceed with ONLINE CAPTURE during the migration?
    5) Do you have any approx. estimation of Time to migrate a 35 GB of data?
    6) In-case of any issue during the migration activity, shall i get an support from Oracle Team (We have a Valid Support ID)?
    7) What are all the necessary Test Cases to confirm the status of VALID Migration?
    Request you to share the relevant metalink documents!!!
    Kindly guide me in-order to go-ahead with the successful migration.
    Thanks in Advance!!!
    Nagu
    [email protected]

    Hi Klaus,
    Continued with the above posts - Now we are doing another database migration from IBM DB2 to Oracle, which is very less of data (Eg: 20 Tables & 22 Indexes).
    As like previous database migration, we have done the pre-requirement steps.
    DB Using SQL Developer
    Created Migration Repository
    Connected with the created User in SQL Developer
    Captured the Source Database
    Converted Captured Model to Oracle
    Before Translation Phase we have clicked on the "Proceed Summary"
    Captured Database Objects & Converted Database Objects has been created under PROJECT section.
    Here while checking the status of captured & converted database objects, It's showing the below chart as sample:
    OVERVIEW
    PHASE               TABLE DETAILS          TABLE PCT
    CAPTURE               20/20                              100%
    CONVERT               20/20                              100%
    COMPILE                 0/20                                   0%
    TARGET STATUS
    DESC_OBJECT_NAME
    SCHEMANAME
    OBJECTNAME
    STATUS
    INDEX
    TRADEIN1
    SQLDEV:LINK:&SQLDEVPREF_TARGETCONN:null:TRADEIN1:INDEX:ARG_I1:oracle.dbtools.migration.workbench.core.ConnectionAwareDrillLink
    Missing
    INDEX
    TRADEIN1
    SQLDEV:LINK:&SQLDEVPREF_TARGETCONN:null:TRADEIN1:INDEX:H0INDEX01:oracle.dbtools.migration.workbench.core.ConnectionAwareDrillLink
    Missing
    INDEX
    TRADEIN1
    SQLDEV:LINK:&SQLDEVPREF_TARGETCONN:null:TRADEIN1:INDEX:H1INDEX01:oracle.dbtools.migration.workbench.core.ConnectionAwareDrillLink
    Missing
    INDEX
    TRADEIN1
    SQLDEV:LINK:&SQLDEVPREF_TARGETCONN:null:TRADEIN1:INDEX:H2INDEX01:oracle.dbtools.migration.workbench.core.ConnectionAwareDrillLink
    Missing
    INDEX
    TRADEIN1
    SQLDEV:LINK:&SQLDEVPREF_TARGETCONN:null:TRADEIN1:INDEX:H3INDEX01:oracle.dbtools.migration.workbench.core.ConnectionAwareDrillLink
    Missing
    INDEX
    TRADEIN1
    SQLDEV:LINK:&SQLDEVPREF_TARGETCONN:null:TRADEIN1:INDEX:H4INDEX01:oracle.dbtools.migration.workbench.core.ConnectionAwareDrillLink
    Missing
    INDEX
    TRADEIN1
    SQLDEV:LINK:&SQLDEVPREF_TARGETCONN:null:TRADEIN1:INDEX:H4INDEX02:oracle.dbtools.migration.workbench.core.ConnectionAwareDrillLink
    Missing
    INDEX
    TRADEIN1
    SQLDEV:LINK:&SQLDEVPREF_TARGETCONN:null:TRADEIN1:INDEX:H5INDEX01:oracle.dbtools.migration.workbench.core.ConnectionAwareDrillLink
    Missing
    INDEX
    TRADEIN1
    SQLDEV:LINK:&SQLDEVPREF_TARGETCONN:null:TRADEIN1:INDEX:H7INDEX01:oracle.dbtools.migration.workbench.core.ConnectionAwareDrillLink
    Missing
    INDEX
    TRADEIN1
    SQLDEV:LINK:&SQLDEVPREF_TARGETCONN:null:TRADEIN1:INDEX:H7INDEX02:oracle.dbtools.migration.workbench.core.ConnectionAwareDrillLink
    Missing
    INDEX
    TRADEIN1
    SQLDEV:LINK:&SQLDEVPREF_TARGETCONN:null:TRADEIN1:INDEX:MAPIREP1:oracle.dbtools.migration.workbench.core.ConnectionAwareDrillLink
    Missing
    INDEX
    TRADEIN1
    SQLDEV:LINK:&SQLDEVPREF_TARGETCONN:null:TRADEIN1:INDEX:MAPISWIFT1:oracle.dbtools.migration.workbench.core.ConnectionAwareDrillLink
    Missing
    INDEX
    TRADEIN1
    SQLDEV:LINK:&SQLDEVPREF_TARGETCONN:null:TRADEIN1:INDEX:MAPITRAN1:oracle.dbtools.migration.workbench.core.ConnectionAwareDrillLink
    Missing
    INDEX
    TRADEIN1
    SQLDEV:LINK:&SQLDEVPREF_TARGETCONN:null:TRADEIN1:INDEX:OBJ_I1:oracle.dbtools.migration.workbench.core.ConnectionAwareDrillLink
    Missing
    INDEX
    TRADEIN1
    SQLDEV:LINK:&SQLDEVPREF_TARGETCONN:null:TRADEIN1:INDEX:OPR_I1:oracle.dbtools.migration.workbench.core.ConnectionAwareDrillLink
    Missing
    INDEX
    TRADEIN1
    SQLDEV:LINK:&SQLDEVPREF_TARGETCONN:null:TRADEIN1:INDEX:PRD_I1:oracle.dbtools.migration.workbench.core.ConnectionAwareDrillLink
    Missing
    INDEX
    TRADEIN1
    SQLDEV:LINK:&SQLDEVPREF_TARGETCONN:null:TRADEIN1:INDEX:S1TABLE01:oracle.dbtools.migration.workbench.core.ConnectionAwareDrillLink
    Missing
    INDEX
    TRADEIN1
    SQLDEV:LINK:&SQLDEVPREF_TARGETCONN:null:TRADEIN1:INDEX:STMT_I1:oracle.dbtools.migration.workbench.core.ConnectionAwareDrillLink
    Missing
    INDEX
    TRADEIN1
    SQLDEV:LINK:&SQLDEVPREF_TARGETCONN:null:TRADEIN1:INDEX:STM_I1:oracle.dbtools.migration.workbench.core.ConnectionAwareDrillLink
    Missing
    INDEX
    TRADEIN1
    SQLDEV:LINK:&SQLDEVPREF_TARGETCONN:null:TRADEIN1:INDEX:X0IAS39:oracle.dbtools.migration.workbench.core.ConnectionAwareDrillLink
    Missing
    We have seen only "Missing" in the chart, also we couldn't have any option to trace it in Log file.
    Only after the status is VALID, we can proceed with the Translation & Migration PHASE.
    Kindly help us how to approach this issue now.
    Thanks
    Nagu

  • Database Migration issue

    hi all
    i need your help
    i have completed my Database Migration from sql server 2008 to Oracle 11g
    i got a very diffrent kind of issue:
    Mgrated database
    SQL SERVER 2008 to ORACLE 11g
    using SQL DEVELOPER 3
    and when completed with all compilation and cross check
    i generated DATABASE Script
    by
    Database export Wizard
    Format: insert
    Line Terminator: enviroment default
    Save :as single file
    Encoding: Cp1252
    <<<<what is the meaning of these attributes like format,encoding.....etc....>>>>>>>
    and recreate in Oracle 11g,10g (on another machine)
    where i got so many errors
    most of time :
    Error(48,13): PLS-00905: object DBO_PMS_DB.SQLSERVER_UTILITIES is invalid
    SQLSERVER_UTILITIES is invalid
    how to resolve this issue?
    please help me out
    thanks
    Rajneesh

    h2. part 2
    temp_exp := REPLACE(temp_exp, '()', '(1)');
    IF TO_NUMBER(REGEXP_SUBSTR(temp_exp, '[[:digit:]]{2,4}$')) < 100 THEN
    IF TO_NUMBER(REGEXP_SUBSTR(temp_exp, '[[:digit:]]{2,4}$')) > 50 THEN
    temp_exp := REGEXP_REPLACE(temp_exp, '([[:digit:]]{2,4})$', '19' || '\1');
    ELSE
    temp_exp := REGEXP_REPLACE(temp_exp, '([[:digit:]]{2,4})$', '20' || '\1');
    END IF;
    END IF;
    format_str := '(DD) MON YYYY';
    ELSIF REGEXP_INSTR(temp_exp, '[-/\\.]') <> 0 THEN -- numeric date format
    -- require the setting for SET FORMAT to determine the interpretation of the numeric date format,
    -- default is mdy
    IF REGEXP_INSTR(temp_exp,
    -- e.g. 4/15/1996 or 15/4/1996 or 4/96/15
    '^([[:digit:]]{1,2})[-/\.]([[:digit:]]{1,2})[-/\.]([[:digit:]]{2,4})$') = 1 THEN
    temp_exp := REGEXP_REPLACE(temp_exp,
    '^([[:digit:]]{1,2})[-/\.]([[:digit:]]{1,2})[-/\.]([[:digit:]]{2,4})$',
    '\1/\2/\3');
    ELSIF REGEXP_INSTR(temp_exp,
    '^([[:digit:]]{1,2})[-/\.]([[:digit:]]{2,4})[-/\.]([[:digit:]]{1,2})$') = 1 THEN
    -- e.g. 15/96/4
    temp_exp := REGEXP_REPLACE(temp_exp,
    '^([[:digit:]]{1,2})[-/\.]([[:digit:]]{2,4})[-/\.]([[:digit:]]{1,2})$',
    '\1/\3/\2');
    ELSIF REGEXP_INSTR(temp_exp,
    '^([[:digit:]]{2,4})[-/\.]([[:digit:]]{1,2})[-/\.]([[:digit:]]{1,2})$') = 1 THEN
    -- e.g. 1996/4/15 or 1996/15/4
    temp_exp := REGEXP_REPLACE(temp_exp,
    '^([[:digit:]]{2,4})[-/\.]([[:digit:]]{1,2})[-/\.]([[:digit:]]{1,2})$',
    '\2/\3/\1');
    END IF;
    -- first component
    temp_val := TO_NUMBER(SUBSTR(temp_exp, 1, INSTR(temp_exp, '/') - 1));
    IF temp_val > 31 AND temp_val < 100 THEN
    format_str := 'YYYY/';
    IF temp_val > 50 THEN
    temp_exp := '19' || temp_exp;
    ELSE
    temp_exp := '20' || temp_exp;
    END IF;
    ELSIF temp_val > 12 THEN
    format_str := 'DD/';
    ELSE
    format_str := 'MM/';
    END IF;
    -- second component
    temp_val := TO_NUMBER(SUBSTR(temp_exp, INSTR(temp_exp, '/') + 1, INSTR(temp_exp, '/', 1, 2) - INSTR(temp_exp, '/') - 1));
    IF temp_val > 31 AND temp_val < 100 THEN
    format_str := format_str || 'YYYY/';
    IF temp_val > 50 THEN
    temp_exp := REGEXP_REPLACE(temp_exp, '/([[:digit:]]{2,4})/', '/19' || '\1/');
    ELSE
    temp_exp := REGEXP_REPLACE(temp_exp, '/([[:digit:]]{2,4})/', '/20' || '\1/');
    END IF;
    ELSIF temp_val > 12 THEN
    format_str := format_str || 'DD/';
    ELSE
    IF INSTR(format_str, 'MM') > 0 THEN
    format_str := format_str || 'DD';
    ELSE
    format_str := format_str || 'MM/';
    END IF;
    END IF;
    IF INSTR(format_str, 'MM') = 0 THEN
    format_str := format_str || 'MM';
    ELSIF INSTR(format_str, 'DD') = 0 THEN
    format_str := format_str || 'DD';
    ELSE
    IF TO_NUMBER(REGEXP_SUBSTR(temp_exp, '[[:digit:]]{2,4}$')) < 100 THEN
    IF TO_NUMBER(REGEXP_SUBSTR(temp_exp, '[[:digit:]]{2,4}$')) > 50 THEN
    temp_exp := REGEXP_REPLACE(temp_exp, '([[:digit:]]{2,4})$', '19' || '\1');
    ELSE
    temp_exp := REGEXP_REPLACE(temp_exp, '([[:digit:]]{2,4})$', '20' || '\1');
    END IF;
    END IF;
    format_str := format_str || '/YYYY';
    END IF;
    END IF;
    END IF;
    IF format_str IS NOT NULL THEN
    RETURN TO_DATE(temp_exp, format_str);
    ELSE
    RETURN TO_DATE(temp_exp, 'DD-MON-YYYY HH24:MI:SS');
    END IF;
    EXCEPTION
    WHEN OTHERS THEN
    RETURN NULL;
    END str_to_date;
    FUNCTION convert_(p_dataType IN VARCHAR2, p_expr IN VARCHAR2, p_style IN VARCHAR2 DEFAULT NULL)
    RETURN VARCHAR2
    IS
    v_ret_value VARCHAR2(50);
    v_format VARCHAR2(30);
    v_year_format VARCHAR2(5) := 'YY';
    v_format_type NUMBER;
    v_numeric_dataType BOOLEAN := TRUE;
    v_is_valid_date BINARY_INTEGER := 0;
    BEGIN
    IF INSTR(UPPER(p_dataType), 'DATE') <> 0 OR INSTR(UPPER(p_dataType), 'CHAR') <> 0 OR
         INSTR(UPPER(p_dataType), 'CLOB') <> 0 THEN
         v_numeric_dataType := FALSE;
    END IF;
    IF NOT v_numeric_dataType THEN
         SELECT NVL2(TO_DATE(p_expr), 1, 0) INTO v_is_valid_date FROM DUAL;
         END IF;
         IF (str_to_date(p_expr) IS NOT NULL OR v_is_valid_date != 0 ) THEN
         IF p_style IS NULL THEN
    v_ret_value := TO_NCHAR(p_expr);
    ELSE -- convert date to character data
    v_format_type := TO_NUMBER(p_style);
    IF v_format_type > 100 THEN
    v_year_format := 'YYYY';     
    END IF;
    v_format := CASE
    WHEN v_format_type = 1 OR v_format_type = 101 THEN 'MM/DD/' || v_year_format
    WHEN v_format_type = 2 OR v_format_type = 102 THEN v_year_format || '.MM.DD'
    WHEN v_format_type = 3 OR v_format_type = 103 THEN 'DD/MM/' || v_year_format
    WHEN v_format_type = 4 OR v_format_type = 104 THEN 'DD.MM.' || v_year_format
    WHEN v_format_type = 5 OR v_format_type = 105 THEN 'DD-MM-' || v_year_format
    WHEN v_format_type = 6 OR v_format_type = 106 THEN 'DD MM ' || v_year_format
    WHEN v_format_type = 7 OR v_format_type = 107 THEN 'MON DD, ' || v_year_format
    WHEN v_format_type = 8 OR v_format_type = 108 THEN 'HH12:MI:SS'
    WHEN v_format_type = 9 OR v_format_type = 109 THEN 'MON DD YYYY HH12:MI:SS.FF3AM'
    WHEN v_format_type = 10 OR v_format_type = 110 THEN 'MM-DD-' || v_year_format
    WHEN v_format_type = 11 OR v_format_type = 111 THEN v_year_format || '/MM/DD'
    WHEN v_format_type = 12 OR v_format_type = 112 THEN v_year_format || 'MMDD'
    WHEN v_format_type = 13 OR v_format_type = 113 THEN 'DD MON YYYY HH12:MI:SS.FF3'
    WHEN v_format_type = 14 OR v_format_type = 114 THEN 'HH24:MI:SS.FF3'
    WHEN v_format_type = 20 OR v_format_type = 120 THEN 'YYYY-MM-DD HH24:MI:SS'
    WHEN v_format_type = 21 OR v_format_type = 121 THEN 'YYYY-MM-DD HH24:MI:SS.FF3'
    WHEN v_format_type = 126 THEN 'YYYY-MM-DD HH12:MI:SS.FF3'
              WHEN v_format_type = 127 THEN 'YYYY-MM-DD HH12:MI:SS.FF3'
    WHEN v_format_type = 130 THEN 'DD MON YYYY HH12:MI:SS:FF3AM'
    WHEN v_format_type = 131 THEN 'DD/MM/YY HH12:MI:SS:FF3AM'
    END;
              v_ret_value := CASE
                   WHEN v_format_type = 9 OR v_format_type = 109 OR
                        v_format_type = 13 OR v_format_type = 113 OR
                        v_format_type = 14 OR v_format_type = 114 OR
                        v_format_type = 20 OR v_format_type = 120 OR
                        v_format_type = 21 OR v_format_type = 121 OR
                        v_format_type = 126 OR v_format_type = 127 OR
                        v_format_type = 130 OR v_format_type = 131 THEN
                        CASE UPPER(p_dataType)
                             WHEN 'DATE' THEN TO_CHAR(TO_TIMESTAMP(p_expr, v_format))
         ELSE TO_CHAR(TO_TIMESTAMP(p_expr), v_format)
                        END
                   ELSE
                        CASE UPPER(p_dataType)
                             WHEN 'DATE' THEN TO_CHAR(TO_DATE(p_expr, v_format))
         ELSE TO_CHAR(TO_DATE(p_expr), v_format)
                        END
                   END;
    END IF;
    ELSE
    -- convert money or smallmoney to character data
    IF SUBSTR(p_expr, 1, 1) = '$' THEN
    v_ret_value := CASE TO_NUMBER(NVL(p_style, 1))
    WHEN 1 THEN TO_CHAR(SUBSTR(p_expr, 2), '999999999999999990.00')
    WHEN 2 THEN TO_CHAR(SUBSTR(p_expr, 2), '999,999,999,999,999,990.00')
    WHEN 3 THEN TO_CHAR(SUBSTR(p_expr, 2), '999999999999999990.0000')
    END;
    ELSE -- convert numeric data to character data
    v_ret_value := TO_CHAR(p_expr);
    END IF;
    END IF;
    RETURN v_ret_value;
    EXCEPTION
    WHEN OTHERS THEN
    raise_application_error(-20000, DBMS_UTILITY.FORMAT_ERROR_STACK);
    END convert_;
    FUNCTION year_(p_date_str IN VARCHAR2)
    RETURN NUMBER
    IS
    v_date DATE;
    BEGIN
    v_date := str_to_date(p_date_str);
    IF v_date IS NULL THEN
    RETURN NULL;
    END IF;
    RETURN TO_NUMBER(TO_CHAR(v_date, 'YY'));
    EXCEPTION
    WHEN OTHERS THEN
    raise_application_error(-20000, DBMS_UTILITY.FORMAT_ERROR_STACK);
    END year_;
    FUNCTION stuff(p_expr VARCHAR2, p_startIdx NUMBER, p_len NUMBER, p_replace_expr VARCHAR2)
    RETURN VARCHAR2
    IS
    BEGIN
    RETURN REPLACE(p_expr, SUBSTR(p_expr, p_startIdx, p_len), p_replace_expr);
    EXCEPTION
    WHEN OTHERS THEN
    raise_application_error(-20000, DBMS_UTILITY.FORMAT_ERROR_STACK);
    END stuff;
    PROCEDURE incrementTrancount
    IS
    BEGIN     
    trancount := trancount + 1;
    END incrementTrancount;
    FUNCTION dateadd(p_interval IN VARCHAR2, p_interval_val IN NUMBER, p_date_str IN VARCHAR2)
    RETURN DATE
    IS
    v_ucase_interval VARCHAR2(10);
    v_date DATE;
    BEGIN
    v_date := str_to_date(p_date_str);
    v_ucase_interval := UPPER(p_interval);
    IF v_ucase_interval IN ('YEAR', 'YY', 'YYYY')
    THEN
    RETURN ADD_MONTHS(v_date, p_interval_val * 12);
    ELSIF v_ucase_interval IN ('QUARTER', 'QQ', 'Q')
    THEN
    RETURN ADD_MONTHS(v_date, p_interval_val * 3);
    ELSIF v_ucase_interval IN ('MONTH', 'MM', 'M')
    THEN
    RETURN ADD_MONTHS(v_date, p_interval_val);
    ElSIF v_ucase_interval IN ('DAYOFYEAR', 'DY', 'Y', 'DAY', 'DD', 'D', 'WEEKDAY', 'DW', 'W')
    THEN
    RETURN v_date + p_interval_val;
    ElSIF v_ucase_interval IN ('WEEK', 'WK', 'WW')
    THEN
    RETURN v_date + (p_interval_val * 7);
    ElSIF v_ucase_interval IN ('HOUR', 'HH')
    THEN
    RETURN v_date + (p_interval_val / 24);
    ElSIF v_ucase_interval IN ('MINUTE', 'MI', 'N')
    THEN
    RETURN v_date + (p_interval_val / 24 / 60);
    ElSIF v_ucase_interval IN ('SECOND', 'SS', 'S')
    THEN
    RETURN v_date + (p_interval_val / 24 / 60 / 60);
    ElSIF v_ucase_interval IN ('MILLISECOND', 'MS')
    THEN
    RETURN v_date + (p_interval_val / 24 / 60 / 60 / 1000);
    ELSE
    RETURN NULL;
    END IF;
    EXCEPTION
    WHEN OTHERS THEN
    raise_application_error(-20000, DBMS_UTILITY.FORMAT_ERROR_STACK);
    END dateadd;
    FUNCTION isdate(p_expr IN VARCHAR2)
    RETURN NUMBER
    IS
    v_is_valid_date BINARY_INTEGER := 0;
    BEGIN
    IF str_to_date(p_expr) IS NOT NULL THEN
    RETURN 1;
    ELSE
    SELECT NVL2(TO_DATE(p_expr), 1, 0) INTO v_is_valid_date FROM DUAL;
    RETURN v_is_valid_date;
    END IF;
    EXCEPTION
    WHEN OTHERS THEN
    RETURN 0;
    END isdate;
    FUNCTION stats_date(p_table IN VARCHAR2, p_index IN VARCHAR2)
    RETURN DATE
    IS
    v_last_analyzed DATE;
    BEGIN
    SELECT last_analyzed INTO v_last_analyzed
    FROM USER_IND_STATISTICS
    WHERE table_name LIKE UPPER(p_table)
    AND index_name LIKE UPPER(p_index);
    RETURN v_last_analyzed;
    EXCEPTION
    WHEN OTHERS THEN
    raise_application_error(-20000, DBMS_UTILITY.FORMAT_ERROR_STACK);
    END stats_date;
    FUNCTION rand(p_seed NUMBER DEFAULT NULL)
    RETURN NUMBER
    IS
    v_rand_num NUMBER;
    BEGIN
    IF p_seed IS NOT NULL THEN
    DBMS_RANDOM.SEED(p_seed);
    END IF;
    v_rand_num := DBMS_RANDOM.VALUE();
    RETURN v_rand_num;
    EXCEPTION
    WHEN OTHERS THEN
    raise_application_error(-20000, DBMS_UTILITY.FORMAT_ERROR_STACK);
    END rand;
    FUNCTION to_base(p_dec NUMBER, p_base NUMBER)
    RETURN VARCHAR2
    IS
    v_str VARCHAR2(255);
    v_num NUMBER;
    v_hex VARCHAR2(16) DEFAULT '0123456789ABCDEF';
    BEGIN
    v_num := p_dec;
    IF p_dec IS NULL OR p_base IS NULL THEN
    RETURN NULL;
    END IF;
    IF TRUNC(p_dec) <> p_dec OR p_dec < 0 THEN
    RAISE PROGRAM_ERROR;
    END IF;
    LOOP
    v_str := SUBSTR(v_hex, MOD(v_num, p_base) + 1, 1) || v_str;
    v_num := TRUNC(v_num / p_base);
    EXIT WHEN v_num = 0;
    END LOOP;
    RETURN v_str;
    EXCEPTION
    WHEN OTHERS THEN
    raise_application_error(-20000, DBMS_UTILITY.FORMAT_ERROR_STACK);
    END to_base;
    FUNCTION patindex(p_pattern IN VARCHAR2, p_expr IN VARCHAR2)
    RETURN NUMBER
    IS
    v_search_pattern VARCHAR2(100);
    v_pos NUMBER := 0;
    BEGIN
    IF p_pattern IS NULL OR p_expr IS NULL THEN
    RETURN NULL;
    END IF;
    IF NOT DBMS_DB_VERSION.VER_LE_9_2 THEN
    v_search_pattern := p_pattern;
    v_search_pattern := REPLACE(v_search_pattern, '\', '\\');
    v_search_pattern := REPLACE(v_search_pattern, '*', '\*');
    v_search_pattern := REPLACE(v_search_pattern, '+', '\+');
    v_search_pattern := REPLACE(v_search_pattern, '?', '\?');
    v_search_pattern := REPLACE(v_search_pattern, '|', '\|');
    v_search_pattern := REPLACE(v_search_pattern, '^', '\^');
    v_search_pattern := REPLACE(v_search_pattern, '$', '\$');
    v_search_pattern := REPLACE(v_search_pattern, '.', '\.');
    v_search_pattern := REPLACE(v_search_pattern, '{', '\{');
    v_search_pattern := REPLACE(v_search_pattern, '_', '.');
    IF SUBSTR(v_search_pattern, 1, 1) != '%' AND
    SUBSTR(v_search_pattern, -1, 1) != '%' THEN
    v_search_pattern := '^' || v_search_pattern || '$';
    ELSIF SUBSTR(v_search_pattern, 1, 1) != '%' THEN
    v_search_pattern := '^' || SUBSTR(v_search_pattern, 1, LENGTH(v_search_pattern) - 1);
    ELSIF SUBSTR(v_search_pattern, -1, 1) != '%' THEN
    v_search_pattern := SUBSTR(v_search_pattern, 2) || '$';
    ELSE
    v_search_pattern := SUBSTR(v_search_pattern, 2, LENGTH(v_search_pattern) - 2);
    END IF;
    v_pos := REGEXP_INSTR(p_expr, v_search_pattern);
    ELSE
    v_pos := 0;
    END IF;
    RETURN v_pos;
    EXCEPTION
    WHEN OTHERS THEN
    raise_application_error(-20000, DBMS_UTILITY.FORMAT_ERROR_STACK);
    END patindex;
    FUNCTION datediff(p_datepart VARCHAR2, p_start_date_str VARCHAR2, p_end_date_str VARCHAR2)
    RETURN NUMBER
    IS
    v_ret_value NUMBER := NULL;
    v_part VARCHAR2(15);
    v_start_date DATE;
    v_end_date DATE;
    BEGIN
    v_start_date := str_to_date(p_start_date_str);
    v_end_date := str_to_date(p_end_date_str);
    v_part := UPPER(p_datepart);
    IF v_part IN ('YEAR', 'YY', 'YYYY') THEN
    IF EXTRACT(YEAR FROM v_end_date) - EXTRACT(YEAR FROM v_start_date) = 1 AND
    EXTRACT(MONTH FROM v_start_date) = 12 AND EXTRACT(MONTH FROM v_end_date) = 1 AND
    EXTRACT(DAY FROM v_start_date) = 31 AND EXTRACT(DAY FROM v_end_date) = 1 THEN
    -- When comparing December 31 to January 1 of the immediately succeeding year,
    -- DateDiff for Year ("yyyy") returns 1, even though only a day has elapsed.
    v_ret_value := 1;
    ELSE
    v_ret_value := ROUND(MONTHS_BETWEEN(v_end_date, v_start_date) / 12);
    END IF;
    ELSIF v_part IN ('QUARTER', 'QQ', 'Q') THEN
    v_ret_value := ROUND(MONTHS_BETWEEN(v_end_date, v_start_date) / 3);
    ELSIF v_part IN ('MONTH', 'MM', 'M') THEN
    v_ret_value := ROUND(MONTHS_BETWEEN(v_end_date, v_start_date));
    ElSIF v_part IN ('DAYOFYEAR', 'DY', 'Y') THEN
    v_ret_value := ROUND(v_end_date - v_start_date);
    ElSIF v_part IN ('DAY', 'DD', 'D') THEN
    v_ret_value := ROUND(v_end_date - v_start_date);
    ElSIF v_part IN ('WEEK', 'WK', 'WW') THEN
    v_ret_value := ROUND((v_end_date - v_start_date) / 7);
    ELSIF v_part IN ('WEEKDAY', 'DW', 'W') THEN
    v_ret_value := TO_CHAR(v_end_date, 'D') - TO_CHAR(v_start_date, 'D');
    ElSIF v_part IN ('HOUR', 'HH') THEN
    v_ret_value := ROUND((v_end_date - v_start_date) * 24);
    ElSIF v_part IN ('MINUTE', 'MI', 'N') THEN
    v_ret_value := ROUND((v_end_date - v_start_date) * 24 * 60);
    ElSIF v_part IN ('SECOND', 'SS', 'S') THEN
    v_ret_value := ROUND((v_end_date - v_start_date) * 24 * 60 * 60);
    ElSIF v_part IN ('MILLISECOND', 'MS') THEN
    v_ret_value := ROUND((v_end_date - v_start_date) * 24 * 60 * 60 * 1000);
    END IF;
    RETURN v_ret_value;
    EXCEPTION
    WHEN OTHERS THEN
    raise_application_error(-20000, DBMS_UTILITY.FORMAT_ERROR_STACK);
    END datediff;
    FUNCTION day_(p_date_str IN VARCHAR2)
    RETURN NUMBER
    IS
    v_date DATE;
    BEGIN
    v_date := str_to_date(p_date_str);
    IF v_date IS NULL THEN
    RETURN NULL;
    END IF;
    RETURN TO_NUMBER(TO_CHAR(v_date, 'DD'));
    EXCEPTION
    WHEN OTHERS THEN
    raise_application_error(-20000, DBMS_UTILITY.FORMAT_ERROR_STACK);
    END day_;
    FUNCTION ident_incr(p_sequence IN VARCHAR2)
    RETURN NUMBER
    IS
    v_incr_by NUMBER;
    BEGIN
    SELECT increment_by INTO v_incr_by
    FROM USER_SEQUENCES
    WHERE sequence_name LIKE UPPER(p_sequence);
    RETURN v_incr_by;
    EXCEPTION
    WHEN OTHERS THEN
    raise_application_error(-20000, DBMS_UTILITY.FORMAT_ERROR_STACK);
    END ident_incr;
    FUNCTION isnumeric(p_expr IN VARCHAR2)
    RETURN NUMBER
    IS
    numeric_val NUMBER;
    temp_str VARCHAR2(50);
    BEGIN
    temp_str := p_expr;
    IF SUBSTR(temp_str, 1, 1) = '$' THEN
    temp_str := SUBSTR(temp_str, 2);
    END IF;

  • Preview of the Database Migration Assistant for Unicode

    Dear Forum Readers,
    Are you attending Oracle OpenWorld next week in San Francisco? Is the process of migrating an existing database to Unicode (AL32UTF8/UTF8) of interest to you? If your answer is "yes" to both questions, you will be certainly interested in the following announcement: Database Migration Assistant for Unicode at Oracle OpenWorld
    Thanks,
    Sergiusz

    Hello,
    SQL Server 2012 setup program won’t allow you to perform a downgrade from SQL Server 2014 Express Edition. Backup/Restore
    and Detach/Attach won’t help you either.
    One option you have left is using SQL Server Import/Export Wizard as explained on the following article.
    http://www.mytechmantra.com/LearnSQLServer/Downgrade_SQL_Server_Database_P1.html
    Hope this helps.
    Regards,
    Alberto Morillo
    SQLCoffee.com

  • After Database migration,workflow mailer is not getting up

    After database migration, our workflow mailer is not getting up.
    Application version : 12.0.6
    DB version: 11.2.0.2
    Should we rebuild the workflow queues after migration.Please help!!!!!

    After database migration, our workflow mailer is not getting up.What migration? Please elaborate more.
    Please check the workflow log file for any errors.
    Should we rebuild the workflow queues after migration.Please help!!!!!Not necessarily – As requested above, check the log file as we cannot guess the cause of the issue without seeing the entries in the log file.
    Thanks,
    Hussein

  • RAC database Migration

    Hi Experts,
    I need some advice related to the Migration of RAC database, we have to migrate several RAC & Single-Instance databases from existing HP Itanium servers to Superdome2.
    Initially I thought of going with "addnode" for new Servers as additional Nodes to the existing RAC database then remove old Nodes for RAC databases migration, but there are some limitations in our evironment,
    1. There are no free IP addresses available to assign to new nodes from the existing IP segment.
    The IP Range (1 - 255) is divided into into several small segments of 16 IPs in each segment, and the segment in which the existing 2Node RAC DB is completely occupied and there is no free IP Available.
    If the new Node have IPs addresses from different segment in the same Subnet(IP Range) can it be added to the existing cluster?
    and if we cannot find any IP in that Subnet then can the nodes with the IPs from other Subnet be added to the Existing Cluster?
    2. To add a node to the existing RAC cluster, the new node should be exactly same, OS version, OS Patches...
    Our existing rx Itanium servers have "*HP-UX 11.31 Mission Critical Operating Environment*" for One 2 Node RAC Cluster and "*HP-UX 11.31 Enterprise Operating Environment*" for for another 2 Node RAC Cluster, but the HP Superdome 2 will have the Latest "*HP-UX 11.31 Data Center Operating Environment*"
    Can we proceed if there are some diferrences in OS patches...?
    Please see the Existing Environment Details below:*
    Prod 1 DB *2 Node RAC Cluster* :
    Hardware: rx 8640 Itanium Server
    OS: HP-UX 11.31 v3 Mission Critical Operating Environment
    DB Version: Oracle 10.2.0.2
    Prod 2 DB *2 Node RAC Cluster*:
    Hardware: rx 8640 Itanium Server
    OS: HP-UX 11.31 v3 Enterprise Operating Environment
    DB Version: Oracle 11.2.0.1 (2 Node RAC)
    Prod 3 DB *2 Node RAC Cluster*:
    Hardware: rx 6600 Itanium Server
    OS: HP-UX 11.31 v3 Enterprise Operating Environment
    DB Version: Oracle 11.1.0.6.0 (2 Node RAC)
    TARGET DB Environment for All the Databases will be;*
    Hardware: HP SUperdome 2
    OS: HP-UX 11.31Data Center Operating Environment
    DB Version: Oracle 11.2.0.3 (2 Node RAC)
    Also, all the 3 RAC databases are in Extended/Stretch RAC Cluster configuration and the new Superdome Env will also be in Extended RAC Cluster Configuration.
    Kindly advice what strategy should I follow for the Migration, waiting for your kind reply.
    Any help will be highly appreciated.
    Thanks in Advance.

    I am struck by your post with a couple of thoughts.
    1. Even though high availability appears to be something you are willing to invest substantial money in obtaining ... no one think patching important.
    2. Even though you've spent a substantial sum of money on hardware and software ... no one thinks networking important enough to address the lack of appropriate network infrastructure.
    Personally: I'd advise refusing to do the work until management makes the very small investment necessary to doing it correctly.

  • Oracle Database Migration Guide (MOS) and csscan info

    Hi
    I have to expdp select set of schemas from one database (10.2.0.5) to another (new database on new server - 10.2.0.5, both RHEL 5.8). I am basically moving a database fro move server to another and I have been told to do it this way. This is not a database migration from one release to another - but it is migration from one server to another within same release and version (same patch level).
    I believe there is more to it than just expdp and impdp. I have been trying to find some kind of checklist or guide on Oracle Support site which may guide me in right direction but could not find on this specific task (there are many on DB Upgrades and Migrations to new releases). I also heard of a tool called "csscan". I had a very beirf chat with an expert and he asked me to look for MOS on this task and also make use of csscan.
    Can anyone please help me find such document or guide?
    Best regards

    csscan is for checking to see if a character set change will affect data.  Do the two databases have different character sets?  Is the client different than the db?
    You can go to tahiti.oracle.com and select your version, then search for the term.
    You have to understand what grants and synonyms and procedural objects your app uses.  Details depend.

  • Zero-downtime Database Migration tool ?

    We are exploring\evaluating tools provided by Oracle (or its partners) that ensures Zero-downtime Database Migration. Migration should include:
    - Migration of data from one version of the application to another version with or without changes to the database schema.
    - Migration of data from staging to production where staging was used for beta testing to host customers who created live data which need to be migrated to production. (Oracle to Oracle, SQL Server to Oracle, MySQL to Oracle, etc)
    - if a data type changes (say int to varchar) in staging database for a particular column in a table, the change migration should happen in the production database as well
    - if a column is added\deleted in a table of staging database, the same table alteration should migrate to production database
    - records in production database should not be deleted\truncated during data\schema migration
    - maintain zero-downtime
    By Zero-Downtime we mean: both the source and the target should be up and accept updates in real time during migration process. This should again be synced across and hence help to eliminate downtime during migration between various vendor databases.
    We are not looking for any ETL product, but out-of-the-box products like GoldenGate and Celona that ensure Zero-downtime database migration.

    Hi,
    I dont think that there is any easy answer. It looks like huge project so it should be done part to part.
    If I understand
    1) you have create staging database with all changes
    2) production is in old structure
    3) now you want to merge this two databases into one? Or applly all changes form staging to prod?
    I see there one solution clone your staging and create new prod. Whenit's donw switch connection to your new prod database.
    Regards,
    Tom

  • Database Migration project Estimation

    Hello,
    Can someone help me with the techniques of estimating efforts for front end application changes required due to database migration (lets say from Sybase ASA to SQL Server/Oracle)?

    Hello,
    The following resources may help you.
    https://technet.microsoft.com/en-us/library/bb497050.aspx
    http://www.mssqltips.com/sqlservertip/1936/sql-server-database-migration-checklist/
    https://technet.microsoft.com/en-us/solutionaccelerators/dd537572
    Hope this helps.
    Regards,
    Alberto Morillo
    SQLCoffee.com

Maybe you are looking for

  • My tabs have stopped opening, any ideas why

    i can only use the tab that is open, i cannot open a new tab. this hpeened after i was trying to reinstate autofill, also the icon for autofill is missing and i cannot find it

  • Can't write to TestExec.ini

    I had made some changes to a 1st level subsequence (one that is called by the  main sequence) and ran some test and all was fine. Then I opened another 1st level subsequence to make similar changes. It opened but I got a message stating that TS could

  • Work is lost after illustrator freezes and then crashes when copying over to photoshop

    work is lost after illustrator freezes and then crashes when copying items over to photoshop, then when re-opening the illustrator file it gets to the end of reading the file to open then quits again? this keeps happening!

  • Windows 7 on Pavilion a6500f--Clean Install Freezes

    I am trying to do a clean install of Windows 7 Professional on the Pavilion a6500f. I am installing to a newly formatted drive partition. All goes well untill the very end when the setup program says it is completing the installation. Then the comput

  • Where do I find the 64 bit Quick Time Installation?

    Am trying to download itunes but need to download Quick Time for a 64  bit Windows 7  machine. Can only find QT for 32 bit.  Anyone know where I can find the 64 bit QT download? Thanks-jsp