Questions tagged [ora-06512]

Oracle database error code ORA-06512: unhandled exception

ora-06512
Filter by
Sorted by
Tagged with
0 votes
2 answers
52 views

ORA-02291: integrity constraint ... violated - parent key not found ORA-06512: at "SYS.DBMS_SQL", line 1721

I am very new to SQL. This is my first attempt using Live SQL. I keep receiving this error: ORA-02291: integrity constraint (SQL_ATLZSRILYVHLJWXPIAPEHJEPK.FK_HOSPITAL_SPECIALTY_ID_PATIENT) violated - ...
Cris's user avatar
  • 1
0 votes
0 answers
24 views

ORA-04091: table is mutating

I want to create a trigger that it will update the total_price after insert a record. The trigger will invoke a procedure , then the procedure will invoke a function. Here are the function, procedure ...
kenny0389's user avatar
0 votes
0 answers
112 views

How do I convert an Oracle SQL BLOB into a read-only text?

I need to provide some log messages to a person: for me as an admin that is just point and click stuff, but for this person is not possible unless I can extract and convert a blob and deliver that in ...
Sgargoo's user avatar
0 votes
1 answer
999 views

06502. 00000 - "PL/SQL: numeric or value error%s"

Hi I have one task to solve. I wrote this code CREATE OR REPLACE function hr_funct_task4(p_emp_id number) return varchar as v_emp_last_name varchar2(25); v_count number; ...
Kristina's user avatar
0 votes
1 answer
409 views

ORA-06512 - "invalid user.table.column, table.column, or column specification"

I have to insert values to my_temp_table. Some columns are stored in the v_ModelsList variable. The v_ModelsList is: Model_7318802U,Model_7304773U,Model_M0347. It is necessary to use a variable with ...
anst's user avatar
  • 21
1 vote
1 answer
320 views

No result from a query stored in a VARCHAR2 variable is treated as an empty string or a NULL? - Oracle PL/SQL - Oracle 11g

I have a procedure which performs a SELECT INTO and stores the returned result in a VARCHAR2 variable called account_: SELECT DISTINCT NVL(XYZ_API.Get_Ref(company, currency, pay_type, order_id), ...
Uthpala Dl's user avatar
0 votes
0 answers
232 views

SQL Developer errors: ORA-06512 and ORA-04088

create or replace TRIGGER TR_T_PR_FARMACO BEFORE INSERT ON T_PR_DIZ_FARMACO FOR EACH ROW BEGIN IF LENGTH(:new.T_PR_DIZ_FARMACO_MINSAN) < 9 THEN RAISE_APPLICATION_ERROR(-20013,'La lunghezza del ...
EVA PACHETTI's user avatar
0 votes
1 answer
2k views

SQL Error: ORA-01843: not a valid month

I am receiving ORA-01843 when I run the Insert command below. Is there something wrong with my code? And got the below error messages: SQL Error: ORA-01843: not a valid month ORA-06512: at "MDSYS....
Raymond's user avatar
  • 17
1 vote
2 answers
2k views

Failure while exporting table from Oracle XE Database

We have XE running on a docker container. When trying to export a table I got the below error expdp test/test@XE tables=UserProfile directory=/tmp dumpfile=profile.dmp logfile=logger ORA-39006: ...
pocman's user avatar
  • 335
-4 votes
1 answer
901 views

I can't insert data into the table due to an SQL error

This is the error I get when I insert the data: INSERT INTO "44581114"."TEACHING_INFORMATION" (STAFFID, COURSEID, SEMESTER, YEAR) VALUES ('11223344', 'ISYS224', 'S3', '2014') error: ORA-02291: ...
Disha Jayz's user avatar
0 votes
1 answer
2k views

Anonymous block cursor including group by and for update

I have a table products with following description: desc products; Name Null? Type ---------------------- -------- -------------- PID NOT NULL CHAR(4) PNAME ...
Sam Keith's user avatar
0 votes
3 answers
256 views

Getting conversion error while running a procedure - Oracle SQL

CREATE OR REPLACE PROCEDURE read_file IS f_line VARCHAR2(2000); f utl_file.file_type; comma1 VARCHAR(10); comma2 VARCHAR(10); comma3 VARCHAR(10); comma4 ...
Abhinav's user avatar
0 votes
1 answer
567 views

Oracle11g ORA-01403 No data found using Select Into

I am quite new to Oracle and I have an issue I have been struggelig With for some hours. sample: Create Table Accounts (Id number(10),Balance number(16,3), Status Varchar2(50),Owner_Id number(10)); ...
MrM's user avatar
  • 399
1 vote
2 answers
8k views

Is DBMS_LOB.SUBSTR limitation in dealing with characters which are > 1 byte

create table t ( x int, y clob ); create or replace procedure p( p_x in int, p_new_text in varchar2 ) as begin insert into t values ( p_x, p_new_text ); end; / exec p(1, ...
somshivam's user avatar
  • 779
3 votes
3 answers
69k views

Oracle 00932. 00000 - "inconsistent datatypes: expected %s got %s"

well i'm still new in oracle, i'm trying to query a table with a subquery..it looks like this select id_user, count(*) as jumlah from (select * from users where username = 'usr' and pass = 'pwd' and ...
thekucays's user avatar
  • 608
0 votes
0 answers
348 views

ORA-06512: FN_CONVERT_ROWS_COLUMNS on select * from <TABLE_NAME>

I am running into this error while running a simple sql queries on the table. select * from <TABLE_NAME> select * from <TABLE_NAME> where rownum < 5 select * from <TABLE_NAME&...
Sarthak Dudhara's user avatar
0 votes
1 answer
812 views

ORA-00903, ORA-06512, while counting count of rows of all user tables(dynamic sql)

I want to count count of rows of every user table, but by means of dynamic sql, and there are such errors. ORA-00903: invalid table name ORA-06512: at line 19 SQL2.sql 20 2 DECLARE TYPE ...
user3474380's user avatar
6 votes
3 answers
17k views

PL/SQL Append_Values Hint gives error message

I am having trouble doing a large number of inserts into an Oracle table using PL/SQL. My query goes row-by-row and for each row the query makes a calculation to determine the number of rows it needs ...
user3312037's user avatar
1 vote
2 answers
72k views

Error during trigger execution - ORA-06512 - ORA-04088

I've these tables CELL(CellId, x0, y0, x1, y1, CurrentPhone#, MaxCalls) TELEPHONE(PhoneNo, x, y, PhoneState) STATE_CHANGE(ChangeId, TimeStamp, PhoneNo, x, y, ChangeType) And I've to create this ...
user2999664's user avatar
0 votes
1 answer
6k views

ORA-06550, PLS-00103, ORA-06512 on function

I have no idea what to do. I wrote a function, compiled it with no errors but then when I run the code I got: ORA-0650: line 3, column 14: PLS-00103: Encountered the symbol "/" when expecting one of ...
Yoni Levy's user avatar
  • 1,572
1 vote
1 answer
7k views

PlSQL trigger error ORA-0000 ORA-06512:

create or replace TRIGGER "SUP" AFTER INSERT ON "EMP_REPORT" REFERENCING OLD AS "OLD" NEW AS "NEW" FOR EACH ROW DECLARE miclaim_supervisor_count number; employee_company_code VARCHAR2(10); ...
cHaNkX's user avatar
  • 35
2 votes
1 answer
9k views

run string as query in oracle

i got a little problem in Oracle. I try to create a sequence for generating IDs in a table that already has data in it. I try to use the following anonymous block. declare y varchar2(2000); BEGIN ...
mitereiter's user avatar
0 votes
1 answer
1k views

Searching data from a table using stored procedure in oracle by passing tablename as a parameter

This procedure is not working properly. create or replace procedure bank_search_sp ( p_tablename in varchar2, p_searchname in varchar2, p_bankcode out varchar2, p_bankname out varchar2, p_dist_code ...
Remya's user avatar
  • 21
2 votes
1 answer
18k views

ORA-12545: Connect failed because target host or object does not exist ORA-06512

I have the following error message when I try to establish a HTTP request connection: ORA-29273: HTTP request failed ORA-06512: at "SYS.UTL_HTTP", line 1029 ORA-12545: Connect failed because target ...
Shaban Mousa's user avatar
12 votes
3 answers
338k views

Oracle Error ORA-06512

Just can't figure out why it gives me ORA-06512 Error PROCEDURE PX(pNum INT,pIdM INT,pCv VARCHAR2,pSup FLOAT) AS vSOME_EX EXCEPTION; BEGIN IF ((pNum < 12) OR (pNum > 14)) THEN ...
Tililin Tin Tin's user avatar
-3 votes
3 answers
3k views

ORA-01438 Error

Can anyone help me with this exception? ORA-01438: value larger than specified precision allowed for this column ORA-06512: at "DM001.DFEE_AFT_IUD_JOURNAL", line 58 ORA-04088: error during ...
esastincy's user avatar
  • 1,627
0 votes
1 answer
633 views

pl sql exception message

I have following error message. 2011-08-08 14:27:09 [E]: xxx - ORA-06502: PL/SQL: numeric or value error: character string buffer too small ORA-06512: at "xxx", line 1671 ORA-06512: at "xxx", line ...
michael nesterenko's user avatar
3 votes
3 answers
10k views

How to use a stored procedure to read a file into an oracle DB

I'm trying to read a file into my oracle table as a blob. The file is *.gz data. I looked around the 'net and found some examples, and this is what I've come up with: create or replace PROCEDURE ...
Lazloman's user avatar
  • 1,319
3 votes
3 answers
10k views

Oracle error log file

I'm running following block in Oracle (what does it do is not so important) BEGIN SDO_RDF_INFERENCE.CREATE_RULES_INDEX( 'my_index', SDO_RDF_Models('my_model'), SDO_RDF_Rulebases('RDFS'))...
Yury Litvinov's user avatar
0 votes
2 answers
15k views

RAISE_APPLICATION_ERROR issue

I have developed a trigger that checks the validity of a date. It works fine because it prevents me from storing an invalid date, but I also get a weird error message and I can't figure out why. My ...
haunted85's user avatar
  • 1,631
1 vote
2 answers
4k views

Oracle: Inconsistent Datatype Issue

I am getting inconsistent datatype error message and I am not sure why. I need some guidance to figure this out. I am creating two types as: My universe table have following columns with column ...
Rachel's user avatar
  • 102k
1 vote
1 answer
867 views

Invalid privilege error?

Two related applications use a function in a package in several queries to return some data as CSV. The column being selected and concatenated is a CLOB field and can contain HTML, special characters, ...
Zesty's user avatar
  • 2,961
3 votes
3 answers
29k views

DBMS_Snapshot.refresh not working on 11g , materialized view error

I executed DBMS_Snapshot.refresh on Oracle 10g it worked fine, but when i execute the same on Oracle 11g it gives the following error DBMS_SNAPSHOT.refresh('Table1','F'); BEGIN DBMS_SNAPSHOT....
Nandish A's user avatar
  • 1,665
15 votes
6 answers
248k views

ORA-29283: invalid file operation ORA-06512: at "SYS.UTL_FILE", line 536

Below is the code i use to extract data from a table to a flat file. BEGIN DECLARE file_name VARCHAR2(50); file_handle utl_file.file_type; BEGIN file_name := 'table.txt'; ...
Vivek's user avatar
  • 4,552
1 vote
1 answer
656 views

11g XE: could not find the given license file

I'm trying to create a simple full-text index like this: exec ctx_ddl.create_preference('my_own_lexer', 'AUTO_LEXER'); create index myidx ON tbl(name) INDEXTYPE IS ctxsys.context PARAMETERS ('...
kost's user avatar
  • 81
0 votes
1 answer
5k views

error reading xml from the plsql procedure

I am trying to read a xml from plsql procedure using the xmlparser package, i am getting this error ORA-31020: The operation is not allowed, Reason: Not supported ORA-06512: at "XDB.DBMS_XMLPARSER", ...
Navin's user avatar
  • 421
0 votes
0 answers
416 views

Create Oracle Cursor

I create a cursor like this: SQL> CREATE OR REPLACE PROCEDURE Update_STUD_FinAid ( AIDY_CODE IN VARCHAR2 ) IS 2 CURSOR PublicationC IS 3 SELECT SGBSTDN_USER_ID from SGBSTDN 4 ...
mohammad's user avatar
4 votes
4 answers
5k views

CREATE Oracle Procedure

I am trying to create a procedure and it created without error. However when I try to run it then I will get following error. Please advise SQL> begin 2 Update_STUD_Fin ( '1011'); 3 end; ...
mohammad's user avatar
1 vote
3 answers
14k views

Problem with UTL_SMTP package (sending emails from ORACLE)

Everything's been working fine and haven't made any changes to our mail packages. But i just noticed that our unsent_emails table has been filling up, and when i tried to manually sent the unsent ...
Tolga E's user avatar
  • 12.4k
6 votes
4 answers
47k views

Oracle's dbms_metadata.get_ddl for object_type JOB

I'd like to create ddl scripts for most of my database objects. dbms_metadata.get_ddl works for most of the object types. For instance the following creates the ddl for a view: select dbms_metadata....
asalamon74's user avatar
  • 6,170
1 vote
3 answers
1k views

Call PL/SQL Web Toolkit procedures from Java

I need to call some PL/SQL procedures from my Java application. I can do it with JDBC. But the problem is that procedures are using the "PL/SQL Web Toolkit" and its packages (htp, owa _ util, owa _ ...
sinuhepop's user avatar
  • 20.2k
0 votes
3 answers
2k views

Can you please help me in Oracle for writing the table contents in to a file using UTL functions

While writing the SQL procedure for creating a CSV file from the contents of the table, I am stuck at the error below: ERROR at line 1: ORA-29283: invalid file operation ORA-06512: at "SYS.UTL_FILE", ...
user avatar
1 vote
2 answers
1k views

SYSDATE - 1 error on pl/sql function

I have an issue: when i issue this function below ti gives me the following error: select 'EXECUTE DBMS_LOGMNR.ADD_LOGFILE(LOGFILENAME =>'''||name||'''||,OPTIONS=>DBMS_LOGMNR.NEW);' from v\$...
user avatar
6 votes
6 answers
18k views

Validating XML files against schema in Oracle PL/SQL

I have a requirement to validate an incoming file against an XSD. Both will be on the server file system. I've looked at dbms_xmlschema, but have had issues getting it to work. Could it be easier to ...
steevc's user avatar
  • 662