Solved

DBMS_LOB package not found

Posted on 2004-04-29
12
2,142 Views
Last Modified: 2007-12-19
I am uable to find DBMS_LOB package in my databse. The o/p for the query:

SELECT * FROM v$version

is as given below

Oracle8i Enterprise Edition Release 8.1.7.0.0 - Production
PL/SQL Release 8.1.7.0.0 - Production
CORE 8.1.7.0.0 Production
TNS for Solaris: Version 8.1.7.0.0 - Production
NLSRTL Version 3.4.1.0.0 - Production

How do i add/install the package. If there is some patchset then where can i download that from. I need it very urgently.

Thanx
0
Comment
Question by:vikramrathour
  • 5
  • 4
12 Comments
 
LVL 22

Expert Comment

by:Helena Marková
ID: 10956850
You can find script DBMSLOB.SQL in <<Oracle_Home>>\Rdbms80\Admin directory.
0
 
LVL 8

Expert Comment

by:annamalai77
ID: 10957253
hi

well the v$version will give only the DB version.

if u want the dbms_lob package or for that matter all the packages list then check in the all_objects table where object_type in ('PACKAGES' , 'PACKAGE_BODY');

that will list all the packages available in ur DB

regards
annamalai
0
 

Author Comment

by:vikramrathour
ID: 10957303
Henka,

The SQL file contains only specificatons no body...where to get the body of the package
0
 
LVL 22

Expert Comment

by:Helena Marková
ID: 10957330
There are also functions and procedures there. This package must be created.
...
Rem    NOTES
Rem      The procedural option is needed to use this package. This package
Rem      must be created under SYS (connect internal). Operations provided
Rem      by this package are performed under the current calling user, not
Rem      under the package owner SYS.
...
0
 

Author Comment

by:vikramrathour
ID: 10957420
But when i use the DBMS_LOB.WRITE method it give me error ORA-4068 and 4067 saying that package body does not exist.
Given below is my code

CREATE OR REPLACE PROCEDURE temp_test1 IS
  lobloc CLOB;
  buffer VARCHAR2(32000);
  amount NUMBER := 20;
  offset NUMBER := 1;
BEGIN
  --Initialize buffer with data to be inserted      
  buffer := 'abcdefghijklmnopqrstuvwxyz';
  amount := length(buffer);
  dbms_output.put_line(buffer);
  dbms_output.put_line(to_char(amount));
  BEGIN
    SELECT resultset
    INTO   lobloc -- get LOB handle        
    FROM   temp_resultset
    FOR    UPDATE;
    DBMS_LOB.WRITE(lobloc, amount, 1, buffer);
  EXCEPTION
    WHEN NO_DATA_FOUND THEN
         dbms_output.put_line(SQLERRM);
  END;
  COMMIT;
END temp_test1;
0
Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

 
LVL 22

Expert Comment

by:Helena Marková
ID: 10957523
I think that DBMS_LOB package body is there, too.  Maybe there are problems with privilegies.
0
 

Author Comment

by:vikramrathour
ID: 10957562
Henka
can you please mail me a copy of dbmslob.sql at vikram.rathour@fwltech.co.in so that i can check if i have the right file.
Meanwhile i will check with my DBA regarding the privilegies.

Thanx
0
 
LVL 22

Expert Comment

by:Helena Marková
ID: 10957647
OK.
0
 

Author Comment

by:vikramrathour
ID: 10957721
Henka,

Thanx a lot..i received the file. The one that you have sent and the one that i have are exactly same. My DBA has logged in with SYS and created the package. when i do the DESC DBMS_LOB i see all the details.
When i run the query
select * from all_objects where object_name like 'DBMS_LOB%';
I see package and synonym but no package_body.
What rights/privilegies are required. How to grant them...
I guess i am gonna need a detail help on this from you.

Thanx
0
 
LVL 22

Accepted Solution

by:
Helena Marková earned 50 total points
ID: 10958351
I am sorry, I am not DBA. But when running
 select * from all_objects where object_name like 'DBMS_OUTPUT%';
the result is the same.
I think that there are some problems in your procedure temp_test1.
Here is very useful site, you can find there also examples:
http://asktom.oracle.com/pls/ask/f?p=4950:1:
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now