ORA-01102:
JinWe have the database drive d in windows xp, oracle 10.2. We have cloned that e drive.both are the same machine.
When we start the clone database, we got the following errors.
SQL > alter the editing of the database;
change the database editing
*
ERROR on line 1:
ORA-01102: cannot mount database in EXCLUSIVE mode
«ORA-04031: unable to allocate 2324 bytes of memory ('pool', ' select i.obj #, i.ts #, i.file #,... "," Typecheck","seg:kggfaAllocSeg ") shared»
Increase your LMS and/or shared_pool, and then try again.
Tags: Database
Similar Questions
-
Hello!
I have v7 IBM AIX and cluster HACMP set up two identical nodes included
I have a head node after the installation of database using dbca I got error with the message:
ORA-01102: cannot mount database in EXCLUSIVE mode
Database cannot mount)
Here is the information from the alert log:
MON may 25 18:00:07 2015
Starting ORACLE instance (normal)
LICENSE_MAX_SESSION = 0
LICENSE_SESSIONS_WARNING = 0
SNA system picked latch-free 3
With the help of LOG_ARCHIVE_DEST_1 parameter value by default as USE_DB_RECOVERY_FILE_DEST
Autotune undo retention is enabled.
IMODE = BR
ILAT = 84
LICENSE_MAX_USERS = 0
SYS audit is disabled
Commissioning:
Oracle Database 11 g Enterprise Edition Release 11.2.0.3.0 - 64 bit Production
With the options of partitioning, OLAP, Data Mining and Real Application Testing.
ORACLE_HOME = /u01/app/oracle/product/11.2.0/dbhome_1/
System name: nodename
Name of the node: nodename
Version: 1
Version: 7
Machine: 0003F6E5D600
Using the settings in /u01/app/oracle/product/11.2.0/dbhome_1/dbs/spfiletestdb.ora side Server spfile
Parameters of the system with default values:
process = 500
sessions = 772
= 18G memory_target
control_files = "/ ctl1/oradata/testdb/control01.ctl".
control_files = "/ ctl2/oradata/testdb/control02.ctl".
control_files = "/ ctl3/oradata/testdb/control03.ctl".
DB_BLOCK_SIZE = 8192
compatible = "11.2.0.0.0."
db_recovery_file_dest = ' / backup/fra.
db_recovery_file_dest_size = 100G
undo_tablespace = 'UNDOTBS1.
Remote_login_passwordfile = "EXCLUSIVE."
db_domain = «»
dispatchers = "(PROTOCOL=TCP) (SERVICE = testdbXDB)" "
audit_file_dest = ' / u01/app/oracle/admin/testdb/adump.
AUDIT_TRAIL = 'DB '.
db_name = 'testdb '.
open_cursors = 300
diagnostic_dest = ' / u01/app/oracle '.
MON may 25 18:00:08 2015
PMON started with pid = 2, OS id = 14418020
MON may 25 18:00:08 2015
PSP0 started with pid = 3, OS id = 17891420
MON may 25 18:00:09 2015
VKTM started with pid = 4, OS id = 14090348 high priority
VKTM clocked at (10) precision of milliseconds with DBRM quantum (100) ms
MON may 25 18:00:09 2015
GEN0 started with pid = 5, OS id = 9109714
MON may 25 18:00:09 2015
DIAG started with pid = 6, OS id = 16449704
MON may 25 18:00:09 2015
DBRM started with pid = 7, OS id = 17104928
MON may 25 18:00:10 2015
DIA0 started with pid = 8, OS id = 13303950
MON may 25 18:00:10 2015
MA started with pid = 9, OS id = 12517522
MON may 25 18:00:10 2015
DBW0 started with pid = 10, OS id = 11993232
MON may 25 18:00:10 2015
LGWR started with pid = 11, OS id = 15401010
MON may 25 18:00:10 2015
CKPT started with pid = 12, OS id = 6619318
MON may 25 18:00:10 2015
SMON started with pid = 13, OS id = 16515222
MON may 25 18:00:10 2015
RECCE has started with pid = 14, OS id = 13172906
MON may 25 18:00:10 2015
MMON started with pid = 15, OS id = 15794324
commissioning 1 dispatcher (s) for '(ADDRESS =(PARTIAL=YES) (PROTOCOL = TCP))' network address...
MON may 25 18:00:10 2015
MMNL started with pid = 16, OS id = 18546742
commissioning or shared server 1...
Environment ORACLE_BASE = / u01/app/oracle /.
MON may 25 18:00:11 2015
ALTER DATABASE MOUNT
sculkget: failed to lock /u01/app/oracle/product/11.2.0/dbhome_1//dbs/lkTESTDB exclusive
sculkget: lock held by PID: 3670226
ORA-09968: cannot lock file
IBM AIX RISC System/6000 error: 13: permission denied
Additional information: 3670226
ORA-1102 marked during: ALTER DATABASE MOUNT...
But if I install the darabase even dbca on node secondary, all installed and executed successfully.
But in the two nodes even permissions, user oracle and oinstall group ID identified the same and $ORACLE_BASE and $ORACLE_HOME user owner oracle and oinstall user group.
A someone has encountered this problem and solved?
Thanks in advance!
Hello
you are using IBM AIX PowerHA for your database (active/passive) configuration. then you just install the binaries 'once' on one of the nodes. then coordinate with your operating system administrator to configure the fail the test scenarios.
for your question. before you start the database, make sure that there are no "orphaned" oracle process using the UNIX grep command:
$ ps - ef | grep ora
Kill the oracle of the hanging of the process to release the lock on the database file handle:
$ kill-9
I hope this helps.
Kind regards
-
ORA-01102: cannot mount database in EXCLUSIVE mode
Hi I work on Windows 2007, 64-bit, with oracle 11g: 11.1.0.6.0
Today, I created a tablespace of cancellation more as undotbs2, and then I went to undotbs2 database.
Then, I gave the order to drop the undotdb1. He has successfully completed. but undo datafile has not been eliminated. So I tried to manually delete the data file it didn't ' success.
So I stop the database & then deleted file manually
. After giving the start command, I was getting this error
of alert_log
ORA-01157: cannot identify/lock data file 3 - see DBWR trace file
ORA-01110: data file 3: ' E:\APP\ADMINISTRATOR\ORADATA\UNDOTBS01. DBF'
ORA-27041: could not open the file
04002 - OSD: could not open the file
S/O-error: (OS 2) the system cannot find the file specified.
ORA-1157 marked during: alter database open...
Kills Jul 30 16:10:48 2013
Starting ORACLE instance (normal)
Then I dropped the datafile undo
Alerts log
ALTER database datafile ' E:\APP\ADMINISTRATOR\ORADATA\EFVAT\UNDOTBS01. DBF' offline drop
Completed: alter database datafile ' E:\APP\ADMINISTRATOR\ORADATA\EFVAT\UNDOTBS01. DBF' offline drop
ALTER database open; database opened successfully.
but she was still showing undotbs1 undo_tablespace parameter, so I created a more (2nd one) undo tablespace. I'm going to this error in the alert log
ORA-30012: undo tablespace "UNDOTBS02" there is not, or of the wrong type
After that, I'm not able to mount the database I m getting as below
Alerts log
ORA-09341: scumnt: unable to mount the database
OSD-04400: impossible to acquire the internal process semaphore
S/O-error: (OS 183) cannot create a file when that file already exists.
ORA-1102 marked during: ALTER DATABASE MOUNT...
get this error when I try to start the database
. ORA-01102: cannot mount database in EXCLUSIVE mode
974427 wrote:
Hi I work on Windows 2007, 64-bit, with oracle 11g: 11.1.0.6.0
Today, I created a tablespace of cancellation more as undotbs2, and then I went to undotbs2 database.
Then, I gave the order to drop the undotdb1. He has successfully completed. but undo datafile has not been eliminated. So I tried to manually delete the data file it didn't ' success.
So I stop the database & then deleted file manually
. After giving the start command, I was getting this error
of alert_log
ORA-01157: cannot identify/lock data file 3 - see DBWR trace file
ORA-01110: data file 3: ' E:\APP\ADMINISTRATOR\ORADATA\UNDOTBS01. DBF'
ORA-27041: could not open the file
04002 - OSD: could not open the file
S/O-error: (OS 2) the system cannot find the file specified.
ORA-1157 marked during: alter database open...
Kills Jul 30 16:10:48 2013
Starting ORACLE instance (normal)
Then I dropped the datafile undo
Alerts log
ALTER database datafile ' E:\APP\ADMINISTRATOR\ORADATA\EFVAT\UNDOTBS01. DBF' offline drop
Completed: alter database datafile ' E:\APP\ADMINISTRATOR\ORADATA\EFVAT\UNDOTBS01. DBF' offline drop
ALTER database open; database opened successfully.
but she was still showing undotbs1 undo_tablespace parameter, so I created a more (2nd one) undo tablespace. I'm going to this error in the alert log
ORA-30012: undo tablespace "UNDOTBS02" there is not, or of the wrong type
After that, I'm not able to mount the database I m getting as below
Alerts log
ORA-09341: scumnt: unable to mount the database
OSD-04400: impossible to acquire the internal process semaphore
S/O-error: (OS 183) cannot create a file when that file already exists.
ORA-1102 marked during: ALTER DATABASE MOUNT...
get this error when I try to start the database
. ORA-01102: cannot mount database in EXCLUSIVE mode
Well, your trace file indicates that the above description is innaccurate: you did NOT create an undo tablespace undotbs2, you have created a undotbs2 permanent tablespace.
You may be able to repair this situation, like this:
startup nomount
ALTER system set undo_management = manual scope = spfile;
immediate stop
startup
create undo tablespace undo3 datafile ' / whatever/you.like ' size XXg;
ALTER system set undo_tablespace is undo3 scope = spfile;.
ALTER system set undo_management = auto scope is spfile;.
immediate stop
startup
-
Hello
facing the issue when connecting with sys: -.
SQL > conn sys as sysdba
Enter the password:
Connect to an instance is idle.
SQL > select name from V$ DATABASE;
Select name from V$ DATABASE
*
ERROR on line 1:
ORA-01034: ORACLE not available
Process ID: 0
Session IDs: serial number 0: 0
I have the export ORACLE_HOME, PATH and SID.
THKVIANA says:
Now I start, invite it: -.SQL > startup
ORACLE instance started.Total System Global Area 2059018240 bytes
Bytes of size 1314408 fixed
1023410584 variable size bytes
1023410176 of database buffers bytes
Redo buffers 10883072 bytes
ORA-01102: cannot mount database in EXCLUSIVE modeYour database actually started (mounted) by another instance. Set your ORACLE_SID variable correctly and continue
export ORACLE_SID=
(in windows set ORACLE_SID= ) sqlplus "/as sysdba" shutdown immediate; startup; -
Hi all
I have install database 11g LINUX box, after installation of the database, want to connect with sqlplus, but unable to connect, I export oracle_home and sid, what is the cause?
Thank you.MONICA118 wrote:
Chinar,It gives like this: -.
ORA-01102: cannot mount database in EXCLUSIVE mode
Thank you.
It seems that you have actually started your database, then you can try following
export ORACLE_SID=
sqlplus "/as sysdba" shutdown immediate; startup; -
Not able to connect to database 11G2R asm
Hi all
I created a database of ASM with SID ASMDB, but when I connect to the database of its connection to an Instance inactive.
I put all the environment variables correctly ($ORACLE_SID, $ORACLE_HOME, $PATH etc.)
When I check the process for the DB operation.
----------------------------------------------------
bash-3. $00 ps - ef | grep ASMDB
ora11g 3578 1 0 15:00:28? 0:25 ora_ckpt_ASMDB
ora11g 4391 1 0 15:05:58? 0:07 ora_smco_ASMDB
ora11g 3598 1 0 15:00:29? 0:01 ora_s000_ASMDB
ora11g 3582 1 0 15:00:29? 0:01 ora_reco_ASMDB
ora11g 3558 1 0 15:00:28? 0: ora_vktm_ASMDB 11
ora11g 3588 1 0 15:00:29? 0:28 ora_mmon_ASMDB
ora11g 3586 1 0 15:00:29? 0:02 ora_asmb_ASMDB
ora11g 3562 1 0 15:00:28? 0:03 ora_gen0_ASMDB
ora11g 3584 1 0 15:00:29? 0:03 ora_rbal_ASMDB
ora11g 3876 1 0 15:00:55? 0:01 ora_qmnc_ASMDB
ora11g 3556 1 0 15:00:28? 0:32 ora_pmon_ASMDB
ora11g 3570 1 0 15:00:28? 01:25 ora_dia0_ASMDB
ora11g 3574 1 0 15:00:28? 0:14 ora_dbw0_ASMDB
ora11g 3572 1 0 15:00:28? 0:05 ora_mman_ASMDB
ora11g 3580 1 0 15:00:29? 0:08 ora_smon_ASMDB
ora11g 3576 1 0 15:00:28? 0:14 ora_lgwr_ASMDB
ora11g 3596 1 0 15:00:29? 0:04 ora_mark_ASMDB
ora11g 3568 1 0 15:00:28? 0:04 ora_psp0_ASMDB
ora11g 3592 1 0 15:00:29? 0:38 ora_mmnl_ASMDB
ora11g 3566 1 0 15:00:28? 0:03 ora_dbrm_ASMDB
ora11g 3594 1 0 15:00:29? 0:01 ora_d000_ASMDB
ora11g 3903 1 0 15:01:06? 0:02 ora_q000_ASMDB
ora11g 17020 1 0 08:08:21? 0:00 ora_w000_ASMDB
ora11g 3891 1 0 15:01? 0:20 ora_cjq0_ASMDB
ora11g 3564 1 0 15:00:28? 0:04 ora_diag_ASMDB
ora11g 3905 1 0 15:01:06? 0:01 ora_q001_ASMDB
ora11g 17069 27681 0 08:12:47 pts/6 0:00 grep ASMDB
bash-3. 10TH
-----------------------------------------------------
bash-3. $00 echo $ORACLE_SID
ASMDB
bash-3. $00 echo $ORACLE_HOME
/Appl/11.2.0/dbhome_1/
bash-3. 10TH
-------------------------------------------
When I am trying to connect:
bash-3. $00 sqlplus / as sysdba
SQL * more: Production version 11.2.0.1.0 on Mon Jul 12 08:17:05 2010
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Connect to an instance is idle.
SQL >
---------------------------------------
Thanks in advance.Hello
Try to start database, when it says connected to Instance inactive.
I've also faced same situation recently.
If it does not start and light error ORA-01102 failed to mount database in exclusive mode .
Then kill all the processes associated with your Instance.
After killing all processes try to start your database with the appropriate environment variable.
Kind regards
A H E E R X -
Hello
I have two databases(11g) on my windows machine. One (ORCL is the name of the comic) which is the default with 8 k size block and second one (TESTDB4K) that I created with DBCA with block size 4 k.
After my second database has been successfully created, I started SQL * Plus with my previously created DBA user i.e. KAM, received the error that the user does not exist (second database block size 4 k became the PRIMARY database).
Now I want to connect to my database 8 k but I'm having difficulties.
How can I connect to my database default 8 k?
I tried different things like below 3 SQL Watch, but still not able to solve.
SQL > STARTUP NOMOUNT PFILE = ' D:\app\Administrator\product\11.1.0\db_1\database\INITORCL. ORA';
SQL > STARTUP NOMOUNT PFILE = ' D:\app\Administrator\product\11.1.0\db_1\database\INITORCL. ORA';
SQL > STARTUP PFILE ORCL OPEN = "D:\app\Administrator\product\11.1.0\db_1\database\INITORCL.ora" PARALLEL;
make the same mistake every time. I've used all sorts of options to stop to stop all instances but invain :(
ORACLE instance started.
Total System Global Area 263639040 bytes
Bytes of size 1332552 fixed
88083128 variable size bytes
171966464 of database buffers bytes
Redo buffers 2256896 bytes
ORA-01102: cannot mount database in EXCLUSIVE mode
Please suggest with the help of SQL
Thank you very much.
Best regards
KAMTry without the spaces before and after '=':
set ORACLE_SID=ORCL
Check with:
echo %ORACLE_SID%
-
ORA-27300: OS dependent operating system: CreateThread failed with status: 8
Hi all
I'm looking for information on the guide follow error
ORA-27300: OS dependent operating system: CreateThread failed with status: 8
ORA-27301: OS Error Message: not enough memory is available to process this command.
ORA-27302: an error occurred at: ssthrddcr
Thank you
WaqasPlease don't be crazy on me, but in my opinion, this is the wrong place for your question. The fact is that Toshiba doesn't support Windows 2003 server for mobile computing. If you have problems try again with Microsoft.
As a manufacturer of operating system, they should be able to offer an explanation for each error message. Sorry, but I see no connection between the problems described and Toshiba as a hardware manufacturer. -
ORA-12154 tns could not resolve the specified correct identifier
I am facing the following problem:
labVIEW 2012 32 bits 64 bits of Windows 7, 10.2.0.1.0 oracle client (32-bit).
I created a DSN from Data Sources (ODBC) (32-bit version of what in % windir%\syswow64\odbcad32.exe) pointing to an instance of Oracle 10 g.
I have test the DSN in this way (IE. Data sources (ODBC) and the connection is successful (which means that the tnsnames.ora is correct).
I use the "DB tools Open Connection.vi" in order to get connected to this database, passing as parameters the DSN above, the user name and password.
I get the error:
ADO error: 0x80040E4D
Exception occurred in the Microsoft OLE DB provider for ODBC drivers:[Oracle] [ODBC] [Ora] ORA-12154: TNS could not resolve the specified correct identifier
all will help much appreciated
Thanks in advance
Hello everyone.
I already solved the problem (work until late Saturday).
the solution was to install the latest version of the Oracle customer, namely: Oracle 11 g Release 2 CLIENT for Windows 32 (11.2.0.1.0).
Now everything works OK.
I also tested in Windows 7 32 bit (the .vi even and the same Oracle client). This will also OK.
Thans a lot.
-
Hello-
I am facing the following question when I try to connect by using the command prompt sqlplus for Oracle 11.2.0.3 DB installed and running on HP - UX.
The password is not all special characters & I also tried with the double quotes which did not work.
Following want to work with username/password@TNSNAME because I'm trying to get my application to connect to the database, the schema mentioned because it uses the jdbc connection with the connection as (username/password@TNS:1521) string.
C:\Users>sqlplus username/Pa55w0rd@DBNAME; SQL*Plus: Release 11.2.0.1.0 Production on Wed Feb 10 07:21:43 2016 Copyright (c) 1982, 2010, Oracle. All rights reserved. ERROR: ORA-12154: TNS:could not resolve the connect identifier specified Enter user-name: C:\Users>tnsping DBNAME TNS Ping Utility for 32-bit Windows: Version 11.2.0.1.0 - Production on 10-FEB-2 016 07:21:57 Copyright (c) 1997, 2010, Oracle. All rights reserved. Used parameter files: C:\app\product\11.2.0\client_2\network\admin\sqlnet.ora Used TNSNAMES adapter to resolve the alias Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP) (HOST = server.domain) (PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = DBNAME))) OK (50 msec) C:\Users>sqlplus username@DBNAME SQL*Plus: Release 11.2.0.1.0 Production on Wed Feb 10 07:22:05 2016 Copyright (c) 1982, 2010, Oracle. All rights reserved. Enter password: Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production With the Partitioning, Automatic Storage Management, OLAP, Data Mining and Real Application Testing options SQL> show user USER is "username" SQL> exit Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64 bit Production With the Partitioning, Automatic Storage Management, OLAP, Data Mining and Real Application Testing options C:\Users>
content content of tnsnames.ora & sqlnet.ora:
DBNAME = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP) (HOST = server.domain) (PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = DBNAME) ) )
# sqlnet.ora Network Configuration File: C:\app\product\11.2.0\client_2\network\admin\sqlnet.ora # Generated by Oracle configuration tools. # This file is actually generated by netca. But if customers choose to # install "Software Only", this file wont exist and without the native # authentication, they will not be able to connect to the database on NT. #SQLNET.AUTHENTICATION_SERVICES= (NTS) NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)
Thanks in advance
Hello
sqlplus username/Pa55w0rd@DBNAME;
Try it without the semicolon;
sqlplus username/Pa55w0rd@DBNAME
Regards Thomas
-
ORA-02089: COMMIT is not allowed in a session of subordinate.
Hi all
We call our Oracle stored procedure in a database link from a MS SQL database and get the following error...
Error was not able to run native in bulk handling request: exec AddBookingToCRM @p_attribute1 = "other bulky ', @p_attribute2 = '1 ', @p_attribute3 ="Not specified", @p_attribute4 =" N/a", @p_attribute5 ="Not specified", @p_attribute8 = ' 1231', @p_attribute9 = ' 91665 ', @p_customer_title = 'Mr', @p_customer_firstname is 'Scott', @p_customer_surname = 'Burton', @p_customer_uprn = ' 64004572', @p_customer_area_code = ' 01234 ', @p_customer_phone = ' 567984' , @p_customer_email = ' [email protected]', @p_contact_title = 'Mr', @p_contact_firstname is 'Scott', @p_contact_surname = 'Burton', @p_contact_area_code = ' 01234 ', @p_contact_phone = ' 567984', @p_contact_email = ' [email protected]', @p_resolution_date = ' 2016-02-11 07:00 ' [SQL: exec AddBookingToCRM @p_attribute1 = "other bulky ', @p_attribute2 = '1 ' @p_attribute3 ="Not specified", @p_attribute4 =" N/a", @p_attribute5 ="Not specified", @p_attribute8 = ' 1231', @p_attribute9 = ' 91665' @p_customer_title = 'Mr'] [@p_customer_firstname = 'Scott', @p_customer_surname = 'Burton', @p_customer_uprn is '64004572 ', @p_customer_area_code = '01234', @p_customer_phone = ' 567984', @p_customer_email = ' [email protected]', @p_contact_title = 'Mr', @p_contact_firstname is 'Scott', @p_contact_surname = 'Burton', @p_contact_area_code is '01234', @p_contact_phone = ' 567984', @p_contact_email = ' [email protected]', @p_resolution_date = ' 2016-02-11 07:00 '] could not execute statement on remote server 'LLPGDEV '. "OraOLEDB.Oracle" provider OLE DB linked server 'LLPGDEV' returned message ' ORA-02089: COMMIT is not allowed in a session subordinate ORA-06512: at "XXCRM." XXCRM_CREATE_INCIDENT_DETAILS', line 376 ".
Thank you very much
Mike Williams.
You must be in a comeback or XA transaction. This means that you can not call a procedure that has a COMMIT, because hiring the framework of a transaction is logically impossible. So remove the VALIDATION of the procedure. Which you should do anyway: to engage in a procedure is usually a bad thing.
-
ORA-00020: maximum number of processes (150) exceeded
Hello
I'm getting ORA-00020: maximum number of processes (150) exceeded. I can not connect as sys. I killed all the oracle user processes but could not connect. Pls advice me on this.
Rgds,
AthuruMithuru.
Hello
try to connect with a - prelim
prelim sqlplus / as sysdba
-
"" ORA-04062: SIGNATURE OF THE PACKAGE "apps.fnd_date" has been changed
Hi all
EBS R12.1.3
OL6.5
We have an instance of clone TEST taken instance PROD.
For our Production, we have:
> appprod - level apps
> oraprod - db level
Then we cloned TEST such as:
> apptest - level apps
> oratest - db level
Then we applied many fixes on test for validation or 'tests '.
Now after 6 months, we need current data production to simulate past editions. So I restore rman PROD sauvegardΘ on UAT data so the data are now more recent.
But I do not to reclone level apps (apptest) so the patches will be still intact.
Is this a correct process? The database has been modified, but the apps layer was always the same?
So far, we have 3 errors
ORA-04062: signature of the package 'APPS '. "IBY_DISBURSEMENT_COMP_PUB ' has been changed
"" ORA-04062: SIGNATURE OF THE PACKAGE "apps.fnd_date" has been changed
error msge: FRM - 40735:PRE - F Trigger of the ORM raised unhandled exception ORA-01403
Kind regards
JC
Have you checked error logs? Check if its related to this.
Refreshing Apps also PROD level now? or is it the old application layer on which you run just autoconfig?
Running Adcfgclone at the level of the Apps fails with ' mscmatlab.sh: line 45: uncompress: command not found "(Doc ID 1529335.1)
-
ORA-01422: exact fetch returns more than number of lines
Hello world
I want to create a procedure only allows me to perform selection et Update in my database, I have already create the procedure and compiled without problems but when I want to run this procedure, I have this error
ORA-01422: exact fetch returns more than number of lines
This syntax of my procedure
create or replace procedure app is
i nombre := 100 ;
o_username employees.first_name% TYPE ;
o_lastn employees. Last_name %TYPE
o_sal. employees % of SALARY TYPE ;
Start
loop
/ * display * /.
Select first_name, LAST_NAME, SALARY
in o_username, o_lastn, o_sal
of admin.employees where employee_id = i;
DBMS_OUTPUT. Put_line (' name: ' | o_username);
DBMS_OUTPUT. Put_line (' first name: ' | o_lastn);
DBMS_OUTPUT. Put_line (' salary: ' | o_sal)
/ * put a days * /.
Update employees
put salary = salary + salary *0.25 where employee_id = i;
commit;
/ * dbms_put.put_line (' new salary is: ' | ') sell2_tab (i)); * /
i := i + 1 ;
/ * list the data * /
/ * dbms_put.put_line (' new salary is: ' ") ;*/
output when i = 200;
end loop;
end app;
thnx
create or replace procedure APP is
Constant START_ID EMPLOYEES. EMPLOYEE_ID % TYPE: = 100;
Constant END_ID EMPLOYEES. EMPLOYEE_ID % TYPE: = 200;
O_USERNAME EMPLOYEES. Type % name;
O_LASTN EMPLOYEES. Last_name type %;
O_SAL EMPLOYEES. Kind of % of SALARY;
Start
for rec (select FIRST_NAME, LAST_NAME, salary
the admin. EMPLOYEES
where EMPLOYEE_ID between START_ID and END_ID)
loop
DBMS_OUTPUT. Put_line (' name: ' | rec. NAME);
DBMS_OUTPUT. Put_line ("first name:" | ") Rec. LAST_NAME);
DBMS_OUTPUT. Put_line (' salary: ' | rec. SALARY) / * setting days * /.
end loop;
Update EMPLOYEES
Set SALARY = SALARY + SALARY * 0.25
where EMPLOYEE_ID between START_ID and END_ID;
commit;
end app;
-
Data load rule for BefImport script getting failed due to the error Code ORA-01858
Hello guys,.
I'm trying to load some data from the views created in EBS to HFM using FDMEE with the help of the BefImport Script. To do this, I wrote script below:
_________________________________________________________________________________________________________________________________________________
import java.sql SQL
import sys
batchName = "Batch_" + str (fdmContext ["LOCNAME"])
insertStmt = «»
stmtRS = «»
If (fdmContext ["LOCNAME"] is "LOC_OIA_FA_CORP1"):
"insertStmt = '"
INSERT INTO AIF_OPEN_INTERFACE)
BATCH_NAME
YEAR
PERIOD
PERIOD_NUM
CURRENCY
COL04
COL05
COL07
COL08
COL09
COL10
COL11
QUANTITY
) (VALUES
?
,?
,?
,?
,?
,?
,?
,?
,?
,?
,?
,?
,?
)
"""
sourceConn = sql. DriverManager.getConnection ("jdbc:oracle:thin:@ebsr12dbcnvgl.abc.com:1541:avc", "pppp", "nnnnn");
# Limiting the number of rows to 5 during the test runs.
selectStmt = 'SELECT TEMP_VIEW. PERIOD_YEAR, TEMP_VIEW. PERIOD_NAME, TEMP_VIEW. PERIOD_NUM, TEMP_VIEW. CURRENCY_CODE, TEMP_VIEW. SEGMENT1, TEMP_VIEW. SEGMENT2, CONCAT (TEMP_VIEW. SEGMENT3, TEMP_VIEW. "SEGMENT4) AS SEGMENTX, TEMP_VIEW.SEGMENT5, TEMP_VIEW.SEGMENT6, TEMP_VIEW.SEGMENT7, TEMP_VIEW.SEGMENT8, TEMP_VIEW.NETBAL FROM TEMP_VIEW WHERE THE QUAD IS NOT NULL.
stmt = sourceConn.prepareStatement (selectStmt)
stmtRS = stmt.executeQuery)
batchName = "Batch_" + str (fdmContext ["LOCNAME"])
While (stmtRS.Next ()):
params = [batchName, stmtRS.getString("PERIOD_YEAR"),
stmtRS.getString ("PERIOD_NAME"),
stmtRS.getString ("PERIOD_NUM"),
stmtRS.getString ("CURRENCY_CODE"),
stmtRS.getString ("SEGMENT1"),
stmtRS.getString ("SEGMENT2"),
stmtRS.getString ("SEGMENTX"),
stmtRS.getString ("SEGMENT5"),
stmtRS.getString ("SEGMENT6"),
stmtRS.getString ("SEGMENT7"),
stmtRS.getString ("SEGMENT8"),
stmtRS.getBigDecimal ("NETBAL")]
fdmAPI.executeDML (insertStmt, params, False)
fdmAPI.commitTransaction)
stmtRS.close)
stmt. Close()
sourceConn.close)
_________________________________________________________________________________________________________________________________________________
But my DLR gets failed. When I checked the ODI journal for this, I found that it is said: stmtRS = stmt.executeQuery () and display and error code problem:
java.sql.SQLDataException: java.sql.SQLDataException: ORA - 01858: a nonnumeric character where waiting a digital.
What is the problem? Kindly help.
Thank you
Concerning
Nishant
Nishant
small Question... What version you use. the latest Patch is now universal data adapter that allows for a direct import of the tables and views without the need to use the Interface open to scene data table
If you're not on current patch.100 then you should look at the data types for the OpenInterface table... you can see the number. I guess it's the column YEAR or PERIOD_NUM giving you seizures
If you run your code in Eclipse before you deploy I'd print our your insertStmt SQL and then try to run in SQLDeveloper.
Hope this helps
Wayne
Maybe you are looking for
-
Hello If I implement a BBSM server do I need a radius server to work properly? The specification BBS said he uses Radius Authentication, so that is integrated with the BBS box or do I need a separate server? I have this box in mind http://www.pcwb.co
-
How can I send an email from abroad in Belgium?
Hello I know this sounds like a stupid question but I am puzzled & in the hope that perhaps there is something more necessary that simply entering it personal email from someone. I have a family member in Belgium who is on his deathbed, and his lawye
-
Windows Installer doesn't show to be installed on Windows 7
Original title: I need help fixing windows installation problem! Please Ive had trouble with my windows install is saying its not installed, but it is and Ive tried to reinstall but ive had no luck ive also tried safe mode to ensure that sound off an
-
When you change the language in the new version of legacy? Thank you
When you change the language in the new version of legacy? Thank you
-
sorting data - more great temp tablespace and temporary tablespace
Hello Using oracle 11.2.0.3 and have a general question. If have a query which has to say read 100 million records and the Group results it takes a bigger temporary tablespace to sort these data Rathet than agnist an identical query summed up version