Links
Home
Oracle DBA Forum
Frequent Oracle Errors
TNS:could not resolve the connect identifier specified
Backtrace message unwound by exceptions
invalid identifier
PL/SQL compilation error
internal error
missing expression
table or view does not exist
end-of-file on communication channel
TNS:listener unknown in connect descriptor
insufficient privileges
PL/SQL: numeric or value error string
TNS:protocol adapter error
ORACLE not available
target host or object does not exist
invalid number
unable to allocate string bytes of shared memory
resource busy and acquire with NOWAIT specified
error occurred at recursive SQL level string
ORACLE initialization or shutdown in progress
archiver error. Connect internal only, until freed
snapshot too old
unable to extend temp segment by string in tablespace
Credential retrieval failed
missing or invalid option
invalid username/password; logon denied
unable to create INITIAL extent for segment
out of process memory when trying to allocate string bytes
shared memory realm does not exist
cannot insert NULL
TNS:unable to connect to destination
remote database not found'>ora-02019
exception encountered: core dump
inconsistent datatypes
no data found
TNS:operation timed out
PL/SQL: could not find program
existing state of packages has been discarded
maximum number of processes exceeded
error signaled in parallel query server
ORACLE instance terminated. Disconnection forced
TNS:packet writer failure
see ORA-12699
missing right parenthesis
name is already used by an existing object
cannot identify/lock data file
invalid file operation
quoted string not properly terminated
DBMS_METADATA in 10.2

DBMS_METADATA in 10.2

2005-08-01       - By Wolfgang Breitling

Reply:     1     2     3     4  

No problem with that sql on my 10.2 database:

20:21:32 orcl.scott> var patt varchar2(100)
20:24:37 orcl.scott> exec :patt := 'TEST%';

PL/SQL procedure successfully completed.

20:25:00 orcl.scott> select
dbms_metadata.get_ddl('TABLESPACE',tablespace_name) SQL
20:25:01   2        from dba_tablespaces
20:25:01   3        where tablespace_name !='SYSTEM'
20:25:01   4        and tablespace_name like upper(:PATT)
20:25:01   5        order by contents,tablespace_name
20:25:02   6  /

SQL
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --

  CREATE TABLESPACE "TEST_8K_ASSM" DATAFILE
  '/u01/oracle/product/10.2.0/oradata/orcl/test_8k_assm.dbf' SIZE 10485760
  AUTOEXTEND ON NEXT 10485760 MAXSIZE 419430400
  LOGGING ONLINE PERMANENT BLOCKSIZE 8192
  EXTENT MANAGEMENT LOCAL UNIFORM SIZE 65536 SEGMENT SPACE MANAGEMENT AUTO
   ALTER DATABASE DATAFILE
  '/u01/oracle/product/10.2.0/oradata/orcl/test_8k_assm.dbf' RESIZE 419430400

No peep or trace in the alert log.
Are you sure you are running it on a supported platform ;-)

At 04:34 PM 8/1/2005, Mladen Gogala wrote:
>select dbms_metadata.get_ddl('TABLESPACE',tablespace_name) SQL
>       from dba_tablespaces
>       where tablespace_name !='SYSTEM'
>       and tablespace_name like upper(:PATT)
>       order by contents,tablespace_name

Regards

Wolfgang Breitling
Centrex Consulting Corporation
http://www.centrexcc.com

--
http://www.freelists.org/webpage/oracle-l