SQL & PL/SQL :: Existing Database Conversion From Bytes To Char?

Aug 11, 2011

What is the best way to convert an existing database table set with nls_legnth_semantic=BYTE to CHAR?

View 2 Replies


ADVERTISEMENT

SQL & PL/SQL :: Char To Date Conversion?

Feb 7, 2013

converting a string to date, my string looks like '01022013' '04022013', I tried to_date('01022013', 'dd-mm-yyyy') but couldn't work.

View 6 Replies View Related

ORA-12713 - Character Data Loss In NCHAR / CHAR Conversion?

Apr 4, 2011

got this Errormessage "ORA-12713: Character data loss in NCHAR/CHAR conversion" during a rman backupjob! How can I fixed it?

View 3 Replies View Related

SQL & PL/SQL :: ORA-22835 Buffer Too Small For CLOB To CHAR Or BLOB To RAW Conversion?

Sep 24, 2008

Recently I came across this issue, which gives me an error as following.

ERROR:
ORA-22835: Buffer too small for CLOB to CHAR or BLOB to RAW conversion (actual: 4907, maximum: 4000)

Now I am running a very simple query against one of the View in our Database.
Query is:

Select Prj_Num,
PM_Comments
From ProjectDetails
Where Rel = ‘2008 10’

What I have discovered so far is one of the field in this view name “PM_Comments” has more than 4000 bytes of information in it, Which is not supported by tools I have available on my computer. I have Oracle SQL Plus, SQL plus Worksheet, Access and Excel installed on my machine. DBA related to this database are stating that the field is working fine and query is executing without error since they are using TOAD for SQL, which does have capabilities to read more than 4000 bytes.

What I have figured out so far is “PM_Comments” is a LOB and SQL plus is having trouble reading this information more than 4000 bytes in one field of information.Because of this diagnosis, I have tried using following queries but it did not useful either.

Select Prj_Num,
Substr (PM_Comments, 1, 4000)
From ProjectDetails
Where Rel = ‘2008 10’

Select Prj_Num,
DBMS_LOB.Substr(PM_Comments, 4000, 1)
From ProjectDetails
Where Rel = ‘2008 10’

But both of the above mentioned queries did not work either. and I get the same ORA-22835 Error.I do not need all of the information in “PM_Comments” field, I only need about first 1000 characters of it.

View 10 Replies View Related

Precompilers, OCI & OCCI :: Error Implicit Conversion Of String Literal To (char) Is Deprecated?

Jan 30, 2011

i write a select statement in proc that contains 44 columns.

when i precompile it. it is showing the error: implicit conversion of string literal to "char *" is deprecated.when i compile the same select with 40 columns it is not showing any error.

but for more than 40 columns (41-44) it is showing the above error.

View 1 Replies View Related

SQL & PL/SQL :: Search Swedish / Danish / German Char Using English Char

Oct 27, 2010

I want to pass english character as a parameter and search a string that having swedish character, this needs to be done for all the swedish characters.

test _t table having the below 3 values

päiväp
metervara
flerfärgad

1. If user searches based on english char like below then they should get all the 3 values bcz fist & last have swedish ä and second one having english a.

Query : select name from test_t where name like '%a%'

Regsult:
päiväp
metervara
fräg

2. If user searches based on swedish char like below then they should get only 2 values bcz fist & last have swedish ä and second one having english a.

select name from test_t where name like '%ä%'

päiväp
fräg

Is any in-built function available, for Text alternative string search. If not how to search the string based on the query.

View 6 Replies View Related

Selection Criteria Char Between Char

Jul 22, 2009

I have a table with column val1 having data's starting with 0920 and 4 digit char values.

so we have the query to find

select * from table
where val1 between '0920' and 'ZZZZ'

will it work fine?

View 1 Replies View Related

RMAN :: Clone 2 Node RAC Database To Single Instance Non-RAC Database Using Existing Backup

Jul 25, 2012

I tried to clone a 2 node rac database to single instance non rac database using existing backup. I have not used connectivity to target or catalog. rman duplicate finished with below messages:

rman auxiliary sys/******@dbracdup
RMAN> duplicate database to dbrac spfile backup location '/oracle/backup';
...
...
Finished recover at 25-JUL-12
Segmentation fault

And the database was in mount stage, and when i tried to open database it failed with below error:

SQL> alter database open;
alter database open
*
ERROR at line 1:
ORA-19838: Cannot use this control file to open database .

View 4 Replies View Related

Existing Database (11.2.0.3) Can Be Upgraded As Pluggable Database And Plug It In CDB?

Sep 11, 2013

I would like to know about oracle 12c. In 12c, when i read documents,i understood that one container DB(CDB) can contain upto 253 pluggable DB and this pluggable DB(PDB) is similar to our traditional database(pre 12c).

1) whether my existing database (11.2.0.3) can be upgraded as pluggable DB and plugged it in CDB?

2)i read that we can move from local data center model to cloud in this version. Is that mean that once PDB is ready, whether we can plug it in CDB using private cloud or public also possible?

3)If public cloud is possible, are both CDB and PDB accessed through cloud client only?If so, whether our user data that is available under PDB also moved to external place?

View 1 Replies View Related

SQL & PL/SQL :: Oracle Database To Mysql Conversion

Dec 21, 2012

Is it possible to convert oracle data base to MySql?

View 1 Replies View Related

Specify Existing Template For Database Creation

Nov 7, 2013

During the database installation the two nodes after all the prerequisite check and copy of files i am getting the below error message 

"Template4 General_Purpose.dbc does not exist. Please specify an existing template for database creation". 

How can i overcome this error ? I am installing Oracle 11g R2 11.2.0 On Oracle Enterprise Linux (5.1.19) running on [Oracle Virtual Box 4.1.12 ]. Also what are the steps to uninstall the previously installed db_home1 which failed due to this error. 

View 1 Replies View Related

Possible To Compress Existing Table In Oracle Database

Nov 29, 2012

it's possible to compress the existing table in oracle database directly.

View 1 Replies View Related

SQL & PL/SQL :: Existing Role Claimed To Be Not Existing?

Dec 19, 2011

I'm am getting an error that says that a role doesn't exist when I can cleary see it in DBA_ROLES. I can successfully grant other roles in this session. I am using Oracle 11.1 on RAC.

GRANT "CONNECT" TO BAKERD
Error at line 1
ORA-01919: role 'CONNECT' does not exist
select * from dba_roles where role = 'CONNECT'

[code]....

View 5 Replies View Related

Oracle 11g R2 Installed With Zero Bytes On IBM AIX

Dec 27, 2012

I have installed 11g r2 using silent mode. but all the executable like lsnrctl, expdp, sqlldr,impdp etc.... installed with 0 (zero) bytes.

couldn't trace out what the problem is,

View 1 Replies View Related

Unable To Allocate Shared Bytes Of Memory

Sep 21, 2010

How to overcome from the below error.

Database Error-ORA-04031:unable to allocate 76320 bytes of shared memory("shared pool","SELECT/*+Norewrite*/DIST...","sql area","kkmevw:view_txt")

Here I attached that error.

Attached File(s)

Disco_Error_1.jpg ( 49.03K )
Number of downloads: 3

View 2 Replies View Related

Buffer Overflow Limit Of 2000 Bytes

Jul 14, 2011

I got a below error while running a procedure!

ORA-20000: ORU-10027: buffer overflow, limit of 2000 bytes

at that time i am using below parameters in that script:

set serveroutput on size 1000000

DBMS_OUTPUT.ENABLE(1000000);

But still getting same error.. how can i resolve this issue..

View 7 Replies View Related

Performance Tuning :: Difference Between Cost And Bytes

Aug 4, 2010

I am working on Tuning a Materialized view. I was getting an error saying ORA-12008: error in materialized view refresh path

ORA-12801: error signaled in parallel query server P002, instance hrms-stg-db01:HRSTG1 (1)
ORA-01652: unable to extend temp segment by 16 in tablespace TEMP1.

so i increased the temp size. I am trying out various hints to get it rectified. But i am not sure if i should go for less cost or less bytes.

View 1 Replies View Related

SQL & PL/SQL :: Unable To Allocate 104 Bytes Of Shared Memory

Mar 9, 2012

When i try to extract create statement of table i get below error message.

SQL>
SQL> set heading off
SQL> set pagesize 0
SQL> set long 1000000
SQL> set feedback off
SQL> select
2 dbms_metadata.get_ddl( 'TABLE','CATALOG_TBL','JACK')
3 from
4 dual
5 /

ERROR:

ORA-04031: unable to allocate 104 bytes of shared memory ("shared pool",

"SELECT
/*+rule*/ SYS_XMLGEN(...","SQLA^fc8f5280","qecsub : qkxrPXformQbc")
ORA-06512: at "SYS.DBMS_METADATA", line 2625
ORA-06512: at "SYS.DBMS_METADATA", line 2668
ORA-06512: at "SYS.DBMS_METADATA", line 2983
ORA-06512: at "SYS.DBMS_METADATA", line 3897
ORA-06512: at "SYS.DBMS_METADATA", line 5678
ORA-06512: at line 1

Note:
----
I am executing this command from another user 'DEMO' which has got DBA privilege.

how to fix this error and extract the create table statement.

View 5 Replies View Related

Unable To Allocate 264 Bytes Of Shared Memory

Jan 13, 2013

I'm getting the following error when i shutdown or startup the db,

SQL> shutdown immediate;

ORA-00604: error occurred at recursive SQL level 1
ORA-04031: unable to allocate 264 bytes of shared memory ("shared pool","unknown object","PCUR^18465427","kglob")

View 1 Replies View Related

PL/SQL :: How To Store More Than 32767 Bytes In A CLOB Variable

May 7, 2013

I am trying to build an XML document in a CLOB PLSQL variable. We are using Oracle 11gr2 database.

But when I am reaching more than 32767 bytes my code is failing.

Is there anyway we can store more than 32767 bytes of data in a PLSQL variable of type CLOB.

I am capturing the below error message

(ORA-06512: at "SCMSA_HIST.SCMSA_POC_HANDSET_MOBILITY_PKG", line 1480
AND LENGTH OF xmlfile -> 33078
)

I am adding my code also here for further clarification

PROCEDURE GET_HANDSET_DATA_PRC (p_ntlogin_id IN VARCHAR2,
p_handset_data OUT NOCOPY CLOB)
IS
/******************************************************************************
NAME: GET_HANDSET_DATA_PRC
PURPOSE:
Date Ver By Description
---------- --- --- -----------

******************************************************************************/
CURSOR c_region_data
IS
SELECT NVL2 (T.ntlogin, T.ntlogin, pos.ntlogin) AS ntlogin,
NVL2 (T.first_name, T.first_name, pos.first_name)
AS first_name,

[Code]....

View 8 Replies View Related

ORA-04031 - Unable To Allocate 32 Bytes Of Shared Memory

Jun 19, 2013

I am seeing the following error message in alert.log (ORA-04031: unable to allocate 32 bytes of shared memory ) and my database goes into hung state and wont let any new sessions to connect and old sessions just hung with no response. i have to kill the instance to come out of this problem.

I am running 11.2.0.3 on AIX and have memory_target=35GB. I would like to know what approach to take to find out the root cause of this? btw - does AWR show if memory was under pressure and what SQL's were consuming more memory just before the problem surface?

View 2 Replies View Related

Server Administration :: Difference Between Bytes And User_bytes In Dba_data_files

Nov 27, 2012

two columns of dba_data_files (Bytes & user_bytes).

select bytes/1024/1024, maxbytes/1024/1024, user_bytes/1024/1024 from dba_data_files;
1532767.9843754.9375
249032767.984375489.9375
39032767.98437589.9375
453032767.984375529.9375
5204832767.9843752047.9375
6204832767.9843752047.9375
7204802047.9375

View 1 Replies View Related

SQL & PL/SQL :: ORA-04031 / Unable To Allocate Bytes Of Shared Memory

Jun 17, 2011

If I am log in through crystal reports , I am getting the following error.

ORA-04031 unable to allocate bytes of shared memory("","","","").

If I log in through TOAD from back end I am not getting any error.

View 14 Replies View Related

ORA-04030 / Out Of Process Memory When Trying To Allocate 16408 Bytes

Jul 29, 2011

I have a stored procedure which uses BULK COLLECT and the table has 16 nested tables within it. When I limit the number of rows processed it works fine, if I let it run with all the 10,000 rows I get this:

ERROR: ORA-04030: out of process memory when trying to allocate 16408 bytes
(koh-kghu call ,pmuccst: adt/record)

sga_max_size - 12884901888
sga_target - 10737418240
pga_aggregate_target - 838860800
shared_pool_size - 2147483648

I believe the machine has 32GB memory, but there is another Oracle instance running on it.

View 1 Replies View Related

ORA-04031 - Unable To Allocate 104 Bytes Of Shared Memory

Aug 30, 2012

Let me put my current Environment Info.

Single Laptop Machine of 16GB RAM.
Assigned 13GB to VM.

I have installed Oracle Database 11g. 11.2.00. When I try to access my application many times I received below error

• Error:
“”Caused by: java.sql.SQLException: Could not retrieve datasource via JNDI url 'jdbc/oimJMSStoreDS' weblogic.jdbc.extensions.ConnectionDeadSQLExceptio n: weblogic.common.resourcepool.ResourceDeadException : Could not create pool connection. The DBMS driver exception was: ORA-00604: error occurred at recursive SQL level 3
ORA-04031: unable to allocate 352 bytes of shared memory ("shared pool","select /*+ rule */ bucket_cn...","SQLA^337fc737","qertbs:qertbIAlloca te")
[code]......

Even when above error occur I have 7GB free JVM so JVM is not an Issue.

•I have updated Max Capacity of oimOperationsDB =100,oimOperdationDB, oimJMSStoreDS=80,SOADATAStore =80. But still I have error

• ERROR::
• ““Aug 30, 2012 3:24:10 PM EST> <Warning> <oracle.integration.platform.blocks.event.saq> <SOA-31013> <Error handling message (rolling back).
java.sql.SQLException: ORA-04031: unable to allocate 352 bytes of shared memory ("shared pool","select /*+ rule */ bucket_cn...","SQLA^337fc737","qertbs:qertbIAlloca te")
ORA-06512: at "SYS.DBMS_AQ", line 335
ORA-06512: at "DEV_SOAINFRA.EDN_DEQUEUE_OAOO_DELIVERY", line 14”
[code]......

I have modified Shared_pool_size,large_pool_size. Content of my modified Pfile is as below.

o orcl.__db_cache_size=822083584
o orcl.__java_pool_size=2777216
o orcl.__large_pool_size=56777216
o orcl.__oracle_base='/home/oracle/app/oracle'#ORACLE_BASE set from environment
o orcl.__pga_aggregate_target=805306368
o orcl.__sga_target=1174405120
o orcl.__shared_io_pool_size=0
o orcl.__shared_pool_size=601989888
o orcl.__streams_pool_size=0

What’s value of parameter I need to set for datastore, pfile ? (I have 13GB of memory).

View 8 Replies View Related

ORA-04031 Unable To Allocate 16 Bytes Of Shared Memory

May 17, 2013

Windows 2003 Server Enterprise Edition, Service Pack 2. 3.5GB RAM.Two Oracle Databases running on this server, one not heavily used. On the database i am concerned with it is 10.2.0.3.0.

I have just started to look at this database and am seeing various things in the alert log and have had user error messages as well.Initially when i started looking at this server it was running with quite a small SGA (600MB) and the memory_target_advice was saying to take it to 1000MB.(PGA is around 200MB)

In January, before i looked at it, it started to throw:

ORA-04031 unable to allocate 16 bytes of shared memory ("shared pool","........", "sql area", "tmp") These would occur regularly and mostly during nightly processes, it seems, and thus not bubbling up to users.Having switched the SGA_MAX_SIZE to 1GB a new set of errors starts to appear in the alert log:

ORA-27301: ..... Not enough storage is available to process this command
ORA-27302: ..... ssthrddcr

At the same time the ORA-04031 errors start to bubble through to the users. Before i could return to the scene of the crime someone else set the SGA back to 600MB and the error messages stopped. However the ORA-04031 message start to reappear in the alert log. My questions are many and, mostly, from a lack of knowledge ;) In particular:

1. Why would increasing the SGA lead to a different memory error? I would assume this would have something to do with the amount of memory a 32bit OS will allow a single process to address but the PGA+SGA is only 1200MB.

2. How does a ORA-273xx error end up with a ORA-04031 being shown to the users? I would look at the listener log but its over 2GB!!!

View 7 Replies View Related

11G R2 On Win 2008 - Unable To Allocate 32 Bytes Of Shared Memory

Jun 8, 2012

on 11G R2 on Win 2008,

We had the following error in alertlog repeatedly from 5 PM to 10 PM :

ORA-04031: unable to allocate 32 bytes of shared memory ("shared pool","SELECT VERSION FROM PSVERSIO .....Since MEMORY_TARGET is defined in spfile then shared pool is managed automatically.

Then what to do to avoid this error in future ?

View 3 Replies View Related

SQL & PL/SQL :: Order Of Bytes Returned By Dump() Function In Reverse Key Indexes?

May 28, 2013

Oracle Version: 11gR2: 11.2.0.1.0 - 64bit
OS: Linux Fedora Core 17 X86_64

Currently, I'm reading the online book Oracle Concepts, Chapter 3: 3 Indexes and Index-Organized Tables, section: Reverse Key Indexes in order to understand this topic.

As I understand for each pair of (key, rowid) in the index structure, the rowid for each row in the table obviously remains the same but the bytes of the key are reversed before the key is stored. So for example on a 32 bit machine (just an example) a key = 10 AB CD EF will be stored as FE DC BA 01 , am I right?

According to the documentation, this becomes interesting in RAC environments in order to remove a hot spot from the index (when multiple instances repeatedly modify the same block) with the disadvantage that in some cases there cannot be Index Range Scan any more as data in the index is not sorted by column key when it is stored.

I was just curious to see how bytes of each key are reversed and after a bit googling I found an article where Tom Kyte shows with an example by using dump function (which as I understand gives the internal representation of a given expression) the difference in the sequence of bytes. Here is the link

[URL]

So based on his instructions I tried to do my own test, yet I don't get the same result, that is, the bytes are not reversed for me once we rebuild the index by REVERSE key word.

I'm going to write down here the test that I did, where is/are my error(s)

Test Case:
(I use a copy of the employees table in hr sample schema)
SQL> CREATE TABLE emp_test AS SELECT * FROM hr.employees;
Table created.
SQL> CREATE INDEX emp_test_idx ON emp_test(first_name);

[code]...

Now, a test SQL Query using the index we've just defined (just for giving an example)

SQL> SELECT first_name,
2 dump(first_name, 16) as dump_result
3 FROM emp_test
4 WHERE first_name = 'Kelly';

FIRST_NAME DUMP_RESULT
-------------- ----------------------------------
Kelly Typ=1 Len=5: 4b,65,6c,6c,79

[code]...

So, according to the above Execution plan, Oracle does an Index Range Scan using the index that I defined on my table that is, emp_test_idx. According to the output of dump, the key (first_name) in that index is stored (in terms of bytes) as 4b,65,6c,6c,79

SQL> SELECT chr(to_number('4b', 'xx')) ||
2 chr(to_number('65', 'xx')) ||
3 chr(to_number('6c', 'xx')) ||
4 chr(to_number('6c', 'xx')) ||
5 chr(to_number('79', 'xx')) first_name
6 FROM DUAL;

FIRST_NAME
--------------------
Kelly

Which as we can see corresponds to the first name 'Kelly', the first name we specified in the above SQL query.

Now let's rebuild the index

SQL> ALTER INDEX emp_test_idx REBUILD REVERSE;
Index altered.
SQL>

Once the index keys have been reversed, I run the very same query in order to see the difference

SQL> SELECT first_name,
2 dump(first_name, 16) as dump_result
3 FROM emp_test
4 WHERE first_name = 'Kelly';

[code]...

So the second time after the index has been reversed, I still get the very same sequence of bytes, that is, 4b,65,6c,6c,79, whereas I expected to get 79,6c,6c,65,4b (that is, the reversed order of the initial bytes sequence)

View 8 Replies View Related

ORA-04031 / Unable To Allocate 3896 Bytes Of Shared Memory

May 20, 2013

i am facing this problem from yesterday i cant able to do any DML operations on my Database i am getting this error every time

ORA-00604: error occurred at recursive SQL level 2

ORA-04031: unable to allocate 3896 bytes of shared memory ("shared pool","select x.inst_id,x.indx+1,ks...","sga heap(1,0)","kglsim

i am giving SHOW parameter SGA or even select statement i am getting the same error message

View 4 Replies View Related

Server Administration :: ORA-04031 / Unable To Allocate 256 Bytes Of Shared Memory

Sep 7, 2010

When user insert rows in table oracle interrupts and raise error- ORA-04031: unable to allocate 256 bytes of shared memory? how to do?

I tried to increase the size of shared_pool also but cant.

large_pool_size = 0
shared_pool_size=134217728(128M)
sga_max_size=218103808(208M)

And when I fire 'select* from v$sga;'

Fixed Size 2142976
Variable Size 159386880
Database Buffers 50331648
Redo Buffers 5296128

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved