Oracle 10g - Convert decimal to HH:MM
Hi
How can I convert a decimal to Hours:Minutes format eg. 2.75 to 2 Hours and 45 Minutes
Thanks in advance
or perhaps
SQL> SELECT TRUNC(2.75) || 'hrs:' ||
SUBSTR(numtodsinterval(2.75, 'HOUR'), 15,2) || 'mins:' ||
SUBSTR(numtodsinterval(2.75, 'HOUR'), 18,2) || 'secs' FROM dual
TRUNC(2.75)||'HRS:
2hrs:45mins:00secs
1 row selected.
SQL> SELECT TRUNC(129.657) || 'hrs:' ||
SUBSTR(numtodsinterval(129.657, 'HOUR'), 15,2) || 'mins:' ||
SUBSTR(numtodsinterval(129.657, 'HOUR'), 18,2) || 'secs' FROM dual
TRUNC(129.657)||'HRS
129hrs:39mins:25secs
1 row selected.Or maybe better
SQL> SELECT TRUNC(2.75) || 'hrs:' ||
extract (minute from numtodsinterval(2.75, 'HOUR' )) || 'mins:' ||
extract (second from numtodsinterval(2.75, 'HOUR')) || 'secs'
FROM dual
TRUNC(2.75)||'HRS:'||EXTRACT(MINUTEFROMNUMTODSINTERVAL(2.75,'HOUR'))||'MINS:'||E
2hrs:45mins:0secs
1 row selected.
SQL> SELECT TRUNC(129.657) || 'hrs:' ||
extract (minute from numtodsinterval(129.657, 'HOUR' )) || 'mins:' ||
extract (second from numtodsinterval(129.657, 'HOUR')) || 'secs'
FROM dual
TRUNC(129.657)||'HRS:'||EXTRACT(MINUTEFROMNUMTODSINTERVAL(129.657,'HOUR'))||'MIN
129hrs:39mins:25,2secs
1 row selected.Regards
Peter
Edited by: Peter on Mar 2, 2009 12:52 AM
Similar Messages
-
Linq to oracle entities - convert decimal to string
hi ,
Im using entityframework beta for oracle
I need compare string to a decimal column in my linq to entities query so i need convert number column to varchar, but .toString is not supported nor Convert.ToString nor SQLFunction.ToVarchar(or something like that) so how can i achieve this? should i import db function or there is some other (easier) way?
Thx for answerHi,
I solved it by importing to_char builtin oracle function to my model:
in edmx file put this (to section where your other procedures/functions are ) (change schema attribute to yours):
<Function Name="to_char" ReturnType="varchar2" Aggregate="false" BuiltIn="true" NiladicFunction="false" IsComposable="true" ParameterTypeSemantics="AllowImplicitConversion" StoreFunctionName="to_char" Schema="TOPASFO_DEMO">
<Parameter Name="value" Type="number" Mode="In" />
</Function>
And make partial class of your entities class and put there this:
[EdmFunction("Store", "to_char")]
public string to_char(decimal value)
// don’t need to implement the function
throw new ApplicationException();
And you can call it just like your other imported functions/procedures. -
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 -
Oracle 10g function to convert GML 3.1.1 to SDO_GEOMETRY
In Oracle 11g there is a function available to convert GML 3.1.1 to SDO_GEOMETRY (SDO_UTIL.FROM_GML311GEOMETRY)
However I need to support this in Oracle 10g that does not contain this function.
Does anybody have this function for me in Java or PL/SQL?
The Java classes GML, GML2, GML3 and GML 3g do not support GML 3.1.1 (with <patches>)
Thanks for any help!
RonHi Ron,
I would second John's advice to go Simon's Java route as probably the best way to go if you are truly trapped on 10g. Note that were you to consider going the PLSQL route, the 10g XMLTYPE has a limitation of 64K for the payload of any XML tag. This means any GML linestring or polygon with more than 64K of coordinate data would not be possible to store or manipulate as XMLTYPE.
ORA-31167: 64k size limit for XML node
This makes using XMLTYPE tools to work with GML a bit of a bust on 10g. Moving to 11g is definitely something you want to consider if GML is in your requirements. Also, as a GML user please consider putting in an enhancement request to Oracle Spatial to support GML 3.2 and 3.3 (feel free to piggy back on 9788193).
Oracle Spatial and support for GML 3.2.1?
The 3.3 spec is due out any day now. The existing 11g reader/writer almost works with the new specs if they just added a few tweaks for gml:id and the namespace.
Cheers,
Paul -
Oracle 10g R2 - Unicode is converted to unknown ?����
Ok, I've read a thousand posts. Tried everything still stuck.
I am using Oracle 10g : 10.2.0.5.0
I'm on a Mac, using SQL Developer 3.1.07
When I enter "ė€£¥©", the insertion into the database converts it to: ?����
This is straight from a SQL INSERT command, in SQLDeveloper, no java code or anything.
I tried adding a file called SQLDeveloper.app/Resources/sqldeveloper/sqldeveloper/sqldeveloper.conf and added these lines:
-Doracle.jdbc.defaultNChar=true
-Doracle.jdbc.convertNcharLiterals=true
Didn't help.
I tried created a test column and made the datatype NVARCHAR2. same results. VARCHAR column does the same corruption but that's expected.
I tried N'©' - doesn't work
I tried INSERT INTO testchar (column1) VALUES ( unistr('©') );
results is still : �
I check NSL_NVAR_CHARACTERSET and it's UTF8
NLS_LANGUAGE AMERICAN
NLS_TERRITORY AMERICA
NLS_CURRENCY $
NLS_ISO_CURRENCY AMERICA
NLS_NUMERIC_CHARACTERS .,
NLS_CHARACTERSET US7ASCII
NLS_CALENDAR GREGORIAN
NLS_DATE_FORMAT DD-MON-RR
NLS_DATE_LANGUAGE AMERICAN
NLS_SORT BINARY
NLS_TIME_FORMAT HH.MI.SSXFF AM
NLS_TIMESTAMP_FORMAT DD-MON-RR HH.MI.SSXFF AM
NLS_TIME_TZ_FORMAT HH.MI.SSXFF AM TZR
NLS_TIMESTAMP_TZ_FORMAT DD-MON-RR HH.MI.SSXFF AM TZR
NLS_DUAL_CURRENCY $
NLS_COMP BINARY
NLS_LENGTH_SEMANTICS BYTE
NLS_NCHAR_CONV_EXCP FALSE
NLS_NCHAR_CHARACTERSET UTF8
NLS_RDBMS_VERSION 10.2.0.5.0I don't know what else to do. I am not a DBA. I'm just trying to fix a bug or at least tell a customer what's wrong. Entering special characters is required. Can anyone help? thank you!
I have read that the insertion into the database does its own conversion but I don't know if that applies to me since I'm in 10g R2
Edited by: 947012 on Aug 14, 2012 11:43 AM
My mac's locales are also :
$ locale
LANG="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_CTYPE="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_ALL=Edited by: 947012 on Aug 14, 2012 11:45 AM
Edited by: 947012 on Aug 14, 2012 11:49 AMNLS_NCHAR_CHARACTERSET specifies the encoding of the NVARCHAR2 variables but not the SQL statements. SQL statements, when they arrive to the database server, are always encoded in the database character set (NLS_CHARACTERSET). This is true for the whole statement, including any character literals. Therefore, even if a literal is valid in SQL Developer (which works in Unicode), when the literal arrives to the database, it is already stripped of all characters that the database character set does not support. The characters are not actually removed but they are converted to a replacement character. In case of the US7ASCII database character set, anything non-ASCII is lost.
The trick to avoid this problem is to:
- mark the literals that need to be preserved for NVARCHAR2 columns as NVARCHAR2 literals by prefixing them with "n".
- set the mentioned property to activate the client side encoding mechanism with basically does a rough parsing of the statement and replaces all N-literals with U-literals. Undocumented U literals are similar to UNISTR calls. They encode non-ASCII characters with Unicode escape sequences. For example, n'€' (U+20AC) is encoded as u'\20AC'. As u'\20AC' contains only ASCII characters, it arrives to the database unchanged. The SQL parser recognizes the U-literals and converts them (unescapes them) to NVARCHAR2 constants before further SQL processing, such as INSERT.
-- Sergiusz -
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. -
Converting SQL statements from MS server 2000 to Oracle 10g
We are moving over from MS server 2000 to Oracle 10g as our database for Peoplesoft system.
There are several embedded SQL statements that I need to investigate to see what needs converting.
So far I can see a need to convert the following:
Dates. GetDate() to ?
Outer joins. *= to LEFT OUTER JOIN
Has anyone else done a similar exercise and what other functions do I need to convert?
Thanks.Hello
A quick google search (http://www.google.co.uk/search?hl=en&q=ms+sql+server+oracle+differences&spell=1)
came up with this:
http://dba-oracle.com/oracle_news/2005_12_16_sql_syntax_differences.htm
There's a quite a few more sites listed.
HTH
David -
Converting Informix data to Oracle 10g
Hi,
We are planning to convert data on Informix 5.x based legacy system over to Oracle 10g.
Wondering if anyone would like to share some light on this process, experience, use of Oracle or Other tools..
Regards,
SubhashAre you looking to convert your data alone or do you wish to maintain the structure of the your legacy system? If you wish to retain the structure of your legacy system then something like like the oracle workbench may be what you are looking for. If you are just trying to convert your data from one database application to another then you just need an analyst map out your conversion needs and a good conversion programmer to convert the data.
-
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 GeladenThank 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 -
Convert Window Oracle 10g to Linux Oracle 11g
HI Experts
My current version is Oracle 10g on Window and i want to convert on Oracle 11g on Linux.
What will be the best way to convert it ? can possible to direct convert
or i need to be database migration from window Oracle 10g to Linux Oracle 10g and then covert from Linux Oracle 10g to Linux Oracle 11g.
If the direct conversion is possible then please let me know the way or if u have document then please share it.
I searched lot but i didn't get anything.....
Thanks in advanceWhat is the expected downtime duration ?
What is the database size ?
For a "small" database with no downtime constraint you could use Data Pump to move data.
For a "large" database with minimum downtime you could use Oracle Streams (with Enterprise Edition) or Golden Gate (separate product: needs new licensing).
You can find detailed migration/upgrade recommendations and scenarios on OTN database upgrade page:
http://www.oracle.com/technetwork/products/upgrade/index.html
Edited by: P. Forstmann on 22 mars 2013 13:03 -
Convert dedicated server to shared server in oracle 10g
Dear,
Anybody help me how to change dedicated server setting into shared server in oracle 10g.
Regards,
Saeed ul haqRefer to Oracle Documentation :
http://download.oracle.com/docs/cd/B19306_01/network.102/b14212/intro.htm#sthref54
http://download.oracle.com/docs/cd/B19306_01/network.102/b14212/plan.htm#sthref570
http://download.oracle.com/docs/cd/B19306_01/network.102/b14212/dispatcher.htm#i453786
Regards
Rajesh -
ORA-01722: Invalid number - error only in Oracle 10g?
While trying to insert a numeric value into a decimal column, I get this error. Hitherto, my update statements used to look fine.
Can anyone let me know if this enforcement is specific to Oracla 10g? I am running :
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
Thanks in advance for your help!
NiranjanWell, you've a blank space which isn't a number, that's why you have an error.
Please see the following example to have a default value :
SQL> create table tutu (id number, text varchar2(10));
Table created.
SQL> alter table tutu modify id default 0;
Table altered.
SQL> insert into tutu values (' ', 'NoWork');
insert into tutu values (' ', 'NoWork')
ERROR at line 1:
ORA-01722: invalid number
SQL> insert into tutu values (null,'NullValue');
1 row created.
SQL> insert into tutu (text) values ('Default');
1 row created.
SQL> insert into tutu values (1,'NonDefault');
1 row created.
SQL> select * from tutu;
ID TEXT
NullValue
0 Default
1 NonDefault
SQL> Nicolas.
Message was edited by:
N. Gasparotto -
SQL SERVER 2005 to Oracle 10g r 2
Hi all,
I'm getting an "error" when I'm trying to convert a sql server 2005 database to a oracle 10g database.
It seems to be right in te convert step:
Copying Model: 1
Transforming identifiers: 1
Transformation Result: 16
Transformed successfully: 1
but there is no converted model and no log registries.
the migrations user roles and privileges are:
GRANT CONNECT, RESOURCE, DBA,
ALTER ANY TRIGGER, CREATE ROLE, CREATE SESSION, CREATE USER, CREATE VIEW, CREATE PUBLIC SYNONYM
TO migrations WITH ADMIN OPTION;
GRANT ALTER ANY ROLE, ALTER ANY SEQUENCE, ALTER ANY TABLE, ALTER TABLESPACE,
COMMENT ANY TABLE, CREATE ANY SEQUENCE, CREATE ANY TABLE,
CREATE ANY TRIGGER, CREATE TABLESPACE, DROP ANY
SEQUENCE, DROP ANY TABLE, DROP ANY TRIGGER, DROP TABLESPACE, DROP USER, DROP ANY
ROLE, GRANT ANY ROLE, INSERT ANY TABLE, SELECT ANY TABLE, UPDATE ANY TABLE TO
migrations;
And I'm using Sql Developer Version 2.1.1.64 in a Win XP 64bits computer
Could you please help me with this problem...
Thanks,
ManuelManual,
Do you see the same problem if you try the migration in stages ?
Could you -
- click on the SQL*Server database to be migrated and choose 'Capture Microsoft SQL*Server'
- does that complete successfully ?
- if right click on the captured model and choose 'Show log messages' is anything displayed ?
- if the capture is okay, then right click and choose 'Convert to Oracle Model'
- does this create a converted model ? If you right click and choose 'Show log messages' is anything displayed ?
if you still have problems could you try deleting the migration repository then creating a new one ?
Regards,
Mike -
What differences where implemented to Oracle 10G Clients ODBC connectivity drivers between 10G Release 1 and Release 2 concerning datatypes?
I have an application that performs a qualified read returning a group of records (this is successful) and then performs a delete on each record read. No errors occur on completion of the application. When using release 1, the records are physically removed. Using release 2 a portion of the same group of records are not removed. The key for the table is a numeric field with six decimal places (not my design). My applications C code defines the field as a DOUBLE.I certainly agree that something changed. The question is whether it was a change in function or not. With a lot of these sorts of errors, tracking down the "source" of the error involves finding a change in a piece of code that allowed what was always possible to actually occur. That is, you may have two pieces of code that are functionally identical but that end up allowing the sorts of "round off" errors that are always possible when using doubles. The driver might, for example, now be going down a code path where it shifts a number to the right or left rather than dividing or multiplying by 2, which may make this sort of thing more likely. Functionally, given that doubles don't guarantee infinite precision, these operations are identical, but one may be significantly more likely to cause problems.
Is your application using the ODBC API directly? Or is it going through a higher-level API? If you are going through ODBC directly, you might look to see whether the data types that are being returned by the driver to your code are the same across driver versions.
Justin -
Oracle 11g- Straing behaviour of query after importing from Oracle 10g
Hi,
I have a table in Oracle 10g as follows:
Create Table xyz (col1 varchar2(50), col2 varchar2(50));
With following Data
Col1 Col2
A 320
A 110
A 290
A 380
B ABC
B 256
B LMN
I am running following Query
select * from xyz
Where Col1='A' and Col2=110
It works fine. But when I export this table and import it in Oracle 11g. It says invlid identifier.
But if I enclose 110 in single quotes. It works fine.
Also If I recreate this table in Oracle 11g like
Create table xyz1
as select * from xyz;
Now alos I am able to run this query smoothly.
select * from xyz1
Where Col1='A' and Col2=110
What is wrong exporting this table from 10g to 11g.
Any comments/suggestion??
AarbiThe check in your where clause
Col2=110Is comparing a string (Col2 is defined as a VARCHAR) with a numeric literal, so there will be an implicit conversion taking place from character to number. The query then fails due to the B LMN row when 'LMN' fails number conversion.
I'm guessing there was there an index on the table in your 10g installation which would allow the query to be satisfied without checking the B ABC or B LMN rows but is not present or not used in the 11g installation so a full table scan results in an attempt to convert 'ABC' and 'LMN' to a number. Check the explain plans.
Or it could even just be a difference in the order in which the two conditions in the where clause are evaulated between the two versions.
The solution, as you have already found is to do a string comparision
Col2='110'Edited by: Cyn on Dec 7, 2009 12:38 PM
Maybe you are looking for
-
My external hard drive will no longer connect to my macbook pro via FW800........Any ideas on how to solve this??
-
How to install HP Recover Manager
I have already downloaded and 4 times ustanavalival this program from the official site. But during the installation, the program does not write and complete the installation without any inscriptions. I installed it 4 times, but it is not present on
-
Illustrator CS3 crashes in mac os 10.5.8
hi, in the last days my illustrator (and photoshop, and Dremaweaver) has been crashing all the time, for no reason (i think!). Someone can help me in this issue? thanks! below the report: Process: Adobe Illustrator [394] Path: /App
-
Wireless capability fail?
Last night my Time Capsule began acting strangely. It cut out my wireless internet connection but was still transmitting signal to those devices wired through ethernet cables. I attempted to reboot the cable modem and TC and this did not resolve the
-
Trouble w/installing Solaris 10 branded zone on solaris 11.
Having issues creating a policy that works installing solaris 10 u10 branded nfs zone on sol11 in opscenter 12c u1. Maybe i'm just overlooking something basic or it isn't supported in opscenter. I'm able to create the policy but seem to get a very no