Oracle insert NCLOB data into NVARCHAR2
up vote
-1
down vote
favorite
I am tyring to insert NCLOB data into NVARCHAR2.it is showing error ORA - 06512 in stored procedure.
How to fix this error?.
oracle insert nclob
add a comment |
up vote
-1
down vote
favorite
I am tyring to insert NCLOB data into NVARCHAR2.it is showing error ORA - 06512 in stored procedure.
How to fix this error?.
oracle insert nclob
Please show us your code and the real error. ORA-06512 is just "Error at line ..." which does not mean anything for us.
– Wernfried Domscheit
Nov 8 at 7:50
add a comment |
up vote
-1
down vote
favorite
up vote
-1
down vote
favorite
I am tyring to insert NCLOB data into NVARCHAR2.it is showing error ORA - 06512 in stored procedure.
How to fix this error?.
oracle insert nclob
I am tyring to insert NCLOB data into NVARCHAR2.it is showing error ORA - 06512 in stored procedure.
How to fix this error?.
oracle insert nclob
oracle insert nclob
asked Nov 8 at 2:23
Ram
1358
1358
Please show us your code and the real error. ORA-06512 is just "Error at line ..." which does not mean anything for us.
– Wernfried Domscheit
Nov 8 at 7:50
add a comment |
Please show us your code and the real error. ORA-06512 is just "Error at line ..." which does not mean anything for us.
– Wernfried Domscheit
Nov 8 at 7:50
Please show us your code and the real error. ORA-06512 is just "Error at line ..." which does not mean anything for us.
– Wernfried Domscheit
Nov 8 at 7:50
Please show us your code and the real error. ORA-06512 is just "Error at line ..." which does not mean anything for us.
– Wernfried Domscheit
Nov 8 at 7:50
add a comment |
1 Answer
1
active
oldest
votes
up vote
1
down vote
accepted
You didn't share much information so it is difficult to guess what you did and why Oracle complained about it. Though, would TO_NCHAR do any good?
TO_NCHAR (character) converts a character string, CHAR, VARCHAR2, CLOB, or NCLOB value to the national character set. The value returned is always NVARCHAR2
SQL> create table test (col_nclob nclob);
Table created.
SQL> create table test2 (col_nvarchar2 nvarchar2(20));
Table created.
SQL> insert into test values ('x');
1 row created.
SQL> insert into test2 (col_nvarchar2)
2 select to_nchar(t.col_nclob) from test t;
1 row created.
SQL>
it is working fine.
– Ram
Nov 8 at 10:29
I'm glad if it helped.
– Littlefoot
Nov 8 at 11:20
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
accepted
You didn't share much information so it is difficult to guess what you did and why Oracle complained about it. Though, would TO_NCHAR do any good?
TO_NCHAR (character) converts a character string, CHAR, VARCHAR2, CLOB, or NCLOB value to the national character set. The value returned is always NVARCHAR2
SQL> create table test (col_nclob nclob);
Table created.
SQL> create table test2 (col_nvarchar2 nvarchar2(20));
Table created.
SQL> insert into test values ('x');
1 row created.
SQL> insert into test2 (col_nvarchar2)
2 select to_nchar(t.col_nclob) from test t;
1 row created.
SQL>
it is working fine.
– Ram
Nov 8 at 10:29
I'm glad if it helped.
– Littlefoot
Nov 8 at 11:20
add a comment |
up vote
1
down vote
accepted
You didn't share much information so it is difficult to guess what you did and why Oracle complained about it. Though, would TO_NCHAR do any good?
TO_NCHAR (character) converts a character string, CHAR, VARCHAR2, CLOB, or NCLOB value to the national character set. The value returned is always NVARCHAR2
SQL> create table test (col_nclob nclob);
Table created.
SQL> create table test2 (col_nvarchar2 nvarchar2(20));
Table created.
SQL> insert into test values ('x');
1 row created.
SQL> insert into test2 (col_nvarchar2)
2 select to_nchar(t.col_nclob) from test t;
1 row created.
SQL>
it is working fine.
– Ram
Nov 8 at 10:29
I'm glad if it helped.
– Littlefoot
Nov 8 at 11:20
add a comment |
up vote
1
down vote
accepted
up vote
1
down vote
accepted
You didn't share much information so it is difficult to guess what you did and why Oracle complained about it. Though, would TO_NCHAR do any good?
TO_NCHAR (character) converts a character string, CHAR, VARCHAR2, CLOB, or NCLOB value to the national character set. The value returned is always NVARCHAR2
SQL> create table test (col_nclob nclob);
Table created.
SQL> create table test2 (col_nvarchar2 nvarchar2(20));
Table created.
SQL> insert into test values ('x');
1 row created.
SQL> insert into test2 (col_nvarchar2)
2 select to_nchar(t.col_nclob) from test t;
1 row created.
SQL>
You didn't share much information so it is difficult to guess what you did and why Oracle complained about it. Though, would TO_NCHAR do any good?
TO_NCHAR (character) converts a character string, CHAR, VARCHAR2, CLOB, or NCLOB value to the national character set. The value returned is always NVARCHAR2
SQL> create table test (col_nclob nclob);
Table created.
SQL> create table test2 (col_nvarchar2 nvarchar2(20));
Table created.
SQL> insert into test values ('x');
1 row created.
SQL> insert into test2 (col_nvarchar2)
2 select to_nchar(t.col_nclob) from test t;
1 row created.
SQL>
answered Nov 8 at 6:16
Littlefoot
18.5k51333
18.5k51333
it is working fine.
– Ram
Nov 8 at 10:29
I'm glad if it helped.
– Littlefoot
Nov 8 at 11:20
add a comment |
it is working fine.
– Ram
Nov 8 at 10:29
I'm glad if it helped.
– Littlefoot
Nov 8 at 11:20
it is working fine.
– Ram
Nov 8 at 10:29
it is working fine.
– Ram
Nov 8 at 10:29
I'm glad if it helped.
– Littlefoot
Nov 8 at 11:20
I'm glad if it helped.
– Littlefoot
Nov 8 at 11:20
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53200672%2foracle-insert-nclob-data-into-nvarchar2%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Please show us your code and the real error. ORA-06512 is just "Error at line ..." which does not mean anything for us.
– Wernfried Domscheit
Nov 8 at 7:50