Problems with the date in the procedure on Oracle 11 g
Hi gurus,I have some problems with the date under Oracle 11 g format.
Let me explain the situation:
When I start such a request
Select to_number (to_char (to_date('01.04.2009','dd.mm.yyyy'), 'yyyy'))
of sys.dual
I had as a result 2009 under the number.
When I do the same thing in a procedure of a package like this
my_year: = to_number (to_char (to_date('01.04.2009','dd.mm.yyyy'), 'yyyy'));
the my_year variable contains the value 9 instead of 2009.
Can someone explain to me what goes wrong?
I just tested with the evolution of the variable nls_date_format of environment for the session and the database is complete without success.
Kind regards
Björn
Yes, it has everything to do with your environment settings.
SQL> set serveroutput on;
SQL>
SQL> declare
2 my_date date;
3 my_zeitstempel varchar2(32767);
4 my_tageswechsel float;
5 begin
6 my_zeitstempel := '01.03.1998 07:00';
7 my_tageswechsel := .25;
8 my_date := to_date (substr (my_zeitstempel, 1, 10), 'dd.mm.yyyy') + my_tageswechsel +1/24;
9 dbms_output.put_line( my_date);
10 end;
11 /
01-MAR-98
PL/SQL procedure successfully completed.
SQL> alter session set nls_date_format = 'dd.mm.yyyy hh24:mi:ss'
2 /
Session altered.
SQL> declare
2 my_date date;
3 my_zeitstempel varchar2(32767);
4 my_tageswechsel float;
5 begin
6 my_zeitstempel := '01.03.1998 07:00';
7 my_tageswechsel := .25;
8 my_date := to_date (substr (my_zeitstempel, 1, 10), 'dd.mm.yyyy') + my_tageswechsel +1/24;
9 dbms_output.put_line( my_date);
10 end;
11 /
01.03.1998 07:00:00
PL/SQL procedure successfully completed.
Tags: Database
Similar Questions
-
Problems with the procedure at the level of the stcok update
Hi, I am new to Oracle and I have problems with this procedure.
I had two tables, orders and inventories, and I want to update inventory quantities, when I received the order. For some reason, NULL keeps popping out. Someone help me pls with this!
The tables are
create table orders
(order_no number (4) orders_nn_11 the NOT NULL constraint,)
item_no number 4 orders_nn_3 of the NOT NULL constraint,
order_qta number constraint orders_nn_4 NOT NULL,
ORDER_DATE date NOT NULL constraint orders_nn_2,
(date of receipt);
and
create the table stock
item_no (4).
Number of CQI,
constraint stock_pk foreign key (item_no) references products (item_no);
the procedure is here, but as I said I am new to this, so I really don't know.
create or replace
procedure recues1 (aorder_no in number, aitem_no in numbers, date received)
is
quantity number;
number of quantity2;
cursor a1 is select qta in stock where item_no = aitem_no;
cursor a2 is order_qta selection of orders where order_no = aorder_no and item_no = aitem_no;
Start
Open a1;
extract the a1 in quantity2;
Open a2;
Fetch a2 in quantity;
stock update
Define qta = quantity2 + quantity
where item_no = aitem_no;
Update orders
received game = sysdate
where order_no = aorder_no;
near a1;
Close a2;
end;
/
Thanks in advanceHello
Perhaps because ther eis no COMMIT.
Or have I missed?Something like that
..... close a1; close a2; commit; end; /
Kind regards
Bobin -
CIAC 4.0 manual installation, problems with the procedure
Hi all
I m trying to install the latest version of the CIAC and I m facing some problems on the configuration phase.
I m using the following document:
Cisco_Intelligent_Automation_for_Cloud_4.0_Installation_Guide.PDF
Downloaded from the portal of Cisco.
On page 34, we can found the procedure for installing the adapter of REX.
The procedure is very confused and not able to find where to put the REXAdapter.xml I m, that it points to C:\Rex\Deploy, but the CIAC device is based on linux and not able to find this file on the server of the portal I m.
Also the adk.zip is absent from packs of automation CPO.
Thanks in advance,
Alex.
The 4.0 unit has already installed RexAdapter. You can view the list of Service link adapters.
-
Problem with the procedure. Help, please
Schema: HR
Here is the procedure I created, when I compile the procedure it works very well and without errors or warnings are displayed. However, when I run, I get "01031. 00000 - "insufficient privileges" "error. "I tried 'GRANT ALL HR', 'ANY GRANT to HR'.," to HR WITH ADMIN OPTION GRANT ' nothing works. Not sure is code that has questions or privileges.
create or replace procedure new_create_PROC IS BEGIN EXECUTE IMMEDIATE 'CREATE TABLE NEW_CREATE1(EMP_ID NUMBER,EMP_NAME VARCHAR2(20))'; END; / EXECUTE new_create_PROC; TE new_create_PROC; /
Help, please.
You are connected to the DB under what user? You must grant this user the CREATE TABLE privilege.
-
Problem with the connection from Oracle to MS Excel - 64 bit
Hello
I have problem connecting Excel to oracle 11.2 using DG4ODBC.
OS - Windows 7 64 bit
Database version: - Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64 bit
Created system using ODBC DSN:
Name of Data Source = test12
Oracle home path:-D:\app\11g64db\product\11.2.0\dbhome_1
Contents of the initdg4odbc.ora file:
# This is an example of initialization file of the agent that contains the HS settings
# necessary for the database to ODBC gateway
#
# HS init parameters
#
Test12 = HS_FDS_CONNECT_INFO
HS_FDS_TRACE_LEVEL = 255
#
# Required for the non-Oracle system environment variables
#
#set < varenv > = < value >
Content of listener.ora:
listener.ora # Network Configuration file: D:\app\11g64db\product\11.2.0\dbhome_1\NETWORK\ADMIN\listener.ora
# Generated by Oracle configuration tools.
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = live)
(ORACLE_HOME = D:\app\11g64db\product\11.2.0\dbhome_1)
(SID_NAME = live)
)
(SID_DESC =
(PROGRAM = dg4odbc)
(SID_NAME = dg4odbc)
(ORACLE_HOME = D:\app\11g64db\product\11.2.0\dbhome_1)
)
)
LISTENER =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost) (PORT = 1521))
)
ADR_BASE_LISTENER = D:\app\11g64db
Content of tnsnames.ora:
tnsnames.ora # Network Configuration file: D:\app\11g64db\product\11.2.0\dbhome_1\network\admin\tnsnames.ora
# Generated by Oracle configuration tools.
excel_test =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = tcp)(HOST=localhost) (PORT = 1521))
(CONNECT_DATA = (SID = dg4odbc))
(HS = OK)
)
SCREW =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost) (PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = live)
)
)
Status of the listener
LSNRCTL for 64-bit Windows: Version 11.2.0.4.0 - Production on August 29, 2014 13:56
: 11
Copyright (c) 1991, 2013, Oracle. All rights reserved.
Connection to (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST=localhost) (PORT = 1521)))
STATUS of the LISTENER
------------------------
Alias LISTENER
TNSLSNR for Windows 64-bit version: Version 11.2.0.4.0 - Prod
ction
Start date August 29, 2014 13:34:58
Uptime 0 days 0 h 21 min 12 sec
Draw level off
Security ON: OS Local Authentication
SNMP OFF
Listener parameter File D:\app\11g64db\product\11.2.0\dbhome_1\network\admin\l
istener.ora
Listener log file D:\app\11g64db\diag\tnslsnr\Est-Subramanya\listener\al
ert\log. XML
Summary of endpoints listening...
(DESCRIPTION = (ADDRESS = (PROTOCOL = tcp)(HOST=127.0.0.1) (PORT = 1521)))
Summary of services...
Service "dg4odbc" has 1 instance (s).
"Dg4odbc" instance, status UNKNOWN, has 1 operation for this service...
Service 'live' has 2 occurrences.
Instance of "live" status UNKNOWN, has 1 operation for this service...
Instance of "live" READY State, has 1 operation for this service...
Service 'visXDB' has 1 instance (s).
Instance of "live" READY State, has 1 operation for this service...
The command completed successfully
DB Link:
CREATE DATABASE LINK PUBLIC TEST123 USING 'excel_test ';
error when querying of data:
Select * from test@test123;
ORA-28500: connection between ORACLE and a non-Oracle system has sent this message:
ORA-02063: preceding line TEST123
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: 1 column: 20
Appreciate the help in advance...
Thank you...
This problem is solved. It was because of the excel 12.0 version when creating data source in administrative tools.
Thank you.
-
problem with the customer of oracle 10g on centos 5.3
I'm the client installation of oracle 10g on centos 5.3
I face the following question while installation configure oracle net.
all I can understand newspapers is both / / sign
>
ient_1/jdk/jre / / bin/ja
Version installed in the House and java Oracle
I don't know how to get around this problemexport ORACLE_BASE=/home/oracle export ORACLE_HOME=/home/oracle/oracle/product/10.2.0/client_1 PATH=$ORACLE_HOME/bin:$PATH [oracle@oracleclient client]$ java -version java version "1.6.0_11" Java(TM) SE Runtime Environment (build 1.6.0_11-b03) Java HotSpot(TM) Client VM (build 11.0-b16, mixed mode, sharing)
ADDED:/home/oracle/oracle/product/10.2.0/client_1/cfgtoollogs/configToolFailedCommands # Copyright (c) 1999, 2005, Oracle. All rights reserved. /home/oracle/oracle/product/10.2.0/client_1/jdk/jre//bin/java -Duser.dir=/home/oracle/oracle/product/10.2.0/client_1/network/jlib -classpath /home/oracle/oracle/product/10.2.0/client_1/jdk/jre//lib/i18n.jar:/home/oracle/oracle/product/10.2.0/client_1/jdk/jre//lib/rt.jar:/home/oracle/oracle/product/10.2.0/client_1/jlib/ewt3.jar:/home/oracle/oracle/product/10.2.0/client_1/jlib/ewtcompat-3_3_15.jar:/home/oracle/oracle/product/10.2.0/client_1/jlib/netcfg.jar:/home/oracle/oracle/product/10.2.0/client_1/network/jlib/netcam.jar:/home/oracle/oracle/product/10.2.0/client_1/network/jlib/netca.jar:/home/oracle/oracle/product/10.2.0/client_1/jlib/help4.jar:/home/oracle/oracle/product/10.2.0/client_1/jlib/jewt4.jar:/home/oracle/oracle/product/10.2.0/client_1/jlib/oracle_ice.jar:/home/oracle/oracle/product/10.2.0/client_1/jlib/share.jar:/home/oracle/oracle/product/10.2.0/client_1/jlib/swingall-1_1_1.jar:/home/oracle/oracle/product/10.2.0/client_1/jlib/srvmhas.jar:/home/oracle/oracle/product/10.2.0/client_1/jlib/srvm.jar:/home/oracle/oracle/product/10.2.0/client_1/network/tools:/home/oracle/oracle/product/10.2.0/client_1/jlib/ldapjclnt9.jar:/home/oracle/oracle/product/10.2.0/client_1/jlib/ldapjclnt10.jar:/home/oracle/oracle/product/10.2.0/client_1/oui/jlib/OraInstaller.jar:/home/oracle/oracle/product/10.2.0/client_1/lib/xmlparserv2.jar oracle.net.ca.NetCA /orahome /home/oracle/oracle/product/10.2.0/client_1 /orahnam OraClient10g_home1 /instype custom /inscomp client,oraclenet /insprtcl tcp /cfg local /authadp NO_VALUE /nodeinfo NO_VALUE /responseFile /home/oracle/oracle/product/10.2.0/client_1/network/install/netca_clt.rsp
Published by: iinfi on May 29, 2009 15:47/client_1/network/install/netca_clt.rsp Parsing command line arguments: Parameter "orahome" = /home/oracle/oracle/product/10.2.0/client_1 Parameter "orahnam" = OraClient10g_home1 Parameter "instype" = custom Parameter "inscomp" = client,oraclenet Parameter "insprtcl" = tcp Parameter "cfg" = local Parameter "authadp" = NO_VALUE Parameter "nodeinfo" = NO_VALUE Parameter "responsefile" = /home/oracle/oracle/product/10.2.0/client_1/network/install/netca_clt.rsp Done parsing command line arguments. Oracle Net Services Configuration: An unexpected exception has been detected in native code outside the VM. Unexpected Signal : 11 occurred at PC=0x6DC2F3 Function=index+0x63 Library=/lib/libc.so.6 Current Java thread: at oracle.net.common.NetGetEnv.getDNSDomain(Native Method) at oracle.net.ca.ConfigureProfile.setDefaultProfileParams(Unknown Source) at oracle.net.ca.InitialSetup.setupConfigObjects(Unknown Source) at oracle.net.ca.InitialSetup.<init>(Unknown Source) at oracle.net.ca.NetCA.main(Unknown Source) Dynamic libraries: 005ee000-00605000 r-xp 00000000 fd:00 2544172 /usr/lib/libICE.so.6.3.0 00605000-00606000 rwxp 00016000 fd:00 2544172 /usr/lib/libICE.so.6.3.0 0060a000-00619000 r-xp 00000000 fd:00 1476147 /lib/libresolv-2.5.so 00619000-0061a000 r-xp 0000e000 fd:00 1476147 /lib/libresolv-2.5.so 0061a000-0061b000 rwxp 0000f000 fd:00 1476147 /lib/libresolv-2.5.so 0064a000-00664000 r-xp 00000000 fd:00 1476128 /lib/ld-2.5.so 00664000-00665000 r-xp 00019000 fd:00 1476128 /lib/ld-2.5.so 00665000-00666000 rwxp 0001a000 fd:00 1476128 /lib/ld-2.5.so 00668000-0066a000 r-xp 00000000 fd:00 3246709 /usr/lib/libXau.so.6.0.0 0066a000-0066b000 rwxp 00001000 fd:00 3246709 /usr/lib/libXau.so.6.0.0 0066d000-007ab000 r-xp 00000000 fd:00 1476129 /lib/libc-2.5.so 007ab000-007ad000 r-xp 0013e000 fd:00 1476129 /lib/libc-2.5.so 007ad000-007ae000 rwxp 00140000 fd:00 1476129 /lib/libc-2.5.so 007b3000-007d8000 r-xp 00000000 fd:00 1476135 /lib/libm-2.5.so 007d8000-007d9000 r-xp 00024000 fd:00 1476135 /lib/libm-2.5.so 007d9000-007da000 rwxp 00025000 fd:00 1476135 /lib/libm-2.5.so 007dc000-007de000 r-xp 00000000 fd:00 1476130 /lib/libdl-2.5.so 007de000-007df000 r-xp 00001000 fd:00 1476130 /lib/libdl-2.5.so 007df000-007e0000 rwxp 00002000 fd:00 1476130 /lib/libdl-2.5.so 007e2000-007f5000 r-xp 00000000 fd:00 1476131 /lib/libpthread-2.5.so 007f5000-007f6000 r-xp 00012000 fd:00 1476131 /lib/libpthread-2.5.so 007f6000-007f7000 rwxp 00013000 fd:00 1476131 /lib/libpthread-2.5.so 008bb000-009ba000 r-xp 00000000 fd:00 3246711 /usr/lib/libX11.so.6.2.0 009ba000-009be000 rwxp 000ff000 fd:00 3246711 /usr/lib/libX11.so.6.2.0 00a01000-00a06000 r-xp 00000000 fd:00 3246710 /usr/lib/libXdmcp.so.6.0.0 00a06000-00a07000 rwxp 00004000 fd:00 3246710 /usr/lib/libXdmcp.so.6.0.0 00a09000-00a18000 r-xp 00000000 fd:00 3246716 /usr/lib/libXext.so.6.4.0 00a18000-00a19000 rwxp 0000e000 fd:00 3246716 /usr/lib/libXext.so.6.4.0 00d65000-00d78000 r-xp 00000000 fd:00 1476145 /lib/libnsl-2.5.so 00d78000-00d79000 r-xp 00012000 fd:00 1476145 /lib/libnsl-2.5.so 00d79000-00d7a000 rwxp 00013000 fd:00 1476145 /lib/libnsl-2.5.so 00df0000-00df8000 r-xp 00000000 fd:00 2544173 /usr/lib/libSM.so.6.0.0 00df8000-00df9000 rwxp 00007000 fd:00 2544173 /usr/lib/libSM.so.6.0.0 056a1000-056a6000 r-xp 00000000 fd:00 3246740 /usr/lib/libXtst.so.6.1.0 056a6000-056a7000 rwxp 00004000 fd:00 3246740 /usr/lib/libXtst.so.6.1.0 058a0000-058f4000 r-xp 00000000 fd:00 2532866 /usr/lib/libXt.so.6.0.0 058f4000-058f8000 rwxp 00054000 fd:00 2532866 /usr/lib/libXt.so.6.0.0 08048000-08056000 r-xp 00000000 fd:00 2458231 /home/oracle/oracle/product/10.2.0/client_1/jdk/jre/bin/java 08056000-08059000 rwxp 0000d000 fd:00 2458231 /home/oracle/oracle/product/10.2.0/client_1/jdk/jre/bin/java 08371000-086bf000 rwxp 08371000 00:00 0 [heap] a93eb000-a93f8000 r-xp 00000000 fd:00 2233279 /home/oracle/oracle/product/10.2.0/client_1/lib/libldapjclnt10.so a93f8000-a93fa000 rwxp 0000c000 fd:00 2233279 /home/oracle/oracle/product/10.2.0/client_1/lib/libldapjclnt10.so a93fa000-a95d6000 r-xp 00000000 fd:00 2234262 /home/oracle/oracle/product/10.2.0/client_1/lib/libnnz10.so a95d6000-a95fc000 rwxp 001dc000 fd:00 2234262 /home/oracle/oracle/product/10.2.0/client_1/lib/libnnz10.so a95fe000-aa32f000 r-xp 00000000 fd:00 2234212 /home/oracle/oracle/product/10.2.0/client_1/lib/libclntsh.so.10.1 aa32f000-aa390000 rwxp 00d31000 fd:00 2234212 /home/oracle/oracle/product/10.2.0/client_1/lib/libclntsh.so.10.1 aa3a4000-aa3b9000 r-xp 00000000 fd:00 2234210 /home/oracle/oracle/product/10.2.0/client_1/lib/libnjni10.so aa3b9000-aa3bd000 rwxp 00014000 fd:00 2234210 /home/oracle/oracle/product/10.2.0/client_1/lib/libnjni10.so aa3bd000-aa3c4000 r-xp 00000000 fd:00 2543608 /usr/lib/libXp.so.6.2.0 aa3c4000-aa3c5000 rwxp 00006000 fd:00 2543608 /usr/lib/libXp.so.6.2.0 aa3c5000-aa418000 r-xp 00000000 fd:00 2458132 /home/oracle/oracle/product/10.2.0/client_1/jdk/jre/lib/i386/libmlib_image.so aa418000-aa419000 rwxp 00052000 fd:00 2458132 /home/oracle/oracle/product/10.2.0/client_1/jdk/jre/lib/i386/libmlib_image.so aa419000-aa6ea000 r-xp 00000000 fd:00 2458115 /home/oracle/oracle/product/10.2.0/client_1/jdk/jre/lib/i386/libawt.so aa6ea000-aa700000 rwxp 002d0000 fd:00 2458115 /home/oracle/oracle/product/10.2.0/client_1/jdk/jre/lib/i386/libawt.so aa725000-aaac2000 r-xs 00000000 fd:00 2236693 /home/oracle/oracle/product/10.2.0/client_1/oui/jlib/OraInstaller.jar aaac2000-aab5a000 r-xs 00000000 fd:00 2233155 /home/oracle/oracle/product/10.2.0/client_1/jlib/ldapjclnt10.jar aab5a000-aac21000 r-xs 00000000 fd:00 2233081 /home/oracle/oracle/product/10.2.0/client_1/jlib/srvm.jar aac21000-aac2f000 r-xs 00000000 fd:00 2233083 /home/oracle/oracle/product/10.2.0/client_1/jlib/srvmhas.jar aac2f000-aac3d000 r-xs 00000000 fd:00 2236586 /home/oracle/oracle/product/10.2.0/client_1/jlib/share.jar aac3d000-aacf2000 r-xs 00000000 fd:00 2234180 /home/oracle/oracle/product/10.2.0/client_1/jlib/oracle_ice.jar aacf2000-aae99000 r-xs 00000000 fd:00 2236581 /home/oracle/oracle/product/10.2.0/client_1/jlib/jewt4.jar aae99000-aaefe000 r-xs 00000000 fd:00 2234176 /home/oracle/oracle/product/10.2.0/client_1/jlib/help4.jar aaefe000-aaf30000 r-xs 00000000 fd:00 2232755 /home/oracle/oracle/product/10.2.0/client_1/network/jlib/netca.jar aaf30000-aaf56000 r-xs 00000000 fd:00 2232756 /home/oracle/oracle/product/10.2.0/client_1/network/jlib/netcam.jar aaf56000-aaf9f000 r-xs 00000000 fd:00 2234253 /home/oracle/oracle/product/10.2.0/client_1/jlib/netcfg.jar aaf9f000-aafad000 r-xs 00000000 fd:00 2234178 /home/oracle/oracle/product/10.2.0/client_1/jlib/ewtcompat-3_3_15.jar aafad000-ab232000 r-xs 00000000 fd:00 2236447 /home/oracle/oracle/product/10.2.0/client_1/jlib/ewt3.jar ab232000-ab235000 r-xs 00000000 fd:00 2237287 /home/oracle/oracle/product/10.2.0/client_1/jdk/jre/lib/ext/jta.jar ab235000-ab243000 r-xs 00000000 fd:00 2237291 /home/oracle/oracle/product/10.2.0/client_1/jdk/jre/lib/ext/activation.jar ab243000-ab288000 r-xs 00000000 fd:00 2237288 /home/oracle/oracle/product/10.2.0/client_1/jdk/jre/lib/ext/mail.jar ab288000-ab28b000 r-xs 00000000 fd:00 2237362 /home/oracle/oracle/product/10.2.0/client_1/jdk/jre/lib/ext/dnsns.jar ab28b000-ab2b1000 r-xs 00000000 fd:00 2237289 /home/oracle/oracle/product/10.2.0/client_1/jdk/jre/lib/ext/mailapi.jar ab2b1000-ab2be000 r-xs 00000000 fd:00 2237363 /home/oracle/oracle/product/10.2.0/client_1/jdk/jre/lib/ext/ldapsec.jar ab2be000-ab2c1000 r-xs 00000000 fd:00 2237290 /home/oracle/oracle/product/10.2.0/client_1/jdk/jre/lib/ext/smtp.jar ab2c1000-ab2dd000 r-xs 00000000 fd:00 2237365 /home/oracle/oracle/product/10.2.0/client_1/jdk/jre/lib/ext/sunjce_provider.jar ab2dd000-ab399000 r-xs 00000000 fd:00 2237364 /home/oracle/oracle/product/10.2.0/client_1/jdk/jre/lib/ext/localedata.jar ab59d000-ab79d000 r-xp 00000000 fd:00 2527487 /usr/lib/locale/locale-archive b5a52000-b5ff2000 r-xs 00000000 fd:00 2237314 /home/oracle/oracle/product/10.2.0/client_1/jdk/jre/lib/charsets.jar b5ff2000-b6003000 r-xs 00000000 fd:00 2237352 /home/oracle/oracle/product/10.2.0/client_1/jdk/jre/lib/jce.jar b6003000-b60e0000 r-xs 00000000 fd:00 2237353 /home/oracle/oracle/product/10.2.0/client_1/jdk/jre/lib/jsse.jar b60e0000-b60f6000 r-xs 00000000 fd:00 2237361 /home/oracle/oracle/product/10.2.0/client_1/jdk/jre/lib/sunrsasign.jar b6140000-b7aeb000 r-xs 00000000 fd:00 2237360 /home/oracle/oracle/product/10.2.0/client_1/jdk/jre/lib/rt.jar b7aeb000-b7aff000 r-xp 00000000 fd:00 2458138 /home/oracle/oracle/product/10.2.0/client_1/jdk/jre/lib/i386/libzip.so b7aff000-b7b02000 rwxp 00013000 fd:00 2458138 /home/oracle/oracle/product/10.2.0/client_1/jdk/jre/lib/i386/libzip.so b7b02000-b7b22000 r-xp 00000000 fd:00 2458123 /home/oracle/oracle/product/10.2.0/client_1/jdk/jre/lib/i386/libjava.so b7b22000-b7b24000 rwxp 0001f000 fd:00 2458123 /home/oracle/oracle/product/10.2.0/client_1/jdk/jre/lib/i386/libjava.so b7b24000-b7b34000 r-xp 00000000 fd:00 2458137 /home/oracle/oracle/product/10.2.0/client_1/jdk/jre/lib/i386/libverify.so b7b34000-b7b36000 rwxp 0000f000 fd:00 2458137 /home/oracle/oracle/product/10.2.0/client_1/jdk/jre/lib/i386/libverify.so b7b36000-b7b3f000 r-xp 00000000 fd:00 1474600 /lib/libnss_files-2.5.so b7b3f000-b7b40000 r-xp 00008000 fd:00 1474600 /lib/libnss_files-2.5.so b7b40000-b7b41000 rwxp 00009000 fd:00 1474600 /lib/libnss_files-2.5.so b7b41000-b7b45000 r-xp 00000000 fd:00 1474598 /lib/libnss_dns-2.5.so b7b45000-b7b46000 r-xp 00003000 fd:00 1474598 /lib/libnss_dns-2.5.so b7b46000-b7b47000 rwxp 00004000 fd:00 1474598 /lib/libnss_dns-2.5.so b7b47000-b7b4b000 rwxs 00000000 fd:00 3605130 /tmp/hsperfdata_oracle/7395 b7b4b000-b7f51000 r-xp 00000000 fd:00 2458146 /home/oracle/oracle/product/10.2.0/client_1/jdk/jre/lib/i386/client/libjvm.so b7f51000-b7f6c000 rwxp 00405000 fd:00 2458146 /home/oracle/oracle/product/10.2.0/client_1/jdk/jre/lib/i386/client/libjvm.so b7f81000-b7f89000 r-xp 00000000 fd:00 2458148 /home/oracle/oracle/product/10.2.0/client_1/jdk/jre/lib/i386/native_threads/libhpi.so b7f89000-b7f8a000 rwxp 00007000 fd:00 2458148 /home/oracle/oracle/product/10.2.0/client_1/jdk/jre/lib/i386/native_threads/libhpi.so b7f8b000-b7f8c000 r-xp b7f8b000 00:00 0 [vdso] bf89c000-bf8b1000 rwxp bffea000 00:00 0 [stack] Heap at VM Abort: Heap def new generation total 576K, used 428K [0xab9a0000, 0xaba40000, 0xabe80000) eden space 512K, 75% used [0xab9a0000, 0xaba001f0, 0xaba20000) from space 64K, 69% used [0xaba30000, 0xaba3b128, 0xaba40000) to space 64K, 0% used [0xaba20000, 0xaba20000, 0xaba30000) tenured generation total 1408K, used 533K [0xabe80000, 0xabfe0000, 0xaf9a0000) the space 1408K, 37% used [0xabe80000, 0xabf054a8, 0xabf05600, 0xabfe0000) compacting perm gen total 4096K, used 3569K [0xaf9a0000, 0xafda0000, 0xb39a0000) the space 4096K, 87% used [0xaf9a0000, 0xafd1c5d8, 0xafd1c600, 0xafda0000) Local Time = Fri May 29 15:46:06 2009 Elapsed Time = 1 # # The exception above was detected in native code outside the VM # # Java VM: Java HotSpot(TM) Client VM (1.4.2_08-b03 mixed mode) # # An error report file has been saved as hs_err_pid7395.log. # Please refer to the file for further information. # Configuration assistant "Oracle Net Configuration Assistant" failed ----------------------------------------------------------------------------- The "/home/oracle/oracle/product/10.2.0/client_1/cfgtoollogs/configToolFailedCommands" script contains all commands that failed, were skipped or were cancelled. This file may be used to run these configuration assistants outside of OUI. Note that you may have to update this script with passwords (if any) before executing the same.-----------------------------------------------------------------------------
Look for the hostname in/etc/hosts.
-
Problem with the enforcement procedure
Hi guys, I'm having some problem during the procedure call, but it will not display the errors while running.
I post my code please guide me...
Create Or Replace procedure Report_Main (A in Varchar2: = 1).
As
EmpNo Namelist;
EmpName Namelist;
DT Datelist;
Begin
Run immediately Q'[Select Distinct B.Empno, B.Empname, A.Dt From(With Qry1 As)
(Select Rdate Report1 where Empno = "M-336" and To_Char (Rdate, 'Mm') = To_Char (Sysdate, 'Mm') And To_Char (Sysdate, 'Yyyy') = To_Char(Rdate,'Yyyy'))
Union All
Select the Pdt in Meeting1 where Empno = "M-336" and To_Char (Pdt, 'Mm') = To_Char (Sysdate, 'Mm') And To_Char (Sysdate, 'Yyyy') = To_Char(Pdt,'Yyyy')
Union All
Select D.Hdate in the Trusmart.Loginfo, says C, Holidaymastb D
Where A.Empno ='M - 336.
And To_Char (D.Hdate, 'Mm') = To_Char(Sysdate,'Mm')
And A.State = C.States
And D.Statesid = C.Statesid
And To_Char (Sysdate, 'Yyyy') = To_Char(Hdate,'Yyyy')
)
Select Dt
Of
(Select Min_Date + (Level-1) Dt of)
(Select Min (Rdate) Min_Date,
Max (rdate) Max_Date
Of Qry1)
Connect by level < = (Max_Date - Min_Date) + 1) Qry2
If not Exists (Select 1
Of Qry1 Q1
Where Q1. RDATE = Qry2.Dt)
And Trim (To_Char (Dt, 'Day'))! = "Sunday".
Order By Dt) A, B Empma
Where B.Empno ='M - 336.
Order By A.Dt].
Bulk collect into Empno, Empname, Dt;
If Sql % found then
Report_Mail_Proc (Fromad = > ' <[email protected]> ', )
Toad = > ' < [email protected] >' ,
EmpNo = > Empno,.
EmpName = > Empname;
DT = > Dt);
End If;
Exception when No_Data_Found then
Null;
End;
/
Create Or Replace procedure Report_Mail_Proc (Fromad in Varchar2,
Toad in Varchar2,
Topic in Varchar2: = 'Notification of the relevant Date. "
Message in Varchar2: = 'Dear team',.
EmpNo in Namelist
EmpName in Namelist
DT in Datelist)
As
SMTPHost varchar (255): = "monentreprise.com";
A Utl_Smtp.Connection;
Begin
A: = Utl_Smtp.Open_Connection(Smtphost,25);
Utl_Smtp.HELO (A, SMTPHost);
Utl_Smtp.mail (A, Fromad);
Utl_Smtp.RCPT (A, Toad);
Utl_Smtp.Open_Data (A);
Utl_Smtp.write_data (, ' Date: ' |) To_Char (Sysdate, ' DD/MM/YYYY HH24:MI:SS'). Utl_Tcp.CRLF);
Utl_Smtp.write_data (, ' from: ' |) Fromad | Utl_Tcp.CRLF);
Utl_Smtp.write_data (, ' from: ' |) Toad | Utl_Tcp.CRLF);
Utl_Smtp.write_data (, ' subject: ' |) Topic | Utl_Tcp.CRLF);
Utl_Smtp.write_data (A, Utl_Tcp.CRLF);
Utl_Smtp.write_data (, ' Date: ' |) To_Char (Sysdate, ' DD/MM/YYYY HH24:MI:SS'). Utl_Tcp.CRLF);
Utl_Smtp.write_data (, ' from: ' |) Substr (substr(Fromad,2), 1, length (substr (Fromad, 2))-1) | Utl_Tcp.CRLF);
Utl_Smtp.write_data (, ' from: ' |) Substr (substr(Toad,2), 1, length (substr (Toad, 2))-1) | Utl_Tcp.CRLF);
Utl_Smtp.write_data (A, Utl_Tcp.CRLF);
Utl_Smtp.write_data (one Message |) Utl_Tcp.CRLF | Utl_Tcp.CRLF | Q'[here are the dates not reported my employee:]' | Utl_Tcp.CRLF);
Utl_Smtp.write_data (A, Utl_Tcp.CRLF);
Utl_Smtp.write_data (, ' EMPLOYEE_NAME ' |') -' ||' EMPLOYEE_NAME ' |' -' ||' DATE_NOT_REPORTED ' | Utl_Tcp.CRLF);
For I In 1.Dt.Count
Loop
Utl_Smtp.write_data (, ' ' |) EmpNo (I) | » '||' - '||' '|| EmpName (I) | » '||' - '||' '|| To_Char (DT (I), ' DD/mm/YYYY') | Utl_Tcp.CRLF);
End loop;
Utl_Smtp.write_data (A, Utl_Tcp.Crlf);
Utl_Smtp.write_data (, ' text ' |) Utl_Tcp.CRLF);
Utl_Smtp.write_data (A, Utl_Tcp.Crlf);
Utl_Smtp.write_data (, ' greetings,)
Sagar K N
'|| Utl_Tcp.CRLF);
Utl_Smtp.Close_Data (A);
Utl_Smtp.quit (A);
Exception
While others then
Utl_Smtp.quit (A);
Lift;
End;
/
I get the following error:
ORA-06550: line 1, column 7:
PLS-00201: identifier 'REPORT_MAIL' must be declared.
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
When I run 'user_errors' I get no error in the respective procdedure.
I'm not allowed to use the "Execute Immediate" statement as I've used?
Please guide me.
Thanks in advance.
I'm confused.
Depending on your error message, you have an identifier REPORT_MAIL which is not declared. According to the code you have posted, you have such no identifier anywhere in the code. Then, you post the error message incorrect or bad code.
You also say that you use EXECUTE IMMEDIATE. But the code you posted is not using EXECUTE IMMEDIATE.
Justin
-
Problem with the CLOB data type.
Greetings,
I am facing a problem with the CLOB data type. I know that the CLOB data type is 4 GB (I use Oracle 9i). But in the Pl Sql procedure, I can only store 34305 size for a CLOB variable character data.
This is the test script that I am trying to run.
DECLARE
-Local variables here*.
I have INTEGER;
C_1 CLOB.
BEGIN
FOR Rec IN (SELECT
*
ACCORDING TO THE TABLE)
LOOP
C_1: = c_1 | Rec.Clo_1;
END LOOP;
EXCEPTION
WHILE OTHERS THEN
Dbms_Output.put_line (SQLERRM);
END;
Here variable C_1 range value 34305 good character regardless of type CLOB. Now the above script fails if query my buckle - huge number of return values. It is throwing the exception "error during transfer of files ORA-06502: PL/SQL: digital error or value."
He would be grateful if someone can help me on this.
Thank you.You are probably better off using DBMS_LOB.append, instead of the concatenation of varchar2 (|).
And... take off your when-other Manager exceptions, please...
-
Problems with the date and time - have to reset the date & time on reboot
original title: problems with the date and time
Whenever I turn on my computer (Windows XP 2002) I click on F2. Then I re - set the date and time it occurred in January 2006 1 h every time I have turn off the computer. Can someone tell me what I need to do?
You need to replace the battery in time clock (RTC) real of your computer. It can also be called the CMOS or BIOS battery.
Many computers, this battery is an inexpensive CR2032 button available in almost every pharmacy corner. There are, however, some computers (especially laptops) that require a different (and probably more expensive) battery.
Whatever the expense, almost all of these batteries are easy to replace.
To get help, post back with the brand and model of your computer.
-
Problems with the data connection
Hello
I bought a Z3 Compact Xperia on December 10, 2014. I live in Italy and I use Vodafone as my everyday.
I got a SIM card replacement nano with LtE capabilities just to get the phone in the new fast network. The problem I encounter is that, since on January 13, 2015, I had some problems with the data in mode 3 G connection.
So far, I used my phone normally, then I tried to send a text message with WhatsApp and phone stuck with the clock icon in the lower corner of the bubble of the message. I thought it was a temporary network problem but I'm not sure about this.
I live in a small town where the coverage is really good, either in 3G and LTE. I tend to use the 3G because it uses less battery and it does not affect my 4G data plan.
Th issue, it's that if I do a speedtest when I feel that network glitch I have a ping, but with very good download speeds up to 2000ms.
The problem is that I believe that this is not a network problem because my mother has a phone HtC One S and runs vodafone without problem even when I'm having the glitch.
I tried to reset the phone to factory settings, but it did not help.
In LTE / 4G I do not experience this issue. In fact, I think if there is problem need a phone related software because the antenna works very well.
If it doesn't I'll try to contact ad Vodsfone then I'll send my phone for the helpdesk if Vodafone tell me that the question is not on their network.Thanks in advance for your help.
SimoneIt's pretty strange, double check the APN settings and contact EE in this regard.
-
My the purchase is Creative Cloud is a ° 16034007400 at the date of renewal there are problems with the credit card, but the deposit was paid to January. Up to now I can not use the program or one of its components without Adobe me any explanation on why I can not use.
Why not allow Use Adobe Creative Cloud?: Contact support from adobe for hourly pst by clicking here and, when available, click on "still need help," http://helpx.adobe.com/x-productkb/global/service-ccm.html
-
Hi guys, I had a problem with the monthly payment, it is written that my credit card data are no longer available, but my credit card is still valid until the 04.16 I olny a few days to fix this, is there another way to make a payment?... and how I can do?
Since this is an open forum, not Adobe support... you must contact Adobe personnel to help
Chat/phone: Mon - Fri 05:00-19:00 (US Pacific Time)<=== note="" days="" and="">===>
Don't forget to stay signed with your Adobe ID before accessing the link below
Creative cloud support (all creative cloud customer service problems)
-
problem with the locking of the data
Hi all
I'm having a problem with the locking of the data.
When I was trying to lock FY12 real periods. We cannot block periods. The consolidation runs perfect and all entities have the status of OK and all levels of the process are published, but when we try locking... We receive an error that "Consolidation, calculations or translations are required.
Published by: user10926115 on October 16, 2012 10:34We had this problem with our application, as well. I don't know what causes it, but I can advise on our solution.
In your grid lock, change your Value [None] member. Bear has the value
and shows that all entities are in a State of OK or OK SC. However, when we go to the [none] member value, we see that some entities still need calculation. Select the groups that aren't in an OK OK SC or ND OK and select 'calculate '. Once solve us this problem in the [None] member value, we have no problems with locking or unlocking of these entities for periods that have been addressed. I would like to know if it works for you.
Also, if someone else may be able to weigh in on the root of this problem, it would be certainly appreciated by more than just the op.
Thank you!
Scott -
Problem with the DATA types, in a UNION
Hello
I m trying to disply a custom message when no data found using the structure below. Unfortunately I ve you have a problem with the data types I im trying to union
I tried different types of data in the 2nd SELECTION tool but the rest of the problem. Help, please.
SELECT HOSP_NAME 'HOSPITAL' DOC_SUR 'NAME', 'NAME' DOC_NAME, d.DOC_ID ID, diagnosis
H., DOCTOR d, (SELECT d.DOC_ID, COUNT (d.DIAGN_ID) diagnosis
OF PATIENT_DIAGNOSIS d
GROUP BY d.DOC_ID)
WHERE diagnosis > 1
UNION ALL
SELECT TO_CHAR ('test'), TO_CHAR ('test'), TO_CHAR ('test'), TO_CHAR ('test'), 0
OF THE DOUBLE
If NOT EXISTS (HOSP_NAME 'HOSPITAL' 'NAME' 'NAME' DOC_NAME DOC_SUR, d.DOC_ID ID, diagnosis
OF ΝΟΣΟΚΟΜΕΙΟ h, ΙΑΤΡΟΣ d, (SELECT d.DOC_ID, COUNT (d.DIAGN_ID) diagnosis
OF PATIENT_DIAGNOSIS d
GROUP BY d.DOC_ID)
WHERE diagnosis > 1);
ORA-01790: expression must have same type of data, matching expression
01790 00000 - "expression must have the same type of data, matching expression.DOC_SUR 'NAME' DOC_NAME 'NAME', ID d.DOC_ID, HOSP_NAME "HOSPITAL", diagnosis
What is the data type for these columns
To_char('test'), to_char ('test'), to_char ('test'), to_char ('test'), 0
What you're doing here 'test' is already a character. Why do you use TO_CHAR?
-
Problem with the locale and date serialization in java
Hello
I have a serious problem with Flex dates and need a solution as soon as possible. I have a Flex 2 front end that uses remote java objects to talk to the database. I have a Flex 2 DateFields form. The dates of these are stored in the datebase. However I need the dates to be stored exactly as users them selects regardless of the locale.
What is happening at the moment is we are developing in Ireland and in selecting a date, filling an actionscript VO which is in turn transformed into a java VO (on a server in the United States) and when the date is stored in the database is one day before the date that we have selected. It seems that the flash player uses the locale with a time of midnight (GMT) users. When place the conversion to the EAST, it stores the date (GMT - 5), which causes the being Eve.
I changed my flex code to set the date at 12: 00 time even if he converts and subtracts 5 hours it will always be the same date. But this does not work, it seems to work sometimes and not others and is very inconsistent. I can't understand why it works sometimes.
Its makes me mental - someone has experienced this problem or did someone knows a solution PLEASE?
Thank youI'm not very familiar with your specific question, but I wonder if a combination of store dates as the first milliseconds since midnight January 1, 1970, universal time, stored as a string and then when presenting the data are aware, locale would solve the problem.
Maybe you are looking for
-
My macbook pro early 2011 has windows 7 on it. Windows gave me a warning that I get is no longer supported, because the operating system is outdated. I have upgraded to windows 10 and now the computer will not boot. I recently upgraded my 8 GB, 4 GB
-
How to create a trifold in Pages 5.6.1 brochure?
I would create a trifold in Pages 5.6.1 brochure but are not models to choose from. A Google search indicates that there used to be three-tiered models, but it seems that it is no more. So is it possible to do it manually, other than the creation o
-
When I had Windows 8 I was able to print double-sided. I recently upgraded to windows 10 and rebooted the printer through the computer settings as I did in the past. However,. now, there is no option to print double don't face... I looked in propert
-
What is "component Launcher snap"?
What is "component Launcher snap"? I had an open window and asked if I wanted to run it? It was after a right click computer, then choosing 'manage' option.
-
recently actualice a domain adobe reader controller. Ahmed lor archivos pdf y al poco tiempo no responde.desinstala y volvi a instalar y sigue igual.Neither siqueira habilita el boton x close.Tengo than restart the machine.PD: el SO are Windows 10