RUEI Database Migration
Hello everyone,
Currently i have RUEI 6.5.0 installed on Oracle Enterprise Linux Server 5 Release 6, with DB 11GR1.
Now i want to (actually i have to) reinstall this server due to hardware requirements.
I will use the same server specifications but i'll have a split server installation: one collector, one reporter.
Is there a way for not to lose all the collected data?
Thanks in advance!
If downtime and data loss during the migration is acceptable, the procedure doesn't have to be too complicated...
A high level overview of the migration could look like this:
- install the new system just like the install manual describes, with the exact same RUEI version as the old server
-- use same passwords and installation directories as in the old server!
- make a RUEI backup (System >> Maintenance >> Backup and restore) of the old server
- make a database backup (e.g. RMAN) of the old server (RUEI doesn't use logging for any tablespace, so either turn it on or make a cold backup)
- restore database on new server
- restore RUEI configuration on new server (System >> Maintenance >> Backup and restore)
- double check that all RUEI configuration on the new server are identical to the old one
Good luck with the migration!
Similar Messages
-
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
PrinceMigrating 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,
ProsenjitHi 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 -
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
KaustubhI 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.Knot 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 -
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 TeamHI 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, CCNAHi,
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 -
Hi i am using oracle 10.2 in windows 2003 server in test environment
when i tried to migrate the database from os file system to ASM
it give me the following error
Error
Examine and correct the following error(s), then retry the operation.
Remote Operation Error - ERROR: Wrong password for user
though i have provided the correct details
thanks & regardhi !
i tried it
but still same problem.
Error
Migrate Database To ASM: ASM Instance
Database Migrate Host asm
Logged In As SYS
An ASM instance should exist on host asm and be managed as an Enterprise Manager target. If the ASM instance already exists, add it as an Enterprise Manager target by providing connection information and clicking the Continue button. Otherwise, please use DBCA to create an ASM instance on this host before adding it as an Enterprise Manager target.
Add ASM Instance As An EM Target
* Target Name :+ASM_asm
* Oracle Home :C:\oracle\product\10.2.0\db_1
* SYS Username :sys
* SYS Password :migrate
* Role :SYSDBA
* Port :1521
* SID :+ASM
Host Credentials
Enter the credentials of the user who owns the database Oracle server installation.
* Username :administrator
* Password :pipl?123
Save as Preferred Credential
real error is
Examine and correct the following error(s), then retry the operation.
Remote Operation Error - ERROR: Wrong password for user
thanks & Regard -
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 -
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
Rajneeshh2. 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; -
Oracle Database Migration 10g between Cross Platform...!
Hi,
Like to know any is there any third party tool
available in the market for cross platform EASY database migration
between AIX - 10g R2 to Windows - 10g R2.
Before there used be a third party tool called DBPUT which is no longer
available now.Looking for similar type.
Any Suggestion Please.
Regards,Hi ,
Do it yourself , I suggest you to use export/import .
Master Note For Oracle Database Upgrades and Migrations (Doc ID 1152016.1)
Export/Import DataPump: The Minimum Requirements to Use Export DataPump and Import DataPump (System Privileges) (Doc ID 351598.1) -
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,
SergiuszHello,
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 -
Third Party Tools for Database Migration of 10g between Cross Platform?
Hi,
Like to know any is there any third party tool
available in the market for cross platform EASY database migration
between AIX - 10g R2 to Windows - 10g R2.
Before there used be a third party tool called DBPUT which is no longer
available now.Looking for similar type.
Any Suggestion Please.
Regards,why not using export/import (common Oracle tools) or use GoldenGate which allows you to migrate a production database w/o downtime.
- Klaus -
Split Table Procedure in Database Migration
Hello,
We are doing Database Migration from Informix to Oracle...
We have a Big Table PCL4 in our system which is around 100 GB..
I want to split the table and would like to know what is the procedure to do so...
What changes are to be done at database level , in STR Files , in TOC files and if any in .cmd files...
Thanks & Regards,
RaHuL...RaHul,
In my last experience with Informix migration (HeSC), I didn't use split table, because the following caution:
CAUTION: This may not be possible on databases that need exclusive access on the table when creating an index (for example, Informix).
I used the following informix features:
1. We fragmented the BIG Table (In our case CDCLS) into four peices ( Four DBSPACES) and moved CDCLS~0 (Index) to others DBSPACE.
2. We increased CPU VPs and used the following Informix parameters:
PDQPRIORITY 100
PSORT_NPROCS 32
The results of the test was: ~ 5hs50min less during export
Cheers,
Jairo -
EBS database migrate to exadata server.
Hi Experts,
My EBS database is 11.2.0.3. I'm going to migrate EBS database to exadata server. Please advise what patches need to be applied on exadata server for EBS database migration?
Thanks & Regards,Hello Angela,
I think what you're looking for is in My Oracle Support document ID 1392527.1 "Oracle E-Business Suite Release 11i & R12 Patches Required with Oracle Database 11g Release 2 (11.2.0) on Exadata". It has a detailed list of patch requirements for different combinations of EBS and database versions.
Cheers,
Marc
Maybe you are looking for
-
How to display descriptive flexfield values without clicking on the field
Hi, We are using ATTRIBUTE1 in PO Headers to provide a field for entering an emergency PO number. When users query a PO in the Puchase Order Headers form with a value in this field, they want the value to display on the form without having to click o
-
Reports taking unusually long time to load
Gurus, I am using BO 4.1 SP1. I am trying to open a report on BI launchpad. But it is taking very long time to load. This occurs even when i am trying to access the last instance. Window remains in the following state. I checked load on the server.
-
Request procedure for migrating PPC 10.4 Server setup to Intel 10.4 Server
Here's the background: I've got a G5 Xserve running 10.4.11 Server. It's and OD Master, Windows PDC and AFP, NFS & SMB file server for my whole department. We've purchased a new Intel Xserve (prior to Leopard - I'm not ready to go there yet), but I'm
-
FTPS connection error in the adapter monitoring
Hi people, I make a FTPS connection and the adapter monitor give me this error: Error: Error connecting to ftp server 'ithppbd0': ConnectException: Connection timed out (errno:238) I use a certificate to make this connection. Is obligatory the use
-
Question about the requirement for goods issue from a delivery (VOFM)
Dear all ※Please note that this is related to the credit limit check. I am trying to set up the SAP system, so that if the maintenance contract (rental document) is billed at least once, the system would allow the user to bill the customer regardless