Database Migration:Resolving DB links issue.

Hi,
We are to migrate one of our production database to a new server. The DB version is 11.2.0.3 and it is on AIX 6.1. There will be no change in version of DB or OS.
In our setup there are some number of other Oracle databases which connects to this database using DB links. We do not use DNS so, DB links are completely dependent on IP address. In this case the IP of the database server will change due to migration.
My Question, Is there any way I can determine which databases connects to this database using DB links? We need to resolve those db links post migration.
Looking for kind help. Thanks.
-Gourab

940748 wrote:
Thanks for reply.
What I tried is to query dba_audit_trail and found a distinct list of USERHOST. These contains clients as PC/Application Servers/Other Database servers. This narrow down my search though, I can not confirm this list is 100%. DBA_AUDIT_TRAIL has a retention and there may be an application that runs twice a year.
--Gourab
Well, consider this.  Your connecting clients fall into three groups:
1) End-user desktops
2) Application servers
3) other databases using db links.
Hopefully, group 2 is already well known.
Group requires a bit of research, but is actually pretty easy to collect on an ad-hoc basis.
Create two sql script files.
-- sweep_db.sql --
spool sweep_db.log
connect system/manager@db_1
@query_db_links.sql
connect system/manager@db_2
@query_db_links.sql
-- etc, etc
spool off
exit
and
-- query_db_links.sql
select * from dba_db_links.
exit
You will need to know the names and connection credentials of all possible 'client' databases in order to build 'sweep_db.sql'.  And it will take a manual reading of sweep_db.log, but for a one-time effort that's not all that bad.
You may want to add some sqlplus formatting commands to sweep_db.sql

Similar Messages

  • 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;

  • 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

  • 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

  • Database Migration- DB2 Connect for 10G -BI

    Hi ,
    we are Installing  Netweaver BI 2004S, need for database migration- 10g. The existing database is DB & sql& the OS IS unix(AIX)pls answer the following Question.
    1.How to connect DB/SQL with the 10G. ?
    Pls mail me the necessary steps/links/guides/Notes regarding this.
    ***Accurate answers will be awarded Full points.***
    Regards
    CSM Reddy

    Are you currently running DB2 for Linux, Unix and Windows or DB2 for z/OS or DB2 for iSeries ?
    Regards,
    Thomas

  • Solaris 64 bits linking issue

    OS: Sun 5.2
    Code: C++
    Objective: Create static library as general.so
    I using Xerces in my application program. I compiled my application program successfully. When I was creating general.so, i should include the library libxerces-c.sl.24 (64 bit version). But the linker gives me error message, libxerces-c.sl.24 wrong machine class.
    If anyone can help me, I will appreciate that.
    Ramesh

    Hi Ramesh,
    Have you used the 64 bit compilation flags while compiling your program. By default the compilation happens for 32 bit. You would have to use the following flags to compile flag.
    %CC -xarch=v9 -o <target> <filename>
    You can check this out by writing a small program which has an infinite loop in it. Compile the program normally and run the proram in the background. Note the pid.
    Issue the following command.
    %pflags <pid>
    It will show something like
    data model = _ILP32
    Compile the program once again with the -xarch=v9 flag and repeat the same process.
    This time you would be able to see data model = _LP64
    So I think this should resolve your linking problem if you compile for 64 bit.
    I hope this helps
    Regards
    Aviroop

  • 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

  • Resolve Netflix traffic issues

    Seems Level 3 is claiming Verizon is purposely letting the network get saturated.
    See http://blog.level3.com/global-connectivity/verizons-accidental-mea-culpa
    From above link: "I can confirm that Level 3 is not the party refusing to add that capacity. In fact, Level 3 has asked Verizon for a long time to add interconnection capacity and to deliver the traffic its customers are requesting from our customers, but Verizon refuses."
    If the above is a misrepresentation then Verizon should sue Level 3 and Netflix and get the above information removed along with resolving the performance issues.
    Seeing these types of posts makes customers like me quite angry that we are not getting the service we are paying for!

    And more bad Verizon reviews.  People like myself are already start to leaving FIOS.  How can FIOS let this continue?
    See the link below that shows that going through a VPN and adding more server hops actually makes the Netflix connection much faster http://webcache.googleusercontent.com/search?q=cacheSbaw5MzAY8J:iamnotaprogrammer.com/Verizon-Fios-N...
    I had to use the google cache link since either the blog server or down or Verizon appears to be blocking the website.

  • 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?

  • 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.

  • Best practice for database migration in 11g

    Hello,
    Database migration is required due to OS change.  Here, I have two database instances say A and B in the old server where RDBMS_VERSION is 11.1.0.7.0. They need to be migrated into a new OS where the oracle has been installed with version 11.2.0.2.0.
    Since all data + objects need to be migrated into the new server, I want to know what the best practice is and how to do that. Thanks in advance for your necessary guidance.
    Thanks and Regards,
    Prosenjit

    Hi Prosenjit,
    you have some options.
    1. RMAN Restore: you can restore your database via rman to the new host, and then upgrade it.
        Please follow instruction from MOS Note: RMAN Restore of Backups as Part of a Database Upgrade (Doc ID 790559.1)
    2. Data Guard: check the MOS Note: Mixed Oracle Version support with Data Guard Redo Transport Services (Doc ID 785347.1)
    3. Full Export / Import (DataPump)
    Borys

  • Slow program response, crashes when creating titles and dynamic link issues

    Dear reader,
    I am now trialling Adobe CC OSX with Premiere Pro and After Effects before deciding to subscribe but I am experiencing a lot of issues while working.
    I am now working on an animation, but editing raw mxf files also gives crashes and slow responses/ program refreshes.
    1) Slow mouse response
    2) Slow program refresh while key framing visuals
    3) Rendering in PP is extremely slow when AE is open in the background, when closing AE and re-initiate the render in PP it renders super fast
    4) Crashes. When I overlay titles in my time line PP regularly crashes
    5) Dynamic Link issues when working combined in AE and PP where file connections in the time line get lost when the AE project has too many sequences
    I am curious to find out if other people are also experiencing these issues.
    I am indecisive in getting the paid yearly plan or move to FCPX instead? Or should I get a new MacPro and is this model too old?
    It worked fine 2 months ago, however I was still working on FCP7. After updating it is really bad working with it...
    My system consist of:
    MacPro mid-2010
    OSX 10.9.5 (13F34) (new installation)
    2x2,66Ghz 6-core Intel Xeon
    24GB DDR3 ECC
    Nvidia Quadro K5000, 4GB
    2x PCIe SSD 1TB
    2x HDD 3TB
    2x HDD 2TB
    Feedback is much appreciated! Best regards, Alexander

    this does work for basic colour correction but not when trying to grade an entire suqence to achieve a specific style, applying a vingette or certain effects have to be done in after effects.
    I want to try and get my whole sequence into after effects but preserve the edits and effects added in permier pro, is there any way to do this?
    rich

  • Problem while Pro*C compilation on Unix after 10g database migration.

    I am getting the following error while compiling Pro*C code after 10g Database migration,
    ld: 0706-006 Cannot find or open library file: -l trace10
    ld:open(): A file or directory in the path name does not exist.
    I am using a Makefile for compilation and this makes direct reference to library -ltrace10
    The $LIBPATH value is : /oracle/app/oracle/product/10.2.0/ora10gdb/lib:/usr/lib:/lib
    Please guide.
    Thanks in advance
    Kaustubh

    I am getting the following error while compiling Pro*C code after 10g Database migration,
    ld: 0706-006 Cannot find or open library file: -l trace10
    ld:open(): A file or directory in the path name does not exist.
    I am using a Makefile for compilation and this makes direct reference to library -ltrace10
    The $LIBPATH value is : /oracle/app/oracle/product/10.2.0/ora10gdb/lib:/usr/lib:/lib
    Please guide.
    Thanks in advance
    Kaustubh

  • Oracle Database Migration Verifier - Can it be used for diff table structur

    Hello,
    We have re-engineered the existing sybase tables to a new structure in Oracle for few of the tables.For example a table in sybase is normalized to two tables in oracle.In these cases can the "Oracle Database Migration Verifier" be mapped such that the columns in one table in sybase be mapped to two table is Oracle with their respective column names.
    In a gist can the tool be used even if the structure is not the same in the source and targer databases.
    Please let me know if you need more clarifications regarding my query.
    Regards,
    Ramanathan.K

    not really. The DMV was a simple tool for verifiying that what you now had in Oracle was what you had in Sybase. It does not do what you are expecting.
    B

Maybe you are looking for

  • Role Menu in BW 7.0

    I Need make a Role Menu un WAD BW 7.0. How do i make it? Regards.

  • Changing Logon Screen WebAS ABAP: image for header

    Hallo, we would like to change the default logon screen of a WebAS ABAP 7.0 service (CLPBID - APO Collaborative Transportation Planning). The problem is the image for the header (SICF, service, tab error pages, tab logon erros, configuration, adjust

  • My iphone 4 wont play alert tones

    After I upgraded to the new iOS 5.1 update my iphone 4 still wont play the SMS Sound, Apple needs to fix this problem as soon as possible or i will return my phone For a full refund

  • Vendor bankrupt

    vendor bankrupt how we can setupin sap and  for the alternative payee settings

  • Migration just not working

    from one Macbook Pro to another -- both Intel-based. 1) Try to do the transfer during setup of the new mac. Connect machines with firewire cable, new mac says "waiting for disks to appear", then "There is no OS X installed on the other machine." Balo