ExtStringTemplate Warning while Converting a SQLServer DB to Oracle 10g
Hi everyone,
I hope this is the right Forum to ask about this. I apologize if I misplaced it
I am currently having some trouble with the migration of a MSSQL Database (2000 with all its stored Procedures) to ORACLE 10g. I am using the offline Capture Method to generate the captured Model without any errors or warnings.
But as soon as I convert the Captured Model to the ORACLE Model I get a bunch of Warning Messages that read as follows:
Oracle.dbtools.migration.parser.ext.ExtStringTemplate.setValue(ExtStringTemplate.java:134)
Clicking on Details does not give any further clues on which Object caused it during conversion.
During the last few Days I tried to find Information about this Warning Message searching several Blogs and Forums, but to no avail.
I would like to know how I could solve this problem or if it even might influence the applications later on that are supposed to work with the converted Database.
Any help with this is highly appreciated
Here some Information about the test Environment:
System specs:
Oracle runs in A Virtual Box Dev-Environment with Win2k3 as Guest OS
VirtualBox: 3.0.10 r54097
ORACLE Database 10g r 2
SQL Developer Info
Oracle SQL Developer 2.1.0.62
Version 2.1.0.62
Build MAIN-62.61
Copyright © 2005, 2009, Oracle. All Rights Reserved. Alle Rechte vorbehalten.
IDE Version: 11.1.1.2.36.54.96
Product ID: oracle.sqldeveloper
Product Version: 11.1.1.62.61
Version
Komponente Version
========== =======
Java(TM)-Plattform 1.6.0_11
Oracle-IDE 2.1.0.62.61
Versionierungsunterstützung 2.1.0.62.61
Eigenschaften
Name Wert
==== ====
apple.laf.useScreenMenuBar true
awt.toolkit sun.awt.windows.WToolkit
class.load.environment oracle.ide.boot.IdeClassLoadEnvironment
class.load.log.level CONFIG
class.transfer delegate
com.apple.macos.smallTabs true
com.apple.mrj.application.apple.menu.about.name "SQL_Developer"
com.apple.mrj.application.growbox.intrudes false
file.encoding Cp1252
file.encoding.pkg sun.io
file.separator \
ice.browser.forcegc false
ice.pilots.html4.ignoreNonGenericFonts true
ice.pilots.html4.tileOptThreshold 0
ide.AssertTracingDisabled true
ide.bootstrap.start 1174433566556
ide.build MAIN-62.61
ide.conf C:\Programme\sqldeveloper\sqldeveloper\bin\sqldeveloper.conf
ide.config_pathname C:\Programme\sqldeveloper\sqldeveloper\bin\sqldeveloper.conf
ide.debugbuild false
ide.devbuild false
ide.extension.search.path sqldeveloper/extensions:jdev/extensions:ide/extensions
ide.firstrun true
ide.java.minversion 1.6.0_04
ide.launcherProcessId 2636
ide.main.class oracle.ide.boot.IdeLauncher
ide.patches.dir ide/lib/patches
ide.pref.dir C:\Dokumente und Einstellungen\Administrator\Anwendungsdaten\SQL Developer
ide.pref.dir.base C:\Dokumente und Einstellungen\Administrator\Anwendungsdaten
ide.product oracle.sqldeveloper
ide.shell.enableFileTypeAssociation C:\Programme\sqldeveloper\sqldeveloper.exe
ide.splash.screen splash.gif
ide.startingArg0 C:\Programme\sqldeveloper\sqldeveloper.exe
ide.startingcwd C:\Dokumente und Einstellungen\Administrator\Desktop
ide.user.dir C:\Dokumente und Einstellungen\Administrator\Anwendungsdaten\SQL Developer
ide.user.dir.var IDE_USER_DIR
ide.work.dir C:\Dokumente und Einstellungen\Administrator\Eigene Dateien\SQL Developer
ide.work.dir.base C:\Dokumente und Einstellungen\Administrator\Eigene Dateien
java.awt.graphicsenv sun.awt.Win32GraphicsEnvironment
java.awt.printerjob sun.awt.windows.WPrinterJob
java.class.path ..\..\ide\lib\ide-boot.jar
java.class.version 50.0
java.endorsed.dirs C:\Programme\sqldeveloper\jdk\jre\lib\endorsed
java.ext.dirs C:\Programme\sqldeveloper\jdk\jre\lib\ext;C:\WINDOWS\Sun\Java\lib\ext
java.home C:\Programme\sqldeveloper\jdk\jre
java.io.tmpdir C:\DOKUME~1\ADMINI~1\LOKALE~1\Temp\
java.library.path C:\Programme\sqldeveloper;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\oracle\product\10.2.0\db_1\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Programme\Microsoft SQL Server\100\Tools\Binn\;C:\Programme\Microsoft SQL Server\100\DTS\Binn\;C:\Programme\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\;C:\Programme\Microsoft Visual Studio 9.0\Common7\IDE\PrivateAssemblies\;C:\WINDOWS\system32\WindowsPowerShell\v1.0
java.naming.factory.initial oracle.javatools.jndi.LocalInitialContextFactory
java.runtime.name Java(TM) SE Runtime Environment
java.runtime.version 1.6.0_11-b03
java.specification.name Java Platform API Specification
java.specification.vendor Sun Microsystems Inc.
java.specification.version 1.6
java.util.logging.config.file logging.conf
java.vendor Sun Microsystems Inc.
java.vendor.url http://java.sun.com/
java.vendor.url.bug http://java.sun.com/cgi-bin/bugreport.cgi
java.version 1.6.0_11
java.vm.info mixed mode
java.vm.name Java HotSpot(TM) Client VM
java.vm.specification.name Java Virtual Machine Specification
java.vm.specification.vendor Sun Microsystems Inc.
java.vm.specification.version 1.0
java.vm.vendor Sun Microsystems Inc.
java.vm.version 11.0-b16
jdbc.library /C:/Programme/sqldeveloper/jdbc/lib/ojdbc5.jar
line.separator \r\n
oracle.home C:\Programme\sqldeveloper
oracle.ide.util.AddinPolicyUtils.OVERRIDE_FLAG true
oracle.jdbc.Trace true
oracle.translated.locales de,es,fr,it,ja,ko,pt_BR,zh_CN,zh_TW
oracle.xdkjava.compatibility.version 9.0.4
orai18n.library /C:/Programme/sqldeveloper/jlib/orai18n.jar
os.arch x86
os.name Windows 2003
os.version 5.2
path.separator ;
reserved_filenames con,aux,prn,lpt1,lpt2,lpt3,lpt4,lpt5,lpt6,lpt7,lpt8,lpt9,com1,com2,com3,com4,com5,com6,com7,com8,com9,conin$,conout,conout$
sqldev.debug false
sun.arch.data.model 32
sun.boot.class.path C:\Programme\sqldeveloper\jdk\jre\lib\resources.jar;C:\Programme\sqldeveloper\jdk\jre\lib\rt.jar;C:\Programme\sqldeveloper\jdk\jre\lib\sunrsasign.jar;C:\Programme\sqldeveloper\jdk\jre\lib\jsse.jar;C:\Programme\sqldeveloper\jdk\jre\lib\jce.jar;C:\Programme\sqldeveloper\jdk\jre\lib\charsets.jar;C:\Programme\sqldeveloper\jdk\jre\classes
sun.boot.library.path C:\Programme\sqldeveloper\jdk\jre\bin
sun.cpu.endian little
sun.cpu.isalist pentium_pro+mmx pentium_pro pentium+mmx pentium i486 i386 i86
sun.desktop windows
sun.io.unicode.encoding UnicodeLittle
sun.java2d.ddoffscreen false
sun.jnu.encoding Cp1252
sun.management.compiler HotSpot Client Compiler
sun.os.patch.level Service Pack 2
svnkit.sax.useDefault true
user.country DE
user.dir C:\Programme\sqldeveloper\sqldeveloper\bin
user.home C:\Dokumente und Einstellungen\Administrator
user.language de
user.name Administrator
user.timezone Europe/Berlin
user.variant
windows.shell.font.languages
Erweiterungen
Name Identifier Version Status
==== ========== ======= ======
Audit oracle.ide.audit 11.1.1.2.36.54.96 Geladen
Check For Updates oracle.ide.webupdate 11.1.1.2.36.54.96 Geladen
Code Editor oracle.ide.ceditor 11.1.1.2.36.54.96 Geladen
Datenbank-UI oracle.ide.db 11.1.1.2.36.54.96 Geladen
Datenbankobjekt-Explorer oracle.ide.db.explorer 11.1.1.2.36.54.96 Geladen
Diff/Merge oracle.ide.diffmerge 11.1.1.2.36.54.96 Geladen
Extended IDE Platform oracle.javacore 11.1.1.2.36.54.96 Geladen
Externe Tools oracle.ide.externaltools 11.1.1.2.36.54.96 Geladen
File Support oracle.ide.files 11.1.1.2.36.54.96 Geladen
File System Navigator oracle.sqldeveloper.filenavigator 11.1.1.62.61 Geladen
Help System oracle.ide.help 11.1.1.2.36.54.96 Geladen
Import/Export Support oracle.ide.importexport 11.1.1.2.36.54.96 Geladen
Index Migrator support oracle.ideimpl.indexing-migrator 11.1.1.2.36.54.96 Geladen
JDeveloper Runner oracle.jdeveloper.runner 11.1.1.2.36.54.96 Geladen
Log Window oracle.ide.log 11.1.1.2.36.54.96 Geladen
Navigator oracle.ide.navigator 11.1.1.2.36.54.96 Geladen
Object Viewer oracle.sqldeveloper.oviewer 11.1.1.62.61 Geladen
Objektgalerie oracle.ide.gallery 11.1.1.2.36.54.96 Geladen
Oracle Data Modeler Reports oracle.sqldeveloper.datamodeler_reports 11.1.1.62.61 Geladen
Oracle Database Browser oracle.sqldeveloper.thirdparty.browsers 11.1.1.62.61 Geladen
Oracle IDE oracle.ide 11.1.1.2.36.54.96 Geladen
Oracle SQL Developer oracle.sqldeveloper 11.1.1.62.61 Geladen
Oracle SQL Developer Data Modeler Viewer oracle.datamodeler 2.0.0.574 Geladen
Oracle SQL Developer Extras oracle.sqldeveloper.extras 1.1.1.62.61 Geladen
Oracle SQL Developer Migrations oracle.sqldeveloper.migration 11.1.1.62.61 Geladen
Oracle SQL Developer Migrations - Antlr3 Translation Core oracle.sqldeveloper.migration.translation.core_antlr3 11.1.1.62.61 Geladen
Oracle SQL Developer Migrations - DB2 oracle.sqldeveloper.migration.db2 11.1.1.62.61 Geladen
Oracle SQL Developer Migrations - Microsoft Access oracle.sqldeveloper.migration.msaccess 11.1.1.62.61 Geladen
Oracle SQL Developer Migrations - MySQL oracle.sqldeveloper.migration.mysql 11.1.1.62.61 Geladen
Oracle SQL Developer Migrations - SQLServer oracle.sqldeveloper.migration.sqlserver 11.1.1.62.61 Geladen
Oracle SQL Developer Migrations - Sybase oracle.sqldeveloper.migration.sybase 11.1.1.62.61 Geladen
Oracle SQL Developer Migrations - Teradata oracle.sqldeveloper.migration.teradata 11.1.1.62.61 Geladen
Oracle SQL Developer Migrations - Translation Core oracle.sqldeveloper.migration.translation.core 11.1.1.62.61 Geladen
Oracle SQL Developer Migrations - Translation Db2 oracle.sqldeveloper.migration.translation.db2 11.1.1.62.61 Geladen
Oracle SQL Developer Migrations - Translation UI oracle.sqldeveloper.migration.translation.gui 11.1.1.62.61 Geladen
Oracle SQL Developer Reports oracle.sqldeveloper.report 11.1.1.62.61 Geladen
Oracle SQL Developer SearchBar oracle.sqldeveloper.searchbar 11.1.1.62.61 Geladen
Oracle SQL Developer TimesTen oracle.sqldeveloper.timesten 2.0.0.62.61 Geladen
Oracle SQL Developer Unit Test oracle.sqldeveloper.unit_test 11.1.1.62.61 Geladen
Oracle SQL Developer Worksheet oracle.sqldeveloper.worksheet 11.1.1.62.61 Geladen
Oracle XML Schema Support oracle.sqldeveloper.xmlschema 11.1.1.62.61 Geladen
PROBE Debugger oracle.jdeveloper.db.debug.probe 11.1.1.2.36.54.96 Geladen
Peek oracle.ide.peek 11.1.1.2.36.54.96 Geladen
Persistent Storage oracle.ide.persistence 11.1.1.2.36.54.96 Geladen
QuickDiff oracle.ide.quickdiff 11.1.1.2.36.54.96 Geladen
Replace With oracle.ide.replace 11.1.1.2.36.54.96 Geladen
Runner oracle.ide.runner 11.1.1.2.36.54.96 Geladen
Snippet Window oracle.sqldeveloper.snippet 11.1.1.62.61 Geladen
Sql Monitoring Project oracle.sqldeveloper.sqlmonitor 11.1.1.62.61 Geladen
Tuning oracle.sqldeveloper.tuning 11.1.1.62.61 Geladen
Unterstützung von Datenbankverbindungen oracle.jdeveloper.db.connection 11.1.1.2.36.54.96 Geladen
Unterstützung von Historie oracle.jdeveloper.history 11.1.1.2.36.54.96 Geladen
VHV oracle.ide.vhv 11.1.1.2.36.54.96 Geladen
Versionierungsunterstützung oracle.jdeveloper.vcs 11.1.1.2.36.54.96 Geladen
Versionierungsunterstützung für Subversion oracle.jdeveloper.subversion 11.1.1.2.36.54.96 Geladen
Virtual File System oracle.ide.vfs 11.1.1.2.36.54.96 Geladen
Web Browser and Proxy oracle.ide.webbrowser 11.1.1.2.36.54.96 Geladen
oracle.ide.indexing oracle.ide.indexing 11.1.1.2.36.54.96 Geladen
Thank you very much for your Reply.
Sorry that I couldn't write earlier.
--Does this stop your Oracle Model from being converted?
The conversion process completes with a few errors that I'm going to fix by hand.
--Is there anymore to the Exception ?
Concerning the Details button: When I click Details it only shows the same exception Message as posted above. Unfortunatly no stacktrace. But maybe there is some kind of logfile outside the IDE which I am not aware of yet, since I am rather new to working with sql developer. If you could point me to the stacktrace I will be happy to post it here.
--Can you skim through some of your converted procedures to see if anything stands out
I did as you suggested. There was a strange behaviour in a Procedure where there was a construct like N'<somestring>' in the original Transact SQL. Somehow every SQL statement that follows is recognized as a String, hence the code is not compiling at all.
There are also some Prcedures which exit with the message: "unexpected end of Subtree"
Edited by: gWahl on 13.11.2009 00:43
Similar Messages
-
How to convert varchar to BLOB in oracle 10g?
Hi all,
I have 2 columns A and B which are of varchar2(2000) dataype.
I would like to concatinate these 2 columns and convert them into BLOB in oracle 10g.
Any help is appreciated.
Regards,
Ravidon't use BLOB to store large text, use CLOB instead
anyway:
SQL> create table test
2 (txt varchar2(10)
3 ,other varchar2(10)
4 );
Table created.
SQL>
SQL> insert into test values ('some text', 'other text');
1 row created.
SQL>
SQL> create table test2
2 (col blob)
3 /
Table created.
SQL>
SQL> insert into test2
2 select utl_raw.cast_to_raw (txt||other)
3 from test
4 /
1 row created.
SQL> select *
2 from test2
3 /
SP2-0678: Column or attribute type can not be displayed by SQL*Plus
SQL>
SQL> select utl_raw.cast_to_varchar2(col)
2 from test2
3 /
UTL_RAW.CAST_TO_VARCHAR2(COL)
some textother text
SQL>
SQL> drop table test
2 /
Table dropped.
SQL> drop table test2
2 /
Table dropped. -
Problem in Converting Database into Archivelog mode (Oracle 10G)
Hi Team,
I come across a strange problem in the ORACLE 10G Server.
I am converting database mode from NoArchivelog to Archivelog mode through RMAN in 10G.
Now When I execute these following commands through RMAN prompt it works properly as shown below?
C:\>rman
Recovery Manager: Release 10.2.0.1.0 - Production on Thu Nov 30 18:01:08 2006
Copyright (c) 1982, 2005, Oracle. All rights reserved.
RMAN> connect target /
connected to target database: RAVI (DBID=4025722893, not open)
RMAN> shutdown immediate;
using target database control file instead of recovery catalog
database dismounted
Oracle instance shut down
RMAN> STARTUP MOUNT;
connected to target database (not started)
Oracle instance started
database mounted
Total System Global Area 167772160 bytes
Fixed Size 1247876 bytes
Variable Size 79693180 bytes
Database Buffers 79691776 bytes
Redo Buffers 7139328 bytes
RMAN> SQL 'ALTER DATABASE ARCHIVELOG';
sql statement: ALTER DATABASE ARCHIVELOG
RMAN> ALTER DATABASE OPEN;
database opened
RMAN>
But this same script when i writes in the backup.ora file & pass to Rman prompt it fails,
File backup.ora contains...
run
SHUTDOWN IMMEDIATE;
STARTUP MOUNT;
SQL 'ALTER DATABASE ARCHIVELOG';
ALTER DATABASE OPEN;
passed to RMAN as follows...
C:\OracleCode\BACKUP>"C:\oracle\product\10.2.0\db_1\bin\RMAN.EXE" target /"connect target SYSTEM/sreedhar@RAVI" log="C:\ORACLE~2\LOGS\backup_log.log" append cmdfile="C:\ORACLE~2\BACKUP\backup.ora"
RMAN> 2> 3> 4> 5> 6> 7> 8>
then it fails giving the following errors...
using target database control file instead of recovery catalog
database closed
database dismounted
Oracle instance shut down
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of startup command at 11/30/2006 18:05:59
ORA-12514: TNS:listener does not currently know of service requested in connect descriptor
Recovery Manager complete.
The same thing is working in the Oracle 9i but not in the Oracle 10G.
Can Anybody plz help me in this?
Regards,
S.Tiwari
.export ORACLE_SID=<SID>
rman target /cmdfile="C:\ORACLE~2\BACKUP\backup.ora"
it will connect to the default SID, there's no such thing as a default SID, what do you mean?
But what if there are more that one SID available & I
want to connect to SID other than the default SID.just specify the desired SID prior starting rman.
more over the same string is working with 9i but not
with 10G.maybe due to a bug?
to summarize, you have two options it you would like to start up the instance:
either you specify the SID prior starting rman and use os authentication
or
you register the instance statically and use oracle authentication.
regards,
-ap -
Migration from Sqlserver 2005 to Oracle 10g
Hi all,
does anyone know a tool good to migrate a sqlserver 2005 database to oracle 10g ?
I tried Sqldeveloper and the migration of tables and datas are ok, but when I try to migrate views, functions and procedures the sqldeveloper hangs.
regards,.
Wander (Brazil)Quite frankly forget using tools for all but the simplest migration: The best you will get from a tool, provided it works, is mediocrity.
Moving tables and data with tools works if you are using basic data types. Once you get past this, in all seriousness, it is time to roll up your sleeves and start writing code.
The differences between the two products is profound. What constitutes a transaction different, locking different, logging different, security models different, etc.
No tool can turn Transact SQL into nested BULK COLLECT and FORALL statements. And for many years into the future ... none will. -
Error while importing a dump file in Oracle 10g R1
Hi all,
While trying to import a schema using Data Dump, I am facing the following issue -
UDI-00018 - Import utility version can not be more recent than the Data Dump server.
Following is the version information of the source and target DB and the utilities :
Source DB server : 10.1.0.2.0
Export utility : 10.1.0.2.0
Import utility : 10.1.0.2.0
Target DB server : 10.1.0.2.0
Export utility : 10.2.0.1.0
Import utility : 10.2.0.1.0
I can figure out the cause for the problem, but don't know how to resolve it.
Any help will be appreciated.
Thanks in advance.
Gitika KhuranaHow did you get thre DMP file created and how are you trying to import the dump file? Could you post the commands you're using, please?
-
Error while importing a new CERT in oracle 10G B2B
Hi All,
I am trying to upload a new certificate in 10 G B2B server, its not updating a certificate, I am facing the below error while importing
Error
An error occurred when updating the certificate.
Error -: AIP-16001: The model validation engine failed due to an internal system error.
Error -: AIP-11052: Writing following objects: Certificate failed due to following constraint violation: CERTIFICATE. CAN NOT UPDATE UNVERSIONABLE OBJECT IN A VALIDATED CONFIGURATION.
Note: Please help me in resolving this ASAP.
Regards
SaiHi Sai,
It seems you are updating certificate in a delivery channel which is being used in a validated (or may be deployed) agreement. Please retire/purge any deployed configuration which is using that delivery channel and also make sure no such agreement is in valid state(which is using this delivery channel).
Regards,
Anuj -
Problem Faced While Using The Expdp Utility in Oracle 10g
We are getting the following error while exporting the tables of a schema.
ORA-39127: unexpected error from call to export_string :=DMSYS.DBMS_DM_MODEL_EXP
.instance_info_exp('DM$P_MODEL_EXPIMP_TEMP','YEARLID',1,1,'10.01.00.03.00',newbl
ock)
ORA-06503: PL/SQL: Function returned without value
ORA-06512: at "DMSYS.DBMS_DM_MODEL_EXP", line 1061
ORA-06512: at line 1
ORA-06512: at "SYS.DBMS_METADATA", line 4995
ORA-39125: Worker unexpected fatal error in KUPW$WORKER.UNLOAD_METADATA while ca
lling DBMS_METADATA.FETCH_XML_CLOB [TABLE:"YEARLID"."CONTACTS_PGRANT_NOV22"]ORA-06502: PL/SQL: numeric or value error: invalid LOB locator specified: ORA-22
275
The table CONTACTS_PGRANT_NOV22 has got a column of type CLOB. We are exporting in the metadata only mode. Interestingly when we are exporting only this table individually, we are not getting any problem. Please suggest at the earliest.Hi,
I need to take full export of the database with out data and for all schemas. Can you tell is below syntax correct or not:
expdp system directory=DATA_PUMP dumpfile=FullDB1_Jan25_08.dmp job_name=test3 logfile=FullDB1_Jan25_08_EXPDP.log CONTENT=METADATA_ONLY full=y
if I use above syntax I am not seeing all schema names in log file during expdp as we see in exp option.
Please let me know correct syntax. -
Error while deploying .ear file on the oracle 10g Application server
While deploying the ITS.ear or any other .ear file thru the application server console the screen shows the deploying screen continuously without any errors.The screen shows uploading the .ear file without any errors.Can somebody help me out it 's very urgent
Thanks in advance.Hello,
I asked you about the amount of AS instances because currntly I'm working on a clustering issue likewise. Nevertheless, your issue looks like a browser cache problem, have you tried different browsers to perform your deployment tasks? what about ant tasks?
hope it helps,
RB -
Issues while Add / Delete RAC Node in Oracle 10g R2
Hi,
I have an requirement to add a New Node in the existing 2 Node RAC at Production, where 1 Node is Active & other one is passive due to licence issue & cannot keep both the nodes as active. Due to performance issues (Memory , CPU Cores ..etc) we are adding another new node.
Right now we are planning to add a 3rd database node making the new node as active and current active one as passive which is a swap & later on after final observation delete and decommission the current passive node.
This activity is checked at the Dev database with the same infrastructure (OS + Memory ..etc) but want to check what is the best approach (or) challenges we face during the RAC Node Addition / Deletion
RAC DB Version : 10.2.o.4
OS Version : RHEL 5.8
(1) Is the approach is right one , First Adding the node & later on delete
(2) If the approach is the correct , what would be the behavious of the 3rd node in means of active (or) passive
(3) We have taken RMAN backup , OS backup , CRS , ORACLE_HOME , ASM_Home backup , OCR & VD.
(4) Could you please give detail steps for adding / deleting node in 10g R2.
(5) Are they any known bugs to us with the DB release (or) OS while performing this activity.
Since this is a production machine we want to more proactive . Please correct or add any thing i am missing out ...
With Thanks,
RakeshHello Rakesh,
Please follow the following steps.
Node Addition Steps
1. Install and configure OS and hardware for new node.
2. Add Oracle Clusterware to the new node.
3. Configure ONS for the new node.
4. Add ASM home to the new node.
5. Add Databse home to the new node.
6. Add a listener to the new node.
7. Add ASM instance to the New Node.
8. Add a database instance to the new node.
Details of steps
1. run cluvfy to verify whether New node is ready for addition or not.
$ cluvfy stage -pre crsinst -n node2
2. from node1, execute
$/u01/app/crs11g/oui/bin/addNode.sh
3. Specify node2 vip address and follow instructions.
4. In the last of installtion it may through an wornig and will ask to click on YES. click on YES
5. from node1,
/u01/app/crs11g/bin/racgons add_config node2:6200
6. from Node1,set ORACLE_HOME=ASM_HOME and then execute addNode.sh from $ASM_HOME/oui/bin and Follow instrusctions.
7. From node1, set ORACLE_HOME=DB_HOME and then
/u01/app/oracle/product/11.1.0/db_1/oui/bin/addNode.sh
and Follow instructions.
8. from node2 start NETCA and configure listener for new node. While configuring Listener select the name of new node.
9. from node1 start dbca from ASM Home to configure ASM instance for new node.
10. Again from node1 start dbca from DB Home to add DB instance
Node deletion Steps
1. Delete the Database instance on the node to be deleted.
2. Clean up the ASM instance.
3. Remove the listener from the node to be deleted.
4. Remove the node from the database.
5. Remove the node from ASM.
6. Remove ONS configuration from the node to be deleted.
7. Remove the node from the clusterware
Details of Steps
1. Remove database Instance of node2
Dbca -> instance Management -> delete instance -> password for sys -> select node -> finish.
2. Stop asm for node2 from any nodes.
$srvctl stop asm –n node2
3. Remove asm for node2
$ srvctl remove asm -n node2
4. Remove Listener from Node2 using NETCA.
5. From Node2:
./runInstaller -updateNodeList ORACLE_HOME=$ORACLE_HOME "CLUSTER_NODES=node2" -local
6. From Node2, start runinstaller from Oracle_DB_Home/oui/bin, and remove "DB_HOME"
$ ./runinstaller
On the WELCOME Screen -> Deinstall product -> Select dbhome name (OraDb10g_Home1) -> Remove
7. From Node1:
./runInstaller -updateNodeList ORACLE_HOME=$ORACLE_HOME "CLUSTER_NODES=node1"
8. From Node2, set Oracle_Home to asm_1 and then fire:
./runInstaller -updateNodeList ORACLE_HOME=$ORACLE_HOME "CLUSTER_NODES=node2" -local
9. From Node2, start OUI and deinstall ASM Home.
10. From Node1, Set ORACLE_HOME= /u01/app/oracle/product/11.1.0/asm_1
11. From Node1: from /u01/app/oracle/product/11.1.0/asm_1/oui/bin, start OUI
./runInstaller -updateNodeList ORACLE_HOME=$ORACLE_HOME "CLUSTER_NODES=node1"
12. From Node2: as a root user (#) execute rootdelete.sh from /u01/app/crs11g/install
# /u01/app/crs11g/install/rootdelete.sh
13.From Node-1 first find out the node numbers
# /u01/app/crs11g/bin/olsnodes -n
output : node1 1
node2 2
14. From Node-1 as a root user (#):
# /u01/app/crs11g/install/rootdeletenode.sh node2[Node_Name] 2[node_no]
output:
CRS nodeapps are deleted successfully
clscfg: EXISTING configuration version 4 detected.
clscfg: version 4 is 11 Release 1.
Node deletion operation successful.
'node2' deleted successfully
15. From Node2 set ORACLE_HOME=CRS_HOME and then execute
$$ORACLE_HOME/oui/bin/runInstaller -updateNodeList ORACLE_HOME=$ORACLE_HOME "CLUSTER_NODES=node2" CRS=TRUE -local
16. ./runInstaller and remove CRS_HOME
17. From Node-1:
$ /u01/app/crs11g/oui/bin/runInstaller -updateNodeList ORACLE_HOME=$ORACLE_HOME "CLUSTER_NODES=node1" CRS=TRUE
18. check node is deleted from ./crs_stat -t -
Converting Rows into Column in Oracle 10g
Hi All,
I m using Oracle Version 10.1.0.2.0 - Production
I have requirement to convert rows into column wise as per the following:
My Query is:
WITH t
AS ( SELECT 'A' AS x, 100 AS y FROM DUAL
UNION ALL
SELECT 'B',200 FROM DUAL
SELECT X, Y
FROM t;
X Y
A 100
B 200
My Requirement is
A B
100 200
So any one could help me that how I resolve this.
Regards,
PrasantaDear frank,
Thanks for your support,.
It's working fine for static cases.If the first column is dynamic then how come i will resolve it.
Example:
Create table mytab (ID_C Varchar2(15),Value_N Number);
Records Population into MyTab table is dynamic.
Insert into mytab values('HO',5000);
Insert Into mytab values('PG1',2400);
Insert Into mytab values('PG2',3000);
Insert Into mytab values('PG3',800);
Commit;
SQL> Select * From MyTab;
IDC_ ValueN_
HO 5000
PG1 2400
PG2 3000
PG3 800
Then My expected result will be as follows
HO PG1 PG2 PG3
5000 2400 3000 800
Thanks and Regards,
Prasanta -
Converting Columns to rows in Oracle 10g
Hi
i need hint to convert rows to columns.i had given the data strucure and expected output
Source Table
BU_ID Prod_id total_clients Tot_men Totwomen
101 AAA 85 50 35
101 BBB 40 20 20Expected Output
BU_ID Prod_id Clint_info Values
101 AAA total_clients 85
101 AAA Tot_men 50
101 AAA totwomen 35
101 BBB total_clients 40
101 BBB tot_men 20
101 BBB totwomen 20Thanks
Edited by: Sami on Aug 1, 2012 8:25 PMHi,
Cross-join your table with a Counter Table , a table (or result set, as in the example below) that counts from 1 up to the number of columns you want to unpivot, like this:
WITH cntr AS
SELECT LEVEL AS n
FROM dual
CONNECT BY LEVEL <= 3 -- Number of columns to be unpivoted
SELECT s.bu_id
, s.prod_id
, CASE c.n
WHEN 1 THEN 'total_clients'
WHEN 2 THEN 'total_men'
WHEN 3 THEN 'total_women'
END AS client_info
, CASE c.n
WHEN 1 THEN total_clients
WHEN 2 THEN total_men
WHEN 3 THEN total_women
END AS values
FROM source_table s
CROSS JOIN cntr c
ORDER BY s.bu_id
, s.prod_id
, c.n
;If you'd care to post CREATE TABLE and INSERT statements for your sample data, then I could test this.
The values column that you create can only have 1 data type. If the original, unpivoted columns have different data types, you may need to convert some of them in the CASE expression that defines values. -
ERROR while connecting to Netezza Database from oracle 10g via dblink.
Gurus,
We are trying to connect to Netezza DB from oracle 10g DB.. We successfully establised ODBC connection but unable to retrieve data over the dblink connected from oracle to Netezza. We get this error.. Please HELP ASAP!!!!!!!!
ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
Server and/or port attributes are empty {HY000,NativeErr = 33}Manik wrote:
We are trying to connect to Netezza DB from oracle 10g DB.. We successfully establised ODBC connection but unable to retrieve data over the dblink connected from oracle to Netezza. We get this error.. Please HELP ASAP!!!!!!!!
ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
Server and/or port attributes are empty {HY000,NativeErr = 33}Always test ODBC client connectivity on the Oracle server to the remote and foreign database, first. Use the isql ODBC client command line interface (as the oracle or grid o/s user).
If this does not work, then Oracle HSO will also not work.
Once you have confirmed that this is working, then configure the HSO service for Oracle.
If that fails, enables ODBC client tracing for that HSO service (in the init file for that service) to see exactly what ODBC calls Oracle is making and which of these are failing. -
I want to convert number to hours in oracle 10 like this.
Dear All
Some can help me
I want to convert below MS-SQL query in oracle 10g. please help me.
for eg:
Select numasdate,
Cast(numasdate / 60 as Varchar) + ' hours ' +
Cast(numasdate % 60 as Varchar) + ' minutes'
as [TotalHoursAndMinutes]
From
#SampleTable
Output:
9436 157 hours 16 minutes
537 8 hours 57 minutes
9323 155 hours 23 minutes
12525 208 hours 45 minutes
Edited by: Parwez on Jan 1, 2013 5:33 AMI want to convert number to hours in oracle 10g like this.
537 8 hours 57 minutes
9436 157 hours 16 minutes
12525 208 hours 45 minutesTry this...
Ranit>> with xx as(
2 SELECT 537 num from dual UNION ALL
3 SELECT 9436 num from dual UNION ALL
4 SELECT 12525 num from dual
5 )
6 select
7 num,
8 FLOOR(num/60)||' hrs' as "hrs",
9 MOD(num,60)||' minutes' as "minutes",
10 FLOOR(num/60)||' hrs '||MOD(num,60)||' minutes' as "Hours.Mins"
11 from xx;
NUM hrs minutes Hours.Mins
537 8 hrs 57 minutes 8 hrs 57 minutes
9436 157 hrs 16 minutes 157 hrs 16 minutes
12525 208 hrs 45 minutes 208 hrs 45 minutes Edited by: ranit B on Jan 1, 2013 6:51 PM
--- Hey John... I just did it and saw your hint now !!! -
Error while converting class file to exp and jca file
error while converting *.class file to *.exp and *.jca file
=====================================================================================================================
linux-y60u:/home/admin/java_card_kit-2_2_1/samples/src # converter -exportpath "/home/admin/java_card_kit-2_2_1/lib/" com/sun/javacard/samples/HelloWorld 0x00:0x01:0x02:0x03:0x04:0x05:0x06:0x07:0x0b 1.0 -v -applet 0x00:0x01:0x02:0x03:0x04:0x05:0x06:0x07:0x0b:0x01 Identity
Java Card 2.2.1 Class File Converter, Version 1.3
Copyright 2003 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.
parsing /home/admin/java_card_kit-2_2_1/samples/src/com/sun/javacard/samples/HelloWorld/HelloWorld.class
parsing /home/admin/java_card_kit-2_2_1/samples/src/com/sun/javacard/samples/HelloWorld/Identity.class
error: com.sun.javacard.samples.HelloWorld.HelloWorld: unsupported class file format of version 50.0.
error: com.sun.javacard.samples.HelloWorld.Identity: unsupported class file format of version 50.0.
conversion completed with 2 errors and 0 warnings.
=====================================================================================================================i compile a file javacard use this command:
===
javac -source 1.3 -target 1.1 -g -classpath ./classes:../lib/api.jar:../lib/installer.jar src/com/sun/javacard/samples/Identity/Identity.java
===
and try to convert this class use this command
===
/home/xnuxerx/admin/java_card_kit-2_2_1/bin/converter -exportpath "/home/xnuxerx/admin/java_card_kit-2_2_1/lib/" com/sun/javacard/samples/Identity 0x00:0x01:0x02:0x03:0x04:0x05:0x06:0x07:0x0b 1.0 -v -applet 0x00:0x01:0x02:0x03:0x04:0x05:0x06:0x07:0x0b:0x01 Identity
===
result convert:
===
Java Card 2.2.1 Class File Converter, Version 1.3
Copyright 2003 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.
parsing /home/xnuxerx/admin/java_card_kit-2_2_1/samples/classes/com/sun/javacard/samples/Identity/Identity.class
converting com.sun.javacard.samples.Identity.Identity
error: export file framework.exp of package javacard.framework not found.
conversion completed with 1 errors and 0 warnings.
===
why ??
please your comment for this problem.
thank 4 all. -
Open qty errin Selection list For Ref Doc. screen while converting to order
Hi SAP Gurus,
For one of my materials, the open quantity is not updating in the Selection list For Ref Doc. screen while converting to sales order.
Can you please help me?
Thanks,
KetanHi Senthilkumar,
I really appreciate for your kind Hint of SEL ID.
I created and assigned new 'Sel Priority' to the SEL ID same as for Routing.
Now while converting Planned order to Production order system is asking for Reference operation set as there is no such need of Routing as I already mentioned in previous post.
Regards,
Maybe you are looking for
-
Hello there, I'm simply having the problem where I am not allowed to go more than or less than 1360 x 768. If I go lower or higher, the colour of the screen just turns absurdly bright and I've tried taking a screenshot from that and it seems fine whe
-
HR_INFOTYPE_OPERATION - 'MOD' Operation
I am using HR_INFOTYPE_OPERATION FM for changing a infotype depending on the user input. This FM does not change the record with modify operation (MOD). Error while trying modify operation is as shown below: "Infotype does not exist" The infotype doe
-
How to Split 10.6.8 and 10.9. 5 on a 2011 Imac
Hi Yo wizzartz out there! As i have severe problems on Logic X i´d like to split my Mac. I have 2 harddrives inside , one to backup one to "work", and a third 1 outside to backup aswell. I want to go back to 10.6.8 on the one hand to work my songs pr
-
Small sample code (with changed delimiters to avoid parcing) which opens in Chrome but not im FF5.0: <pre><nowiki><!DOCTYPE html> <html lang="en"> <head><meta charset="UTF-8"><title></title></head> <body> <video controls src="videofile.mp4"> </video>
-
Export data to Excel + use of xsd
Hi, I'd like to export data from oracle to excel using pl/sql. These files go to subcontractors who will have to make some kind of customization to that data. I want to prevent these subcontractors from writing trash to this excelfile (writing text t