i can't insert column value greater than 4000 characters at
one instance even i am using CLOB datatype . how to insert
efficiently more than 4000 characters ? And please let me
know how to impose inline and out-of line constraints on
oracle column???

Thanks in Advance...
Prakash

Answers were Sorted based on User's Feedback



i can't insert column value greater than 4000 characters at one instance even i am using CLOB ..

Answer / prakashdasari

we can solve this problem in two ways as of my knowledge.

1)Write that total information (>4000) in a file and upload this file to CLOB data type.

2)Another way is we need to split the string to <=4000 characters substrings and each one need to be append by using to_clob() function available in oracle.

for ex. to_clob('4000characters sub string') | to_clob('4000characters sub string') | to_clob('4000characters sub string') |....... so on.


i used second one for my requirement because i dont want to disturb my well developed product code.Just i added as a extra function.

Than Q...

Is This Answer Correct ?    5 Yes 0 No

i can't insert column value greater than 4000 characters at one instance even i am using CLOB ..

Answer / sushant

I also did same guyzzz !!!

Is This Answer Correct ?    3 Yes 0 No

Post New Answer

More Oracle General Interview Questions

Name the various constraints used in oracle?

0 Answers  


What is Library Cache in Oracle?

0 Answers   MCN Solutions,


What are the uses of Database Trigger ?

0 Answers  


What is a proxy object?

0 Answers  


What is Public Database Link ?

1 Answers  






Explain what are the different type of segments?

0 Answers  


What are privileges and grants?

0 Answers  


What operating systems are supported by oracle database 10g xe?

0 Answers  


what is dynamic SGA and static SGA

0 Answers   Oracle,


Is it possible to enter only time value into a column of a table in sql?

2 Answers  


> CREATE OR REPLACE FUNCTION FACTORIAL_1(factstr varchar2 ) 2 RETURN NUMBER AS 3 new_str VARCHAR2(4000) := factstr||'*' ; 4 fact number := 1 ; 5 BEGIN 6 7 WHILE new_str IS NOT NULL 8 LOOP 9 fact := fact * TO_NUMBER(SUBSTR(new_str,1,INSTR(new_str,'*')-1)); 10 new_str := substr( new_str,INSTR(new_str,'*')+1); 11 END LOOP; 12 13 RETURN fact; 14 15 END; explanation Above program?

0 Answers  


How to display employee records who gets more salary than the average salary in the department?

0 Answers  


Categories
  • Oracle General Interview Questions Oracle General (1789)
  • Oracle DBA (Database Administration) Interview Questions Oracle DBA (Database Administration) (261)
  • Oracle Call Interface (OCI) Interview Questions Oracle Call Interface (OCI) (10)
  • Oracle Architecture Interview Questions Oracle Architecture (90)
  • Oracle Security Interview Questions Oracle Security (38)
  • Oracle Forms Reports Interview Questions Oracle Forms Reports (510)
  • Oracle Data Integrator (ODI) Interview Questions Oracle Data Integrator (ODI) (120)
  • Oracle ETL Interview Questions Oracle ETL (15)
  • Oracle RAC Interview Questions Oracle RAC (93)
  • Oracle D2K Interview Questions Oracle D2K (72)
  • Oracle AllOther Interview Questions Oracle AllOther (241)