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

What is an oracle recycle bin?

0 Answers  


What is oracle datasource?

0 Answers  


If a parameter is used in a query without being previously defined, what diff. exist betw. report 2.0 and 2.5 when the query is applied ?

0 Answers   Oracle,


How to omit columns with default values in insert statement in oracle?

0 Answers  


What do you understand by a database object? Can you list a few of them?

0 Answers  






How to insert multiple rows with one insert statement in oracle?

0 Answers  


what are views?

8 Answers   TCS,


Explain what are synonyms used for?

0 Answers  


how table is defined in plsql table? how can i select column from plsql table? can i use select * from plsql table type?

1 Answers  


How to fetch the row which has the max value for a column?

0 Answers  


How to export your connection information to a file?

0 Answers  


How to write an inner join with the where clause in oracle?

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)