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

how to retrieve 1st and last row of table without using group functions??

6 Answers  


what are bitmap indexes? How does they work?

0 Answers  


Does a Before form trigger fire when the parameter form is suppressed ?

1 Answers   Oracle,


How do we display rows from the table without duplicates?

0 Answers  


I have one table :EID,Depid,ename,sal I want to have max(sal) in each department.

5 Answers   Microsoft, Oracle, TCS,






How to run queries on external tables?

0 Answers  


What is a Data Dictionary ?

5 Answers  


Explain constraining triggers.

0 Answers  


can we insert any row to dual table if i got the permission from DBA

5 Answers   HCL, Tesco,


Can the default values be assigned to actual parameters?

1 Answers  


How to execute a stored program unit?

0 Answers  


How to use an explicit cursor without open statements?

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)