How to check Created directories in Oracle 10g
Actuall i created a directory
CREATE OR REPLACE DIRECTORY DIR_TEXTFILES AS 'D:\TEXTFILES';
but i can such directories in d:\ of my laptop
as a beginner to oracle i dont know these thing....Pls Experts help me...
No brother...Actually am learning how to insert a textfile into a Column of type CLOB
for that i created a table
and a procedure like this
SQL> desc sunil_textfiles;
Name Null? Type
ID NOT NULL NUMBER(38)
DATA_TEXTFILES CLOB
CREATE OR REPLACE DIRECTORY DIR_TEXTFILES AS 'D:\TEXTFILES';
CREATE OR REPLACE PROCEDURE
PR_TEXTFILES(PR_ID IN NUMBER,PR_FILENAME IN VARCHAR2)
AS
L_CLOB CLOB;
L_BFILE BFILE;
BEGIN
INSERT INTO SUNIL_TEXTFILES VALUES (PR_ID,EMPTY_CLOB())
RETURNING DATA_TEXTFILES INTO L_CLOB;
L_BFILE := BFILENAME('DIR_TEXTFILES',PR_FILENAME);
DBMS_LOB.FILEOPEN( L_BFILE );
DBMS_LOB.LOADFROMFILE(L_CLOB,L_BFILE,DBMS_LOB.GETLENGTH(L_BFILE));
DBMS_LOB.FILECLOSE( L_BFILE );
END;
EXEC PR_TEXTFILES(1,'D:\TEXTFILES\TEXTLOADING.TXT');
but i dont know where to put this textloading.txt file...which i need to insert on that clob column
help me..
Similar Messages
-
How to check Locking sessions in oracle 10g
Hi,
I have tried to get locking sessions. i got the blocking session by using v$lock view.
Pls help how to get locking sessions.
Regards,
VenkatHi Venkat
Or just run this independent of database version
select a.sid blocker, 'is blocking the session ', b.sid blockee from v$lock a, v$lock b
where a.block =1 and b.request > 0 and a.id1=b.id1 and a.id2=b.id2;You can extend this query to find the username and machine (plus all other details) from v$session using the a.sid and b.sid from above
To find the blocking session_
SELECT S.SID, S.SQL_ID, S.USERNAME, S.MACHINE from
V$SESSION S WHERE S.SID = (SELECT blocker from
(select a.sid blocker, 'is blocking the session ', b.sid blockee from v$lock a, v$lock b
where a.block =1 and b.request > 0 and a.id1=b.id1 and a.id2=b.id2
*_To find the blocked session_*SELECT S.SID, S.SQL_ID, S.USERNAME, S.MACHINE from
V$SESSION S WHERE S.SID = (SELECT blockee from
(select a.sid blocker, 'is blocking the session ', b.sid blockee from v$lock a, v$lock b
where a.block =1 and b.request > 0 and a.id1=b.id1 and a.id2=b.id2
Edited : Added blocker and blockee code -
How to check image size in oracle 9i & 10g database
hi,
i have inserted an Image into a table in oracle database & I want to View the Query How to check image size in oracle 9i & 10g database
thanks
Edited by: user8920919 on May 30, 2010 1:43 AMuser8920919 wrote:
hi,
How to check image size in oracle 9i & 10g database
thanksWhat do you mean with "image size"? -
How to genrate and check wait statistics in oracle 10g
Dear all,
how to genrate and check WAIT STATISTICS in oracle 10g on RHEL4.
Regards,
AliOracle Kernel keeps track of these statistics. Query v$waitstat for overall system level wait statistics or v$session_wait for individual session wait statistics.
-
How to create dblink between oracle 10G and mysql
I want to create dblink between oracle 10G and mysql
I create it in ECC6.0 using DBCO transaction tcode,which database type can choose?Microsoft sql server?Because there have no mysql item.
I choosed MSS so that I can test it, but it failed,there is an error that 'ORA-12569:TNS:packet checksun failure'.
I configured the oracle tnsnames.ora file like this:
CW.WORLD =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS =
(COMMUNITY = SAP,WORLD)
(PROTOCOL = TCP)
(HOST = XX.XX.XX.XX)
(PORT = XXXX)
(CONNECT_DATA =
(SID = XXX )
(HS = ok )
When I tnsping CW,it will fail,like this " TNS-12569:TNS:packet checksum failure"
How can I do.I want to know if this possible?
-
How can I change SGA_TARGET IN Oracle 10G.
Dear Experts,
Please tell me
How can I change SGA_MAX_SIZE IN Oracle 10G.
How can I change SGA_TARGET IN Oracle 10G.
How Can i recreate SPFILE IN Oracle 10G.Dear Experts,
Please tell me
How can I change SGA_MAX_SIZE IN Oracle 10G.
How can I change SGA_TARGET IN Oracle 10G.
How Can i recreate SPFILE IN Oracle 10G.SGA_MAX_SIZE and SGA_TARGET are all to be changed by alter system statement.
The difference is, you can't make change to SGA_MAX_SIZE effective while instance is running. Need restart database to make change effective.
Your can change SGA_TARGET while instance is running, as long as it's smaller than SGA_MAX_SIZE
to recreate a spfile,
you can shutdown your database,
find a copy of valid pfile,
startup pfile=/directory/yourpfile
and
create spfile from pfile; -
Log Directories in Oracle 10g RAC environment
Hi all,
Would you please tell me in which directories, the following log files will be created, in a Oracle 10g RAC enviroment.
evmd.log
crsd.log
ocssd.log
Best Regards,
NarayanU should try login as root and then type:
find / -name nameoffileyouaresearchingfor
This command will show You location of those files. -
How to run a report from oracle 10g form in .csv format
dear all,
how to run a report from oracle 10g form in .csv format? i've already run in pdf & excel format.
i'm using
SET_REPORT_OBJECT_PROPERTY (ro_report_id, report_desformat, 'PDF'); --for pdf
SET_REPORT_OBJECT_PROPERTY (ro_report_id, report_desformat, 'SPREADSHEET'); ---for excel
Please Help..i have already tried.
but the report show in htm or html format. that file will not save into csv. please help. -
Creating Partitions in Oracle 10G Express Edition
Can I create partitions in oracle 10g express edition?
See yourself :
http://download.oracle.com/docs/cd/B25329_01/doc/license.102/b25456/toc.htm#BABJIJCJ -
How to install Procedural Option in Oracle 10g Database express edition
When i try execute exec send_mail shows error ORA-00900: invalid SQL statement.
Error code shows "This error can occur if the Procedural Option is not installed "
How to install Procedural Option in Oracle 10g express edition
I'm using Oracle 10g Database express edition. Let me know how to run a procedure.I'm not sure of the meaning of ORA-00900 for Oracle XE but I think that PL/SQL is already installed by default according to the XE features list.
See the Oracle® Database Express Edition 2 Day Developer Guide about procedure call. -
How to find encrypted columns in oracle 10g database
Hi,
How to find encrypted columns in oracle 10g database? We can see using view dba_encrypted_columns or all_encrypted_columns .
my question is apart from this is there anyother views or tables?
Thanks..user602872 wrote:
Hi,
How to find encrypted columns in oracle 10g database? We can see using view dba_encrypted_columns or all_encrypted_columns .
my question is apart from this is there anyother views or tables?Hmm not which I could find,
SQL> select * from dict where lower(table_name) like '%encrypted%';
TABLE_NAME
COMMENTS
DBA_ENCRYPTED_COLUMNS
Encryption information on columns in the database
ALL_ENCRYPTED_COLUMNS
Encryption information on all accessible columns
USER_ENCRYPTED_COLUMNS
Encryption information on columns of tables owned by the user
SQL>HTH
Aman.... -
How can I change SGA_MAX_SIZE IN oRACLE 10G.
Dear Experts,
Please tell me
How can I change SGA_MAX_SIZE IN Oracle 10G.
How can I change SGA_TARGET IN Oracle 10G.
How Can i recreate SPFILE.another copy of dup How can I change SGA_TARGET IN Oracle 10G.
-
How to create database in oracle 10g
hello
i want to create new database
i have already one on my pc. I use oracle 10g express
is there some gui to reach this task ?Handle: 784633
Status Level: Newbie
Registered: Jul 27, 2010
Total Posts: 154
Total Questions: 49 (47 unresolved)
no no ... i need another database - another instanceSince you have all the answers, you are free to proceed as you deem appropriate.
http://download.oracle.com/docs/cd/E11882_01/server.112/e16508/toc.htm
Ready, Fire, AIM! -
How to create spfile in oracle 10g
hi everyone,
i had this problem while i was creating a new database in oracle 10g.when running the database script, it gives an error about invalid option for create temporary tablespace. is it necessary to have an spfile created in 10g. when the script was not working,we tried to create spfile which gives error tht it does not match the parameter db_name. its taking the default db_name=orcl itself..tis not taking our new db name. please help me if u get ne solution reagrding this in steps.
thanz,
lalySee Re: about spfile creating in oracle 10g while creating a new database
-
Create tablespace in Oracle 10g Express
Hi,
I've been playing around over the last few days with Oracle 10g Express and I need to create my own tablespace and therefore create user associated with my custom table space.
I tried with the command create tablespace, but I am not successful with configuring the parameters such as the datafile location and such. I did go through the Oracle Concepts Guide which was very helpful, but I must be missing something.
Also assuming that my db scheme will be part of my application and therefore released to my client as script so they can re-create my database how would the table space integration work on their end.
I would I have to place my first line of the script to create the table space and ask them for database file location?
Any advice will be appreciated.
Thank you in advance.user12359577 wrote:
The reason why I think I should create my own tablespace is because I am creating a database scheme and thus I think it is appropriate to place my db scheme in its own tablespace instead of simply using the Users tablespace default.
This is my command:
create tablespace MYTBLSPACE;
Error:
Error starting at line 1 in command:
create tablespace MYTBLSPACE
Error at Command Line:1 Column:32
Error report:
SQL Error: ORA-02199: missing DATAFILE/TEMPFILE clause
02199. 00000 - "missing DATAFILE/TEMPFILE clause"
*Cause: A CREATE TABLESPACE statement has no DATAFILE/TEMPFILE clause.
*Action: Specify a DATAFILE/TEMPFILE clause.
I am also not sure how to specify the datafile.
Thank you.How about checking with the fine SQL Reference manual for the syntax of the CREATE TABLESPACE command?
Learning where to look things up in the documentation is time well spent investing in your career. To that end, you should drop everything else you are doing and do the following:
Go to tahiti.oracle.com. Drill down to your product and version.
Spend a few minutes just getting familiar with what is available here. Take special note of the "books" and "search" tabs. Under the "books" tab you will find the complete documentation library.
Spend a few minutes just getting familiar with what kind of documentation is available there by simply browsing the titles under the "Books" tab.
Open the Reference Manual and spend a few minutes looking through the table of contents to get familiar with what kind of information is available there.
Do the same with the SQL Reference Manual.
Do the same with the Utilities manual.
You don't have to read the above in depth. They are reference manuals. Just get familiar with what is there to be referenced. Ninety percent of the questions asked on this forum can be answered in less than 5 minutes by simply searching one of the above manuals.
Then set yourself a plan to dig deeper.
- Read a chapter a day from the Concepts Manual.
- Take a look in your alert log. One of the first things listed at startup is the initialization parms with non-default values. Read up on each one of them in the Reference Manual.
- Take a look at your listener.ora, tnsnames.ora, and sqlnet.ora files. Go to the Network Administrators manual and read up on everything you see in those files.
- When you have finished reading the Concepts Manual, do it again.
Give a man a fish and he eats for a day. Teach a man to fish and he eats for a lifetime.
Edited by: EdStevens on Mar 3, 2010 10:13 AM
Edited by: EdStevens on Mar 3, 2010 10:15 AM
Maybe you are looking for
-
You can move the rental between devices as many times as you wish during the rental period. However, the movie can only be played on one device at a time. If you rent a movie on an iPhone, iPad, iPod touch, or Apple TV, it is not transferable to any
-
ORA-31603:While Extracting SQL of a table I am getting this error.
Hi, I am getting below error whenever I try to get the SQL for any table. I tried executing DBMS_METADATA() also but the same error is coming. Please let me know what needs to be done IF I want to extract the DDL for any object. ORA-31603: object "EM
-
Mavericks, change resolution of headless Mac Mini
After updating to Mavericks I have have problems at changing the resolution of my headless Mac mini. After changing the display resolution my VNC/Screen Sharing sessions kept blacking out and I couldn't see anything. Any solution? Thanks, Andrea
-
I cannot seem to get the tools button in firefox, where can I find it or what do I need to do. I am trying to set a couple of home pages and the help section says to select the tool option and it is not there.
-
Autosum doesn't work the next day
Hi, i've got a strange problem: Autosums in a PDF work right after creating the PDF, the next day i open it and autosum doesn't work anymore. Step by step: 0. System: OS X 10.8.5 1. The basic form is created in ID CS6 (8.0.2), exported as interactive