Oracle 10g - convert decimal in hh: mm
HelloHow can I convert a decimal number in the format hours: Minutes for example. 2.75 at 2 hours and 45 Minutes
Thanks in advance
or maybe
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 perhaps 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.
Concerning
Peter
Published by: Peter on March 2, 2009 12:52 AM
Tags: Database
Similar Questions
-
Oracle 10g convert N column with the command lines.
SQL > USER to see THE
VEERA
SQL > create table test (number n, fname varchar2 (10), the number of age (10), sal number (10));
Table created.
SQL > ALTER TABLE TEST ADD CONSTRAINT PK_TEST PRIMARY KEY (N, FNAME, AGE);
Select
table_name,
RTrim (xmlagg (xmlelement (e, column_name |))) ') .extract ('/ / text()'), ',') COLUMN_NAME
(SELECT ACC. TABLE_NAME, VAC. COLUMN_NAME
OF ALL_CONSTRAINTS ACN, VAC ALL_CONS_COLUMNS
WHERE THE VAC. TABLE_NAME = 'TEST '.
AND ACN. CONSTRAINT_TYPE = 'P '.
AND ACN. CONSTRAINT_NAME = ACC. CONSTRAINT_NAME
AND ACN. OWNER = ACC. OWNER
AND ACN. OWNER = 'VEERA '.
)
Table_name group
/
TABLE_NAME COLUMN_NAME
------------------------------ ----------
TEST N, AGE, FNAME
I have need of NAME of COLUMN must be of the order of position_colonne. [N, FNAME, AGE].
Please tell us how can I get the result. Is this possible using CASE or also DECODE the number of constraints are unknown.
Kind regards
Veera.
Select
table_name,
RTrim (xmlagg (xmlelement (e, column_name |))) ') order of position) .extract ('/ / text()'), ',') COLUMN_NAME
(SELECT ACC. TABLE_NAME, VAC. Column_name, acc.position
OF ALL_CONSTRAINTS ACN, VAC ALL_CONS_COLUMNS
WHERE THE VAC. TABLE_NAME = 'TEST '.
AND ACN. CONSTRAINT_TYPE = 'P '.
AND ACN. CONSTRAINT_NAME = ACC. CONSTRAINT_NAME
AND ACN. OWNER = ACC. OWNER
AND ACN. OWNER = 'VEERA '.
)
Table_name group
/
-
Guyz I need to convert the database from ms access to oracle 10g
Hello everyone... I wanan convert my access database to oracle 10g. As I create a form like OVERVIEW MONTHLY after the transfer to oracle 10 g... I wud really cud happy if a few b help me in this matter...
I'm ready to send database... access to u people can check it out and get back to me with a useful solution!Hello
Oracle SQL Developer migration
Oracle SQL Developer integrates migration support, offering users the opportunity to migrate objects from database and data from MySQL, Microsoft Access and Microsoft SQL Server, Sybase to Oracle. This document details the installation steps to help prepare your environment for migration of database and provides a brief description of each of the 5 main steps of a migration.
http://www.Oracle.com/technology/tech/Migration/Workbench/files/omwb_getstarted.html
Concerning
-
I recently upgraded from Oracle Forms/Reports 10 g and 11g. Oracle 10g reports saving as PDF is easily converted into a word document, however, Oracle 11 g converts not as 10 g. What is the difference and how to make the report of 11g saved in a PDF file be able to convert a Microsoft Word document itself.
Thank you
Steven
Hello
There is a "known issue" with the PDF file in 11g:
ALERT: Indicates problems PDF in 11.1.2.1.0 group of fixes for Non-Linux (Doc ID 1522543.1) platforms
Maybe the problem comes from this 'problem '...
"Patch Set Exception" exists for this problem.
Kind regards
-
Hello Sir: I use a generator of form of oracle 10g and I want to search on two dates using between.how it is possible.
I guess its text fields are the date data type.
-
Oracle 10g of MSSQL 2005 database link
Hello
We are configuration link database to oracle 10g of mssql 2005
Thanks to the heterogeneous connectivity. We get the following error when testing database link.
ORA-28500: connection between ORACLE and a non-Oracle system has sent this message:
ORA-28541: error in the HS on line 1 init file.
ORA-02063: preceding 2 lines of < SID >
28500 00000 - "connection between ORACLE and a non-Oracle system has sent this message:
* Cause: The cause is explained in the forwarded message.
* Action: See documentation for the non-Oracle of the transmission system
Message.
Error on line: column 4:19
Can someone guide correct configeration of Hetrogeneous Service and why the error arises.
Thank you
Basu,
Dg4ODBC gateway can be used with the 10.2.0.5 database. It is certified and no additional license is required for the database to ODBC gateway - the license is included in the license database (even when the Oracle database is still version 10.2) AND you can also install Dg4ODBC on another machine, then the Oracle database. There is no need to have Dg4ODBC installed on the same computer as the Oracle database.
-When you install DG4ODBC on the same machine as your Oracle 10.2 database, then install in its own, separate OH - otherwise you will corrupt your existing installation of the database.
-Klaus
Post edited by: kgronau
-
Is there a way to fill the boss way recursive/dynamically in oracle 10g
Hello
I want to complete the following template and then use the result as a virtual table in oracle 10g.
SELECT 2 FROM DUAL;
UNION ALL
4. SELECT FROM DUAL;
ALL UNIONL
8. SELECT FROM DUAL;
.
.
.
.
UNION ALL
. SELECT POWER (2.61) FROM DUAL;
Is it possible that I can use the recursion or dynamic query with "with clause" and avoid writing all these statements.
Thank you
YG
Hi GY,.
In 10g, you can use a clause of the TYPE:
SELECT nbr
OF THE DOUBLE
MODEL
DIMENSION (2 d)
MEASURES (number 0)
RULES ITERATE (61)
(nbr [ITERATION_NUMBER] = power (2, ITERATION_NUMBER + 1))
ORDER BY nbr;
From 11 g 2, you can use a WITH recursive clause:
WITH v (n, lvl) AS (SELECT 2 n, 1 lvl FROM DUAL
UNION ALL
SELECT 2 * n, 1 + lvl
V
WHERE the lvl<=>=>
)
Select n v
-
Oracle 10g with 10.2.0.5 patch app thin?
Hello
I'm working on creating a fine app for oracle 10g. I am able to create the thin application without patch and everything seems to work normally, but in our situation, we must apply the 10.2.0.5 patch. When I patch the program, everything still seems to work ok, so I'm going through with the postscan, which also seems to work fine until there finishes.
I don't know if this is related, but I get the following warnings after the postscan:
Could not copy the file--> C:\Program Files (x 86) C:\ProgramData\Microsoft\RAC\StateData\RacMetaData.dat \VMware\VMware ThinApp\Captures\Oracle 10 g + patch\%Common AppData%\Microsoft\RAC\StateData\RacMetaData.dat
Could not copy the file--> C:\Program Files (x 86) C:\ProgramData\Microsoft\RAC\StateData\RacWmiEventData.dat \VMware\VMware ThinApp\Captures\Oracle 10 g + patch\%Common AppData%\Microsoft\RAC\StateData\RacWmiEventData.dat
Could not copy the file--> C:\Program Files (x 86) C:\ProgramData\Microsoft\Search\Data\Applications\Windows\MSStmp.log \VMware\VMware ThinApp\Captures\Oracle 10 g + patch\%Common AppData%\Microsoft\Search\Data\Applications\Windows\MSStmp.log
Could not copy the file C:\Users\All Users\Microsoft\RAC\StateData\RacMetaData.dat--> C:\Program Files (x 86) \VMware\VMware ThinApp\Captures\Oracle 10 g + patch\%drive_C%\Users\All Users\Microsoft\RAC\StateData\RacMetaData.dat
Could not copy the file C:\Users\All Users\Microsoft\RAC\StateData\RacWmiEventData.dat--> C:\Program Files (x 86) \VMware\VMware ThinApp\Captures\Oracle 10 g + patch\%drive_C%\Users\All Users\Microsoft\RAC\StateData\RacWmiEventData.dat
Could not copy the file C:\Users\All Users\Microsoft\Search\Data\Applications\Windows\MSStmp.log--> C:\Program Files (x 86) \VMware\VMware ThinApp\Captures\Oracle 10 g + patch\%drive_C%\Users\All Users\Microsoft\Search\Data\Applications\Windows\MSStmp.log
Could not copy the file C:\Users\All Users\Microsoft\Windows Defender\IMpService925A3ACA-C353 - 458 A-AC8D - A7E5EB378092.lock--> C:\Program Files (x 86) \VMware\VMware ThinApp\Captures\Oracle 10 g + patch\%drive_C%\Users\All Users\Microsoft\Windows Defender\IMpService925A3ACA-C353 - 458 A-AC8D - A7E5EB378092.lock
Could not copy the file C:\Users\All Defender\Scans\History\CacheManager\MpSfc.bin--> C:\Program Files (x 86) Users\Microsoft\Windows \VMware\VMware ThinApp\Captures\Oracle 10 g + patch\%drive_C%\Users\All Users\Microsoft\Windows Defender\Scans\History\CacheManager\MpSfc.binAnd then finally I get this at the end of the 'Build Project' message:
C:\Windows\hh.exe: an executable not valid
Build failed *.I can't determine why the build fails.
Any help would be appreciated.
Hi Mark
1. the warnings that you are seeing after Postscan aren't a problem, in my view, they are for most of the newspapers that were not copied to the ThinApp of your application project (probably because access is denied because some application process is running and use).
2. the error you see regarding hh.exe during the generation probably occurs because it is a 64-bit binary (and ThinApp 4.7.3 can't stand not the 64-bit binaries), in all cases, please open the file package.ini in the project folder (the folder that contains the project ThinApp registered Oracle 10 g, generated by the capture process) and find the section [hh.exe] and add 'Disabled = 1' under it , and then try again to build again by running build.bat.
Thank you.
-
not able to uninstall oracle 10g, how I uninstall oracle 10g IAM?
actually iam using oracle10g in my laptop. now I just want to change for oracle 11g. I tried to uninstall 10g it shows uninstalled successfully. but when I tried to install 11g it shows already oracle is installed on your laptop...
now how do I install 11g without formatting... can my drive you give me the solution for this...
Hello
You must uninstall oracle 10g by
1.
Oracle Universal Installer from Start menu
2.
Run regedit.exe and delete the HKEY_LOCAL_MACHINE/SOFTWARE/ORACLE key.
This contains registry entries for all Oracle products.
3 make sure that he didn't there no service oracle left behind in the services Panel
4 restart your computer
5.
Delete the "C:\Oracle" directory, or the oracle_base directory on which you had installed oracle 10g
regards,
-DM
-
How to send a mail in oracle 10g
I am new to oracle developer... we use oracle 10g developer... How to send messages via oracle 10 g on a click.pease button help me.
Thanks in advance
This question was asked several times on this forum, see if you get the help of the following:
https://forums.Oracle.com/message/5395438#5395438
Search results: https://forums.oracle.com/thread/search.jspa?peopleEnabled=true&userID=&containerType=&container=&q=form+email
Check this out as well:
http://nzchaudhry.WordPress.com/2013/05/31/send-report-via-email-attachment-in-Oracle-Forms-10G/
You can find the init.ora or initSID.ora file under $ORACLE_HOME/dbs on linux and Windows under $ORACLE_HOME/database. Otherwise, you can create using the command "create pfile from spfile.
Aneel
-
Urgent: db link from oracle 10g to sql server 2000
Hello
I have an oracle 10g db connection to sql server 2000. It was created a couple of years. This works.
I have now created another link db of the same oracle on the same sql server server but it does not work.
But I'm getting ORA-28500 and error IM002
. Please notify.
I can't understand what is wrong as I followed the hs odbc set up on this link db in the same way as I did 2 years ago.
Thank you
Shailaja
Just sort the problem.
Basically, I use HSODBC to connect to SQL Server from Oracle (on windows 2003 64-bit).
To do this, I need to create a connection ODBC from Oracle to SQL Server.
HSODBC is a 32-bit application and is why we use the ODBC 32-bit driver when we create the ODBC connection.
When I created the connection ODBC from Oracle to SQL Server, I used the ODBC 64-bit driver and that's why the system could not find the name of the data source.
I have now created connection ODBC from Oracle to SQL Server via the ODBC 32-bit driver and everything works fine now.
No offense to anyone, but as you all works using Oracle software, I was hoping a better answer than some of the answers above. You can say that you did not understand the question or you do not know the reason why it happened.
I have just listed how the problem was fixed so that in the future one having the same problem can benefit.
-
Is - this here is output expected between the different versions of DB?
Oracle 10g
O/Pselect utl_url.escape('http://sample.com/questions/hea[der.html') from dual;
Here characters ' [' is dropped.]http://sample.com/questions/hea%5Bder.html
Oracle 11gselect utl_url.escape('http://sample.com/questions/hea[der.html') from dual;
Here characters ' [' is no exception.]http://sample.com/questions/hea[der.html
Support UTL_URL note. ESCAPE escape is no longer some characters such as brackets [] in 11.2 [1467611.1 ID]:
>
The UTL_URL procedure. ESCAPE has been updated to 11.2 in conformity to the specification of the URL RFC 2396. The procedure only escapes illegal characters (and possibly reserved characters) using the 2%-figure-hex-code format. It appears that some legal / reserved characters (such as [and]) have also been dropped in earlier versions. -
Hello
I installed oracle 10g application server on my system. Now, I need to develop forms and reports that the tool I need to install.
Thank you.Try the Oracle Developer suite 10, http://www.oracle.com/technetwork/developer-tools/developer-suite/downloads/index.html
-
customer of oracle 10g 64 bit to win7 64-bit
where can I find it? I'm not even a link to the oracle 10g client download on otn.
I have an oracle 10g 32-bit client that I currently use on win7 64 bit OS but I need 64-bit customer oracle 10g.10g downloads are deleted from the RTO. If you want, you must get in contact with the support.
Aman...
-
When I installed oracle 10g am not able to start my application
Hi all
Using ATG 9.1 my application works fine, but after I installed oracle 10g my Jboss starts up, but I couldn't run my application?
This shows that the requested Url is not found...
Could you please tell me why this happens...
Thanks in advance...
Thank you and best regards,
Sudhakar.This happens in oracle 10g for oracle 10g is also used as the default http port 8080.
And if your application server is running on default 8080 port you ll see this problem.To solve this, all you need to do is change the port to some other port number 8080 by default oracle.
See the link below to change the port.
http://daust.blogspot.in/2006/01/XE-changing-default-HTTP-port.htmlAfter changing the port, restart your computer again and you should be able to access your application very well.
~ Yvan
Published by: Yvan November 6, 2012 01:08
Maybe you are looking for
-
How to configure a button with alignment fixed points on a logorithmic scale?
My question is quite simple, but after rooting in the button/gauge proteries, I can't find a way to do what I would like to: I would like a simple button with 4 possible values control: 0.0125,0.125,1.25,12.5 I would like that they also spaced and I
-
Unit works fine with MAx but not with Labview visa series
I have a RPM sensor connected to tachometer Monarch monarch, it gives error while coding in labview and works very well in Max if the sensor does not read 0. I wrote RS-232 simple programs never had an error, but this one's errors... not ablt remedy.
-
EBS - Performance &; Packs Diagnostics
Hi allWhat are the activities for the installation of Pack of Performance Tuning & Diagnostic Pack?It is a separate license cost?Thank you very muchJC
-
The ODI API method to test the connection to the server XML-Data
HelloI tried my hands on ODI SDK API and could create the physics/logic connections through it successfully.At the studio of ODI, for XML technology, when test us the data server-> JDBC-> connection test connection, corresponding to the xml specified
-
HelloI downloaded a movie from a Canon Legria camcorder which was shot as follows:When I opened PremElements 11 (Windows 10), I created the project as follows:I dragged the film to the timeline (Expert) and click Render. He did not actually as long a