LOB Storage definition in Designer
Does somebody know how to specify a
LOB Storage definition in Designer 6i?
Thanks,
Michael
Hi Didier - its actually the measure I'm trying tu restrict.
I'm a bit hazy on what I'øm supposed to use as a filter key.
What I'm trying to do is:
1. Create a restricted measuer called BO Amount Curr
2. Which is based on SAP measure Amount
3. The restriction should be based on the dimension L01 Currency
4. where the use selects the desired currency unit at run time.
I suspect that I'm messing up the filter key selection - however, I haven't been able to find a guide on how to use this functionality.
What should be uesd as Filter key - the dimesion you want to filter or the dimension you want to use as filter?
When I use the Filter dimension as filter key - I get an empty query result.
br
Jess
Similar Messages
-
Hi,
In the help for Designer 9i I found a note
explaining the different parameters which can be set in a LOB storage clause.
Does anybody know where these parameters can be set for a given table implementation?
Regards BerndNow, I have found that "the repository reports" tool has predefined documentation reports. When I request a document, the operation never ends. When I kill the tool a word document appears with the information. I don't know if it is a problem of the current design (not complete, incorrect in some way) or if it is a problem of my pc (RAM, Virtual Memory). I can almost assure that it is not the second case but I don't know how to avoid the problem of this hanging of the tool.
-
Generating FREELIST storage clause from Designer
Hi,
We are using Designer 6.0 to generate our tablespace and table DML. I am currently trying to get Designer to generate a CREATE TABLE command of the form (where the FREELIST GROUP clause is the subject of this question).
CREATE TABLE
test_table( id NUMBER )
TABLESPACE TEST_TBL
STORAGE (FREELIST GROUPS 2)
I know that a FREELIST GROUP can be specified at the Storage Definition level in Designer 6.0 and that these Storage Definitions can be assigned to tablespaces and tables. However, even setting it at the Storage Definition level and assigning that definition to the Table won't generate it in the DML script for the table.
Are there other options that need to be set before the FREELIST GROUPS storage clause can be generated ? - I want to avoid changing the scripts by hand.
Any help is appreciated,
NatalinaDROP TABLE t;
create table t as select * from all_objects where 1=0;
begin
dbms_metadata.set_transform_param( DBMS_METADATA.SESSION_TRANSFORM, 'SEGMENT_ATTRIBUTES', false );
dbms_metadata.set_transform_param( DBMS_METADATA.SESSION_TRANSFORM, 'SQLTERMINATOR', TRUE );
end;
SELECT REPLACE(
DBMS_METADATA.GET_DDL( 'TABLE', 'T'),
'"'||USER||'".',
from dual;
CREATE TABLE "T"
( "OWNER" VARCHAR2(30) NOT NULL ENABLE,
"OBJECT_NAME" VARCHAR2(30) NOT NULL ENABLE,
"SUBOBJECT_NAME" VARCHAR2(30),
"OBJECT_ID" NUMBER NOT NULL ENABLE,
"DATA_OBJECT_ID" NUMBER,
"OBJECT_TYPE" VARCHAR2(19),
"CREATED" DATE NOT NULL ENABLE,
"LAST_DDL_TIME" DATE NOT NULL ENABLE,
"TIMESTAMP" VARCHAR2(19),
"STATUS" VARCHAR2(7),
"TEMPORARY" VARCHAR2(1),
"GENERATED" VARCHAR2(1),
"SECONDARY" VARCHAR2(1),
"NAMESPACE" NUMBER NOT NULL ENABLE,
"EDITION_NAME" VARCHAR2(30)
) ;To get CREATE TABLE statements for all the tables in your schema:begin
dbms_metadata.set_transform_param( DBMS_METADATA.SESSION_TRANSFORM, 'SEGMENT_ATTRIBUTES', false );
dbms_metadata.set_transform_param( DBMS_METADATA.SESSION_TRANSFORM, 'SQLTERMINATOR', TRUE );
end;
SELECT REPLACE(
EXTRACTVALUE(
XMLTYPE(
DBMS_XMLGEN.GETXML(
'SELECT DBMS_METADATA.GET_DDL( ''TABLE'', '''||TABLE_NAME||''' ) SCR FROM DUAL'
, '/ROWSET/ROW/SCR'
'"'||USER||'".',
OBJECT_SCRIPT
FROM USER_TABLES;I didn't post the output ;)
Edited by: Stew Ashton on Mar 7, 2013 11:47 AM -
Where Are Tablespace Storage Definitions Created
Where/how in RON or DE are tablespace and storage definitions created?
In Database Design Transformer Settings dialog box - Database tab; Help states that �tablespace and storage definitions for an application system can be created using the Repository Object Navigator or the Design Editor.�Design Editor -> DB Admin Navigator tab -> work area -> container -> server model definitions -> storage definitions!
-
EXP-00003: no storage definition found for segment in export import
Hii
I am exporting data of one schema which is on ORALCE 10g to oracle 9i
by exp utility export is complete sucessfully but it will giving error in some tables as EXP-00003: no storage definition found for segment(11, 883)
can you tell mi what is the cause of error?
What steps need to be to correct the error?Hi,
Since you are exporting from 10g to 9i, can you tell me the version of Export utility used to export data from 10g.
Moreover if you are using 9i export utility try with compress=Y option and still if you are getting the error do post here.
Regards -
Getting error EXP-00003: no storage definition found for segment(0, 0)
I am getting an error when using "Export: Release 11.2.0.1.0 - Production" on "AIX 6.1.0.0" and connecting to a remote database with version "Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production". I have tried many different options but the latest command that I ran is:
exp Userid=id/password@db TABLES=myschema.mytable file=mytable.dat log=mytable.log compress=y INDEXES=N
I am not using expdp for some specific reasons but this Export works on smaller tables whereas this has > 100,000 records. Also there is ample space on the landing directory.
Any help is appreciated.
Thank you!This is the bug. Read this
OERR: EXP 3 "no storage definition found for segment(%lu, %lu)" [ID 21599.1]
It also happens When trying to export an object, all associated objects are exported as well. If one of the indexes is owned by a user and the exporting user does not have permissions on that index object the export fails.
Edited by: TSharma on Feb 7, 2013 11:47 AM -
In "Oracle Database Application Developer's Guide - Large Objects
10g Release 2 (10.2)", Section "Inline and Out-of-Line LOB Storage", it says:
- "LOB values are stored out-of-line when any of the following situations apply: By default. That is, if you do not specify a LOB parameter for the LOB storage clause when you create the table."
Some lines down it says
"Using the default LOB storage properties (inline storage) ".
Does any one known what is the default option?
By outline it means that the LOB data is not in the same page as the other fields data, but it is still in the same tablespace. Isn't that?
Thanksit means that the LOB data is not in the same page as the other fields data,
but it is still in the same tablespace. Isn't that?Nothing better than trying...
TEST@db102 SQL> create table test_lob (a number, b clob);
Table created.
TEST@db102 SQL> select segment_name,segment_type,tablespace_name from user_segments
2 where segment_name = 'TEST_LOB'
3 union
4 select segment_name,segment_type,tablespace_name from user_segments
5 where segment_name in (select segment_name from user_lobs
6 where table_name = 'TEST_LOB');
SEGMENT_NAME SEGMENT_TYPE TABLESPACE_NAME
SYS_LOB0000053644C00002$$ LOBSEGMENT USERS
TEST_LOB TABLE USERS
TEST@db102 SQL> -
Freelists parameter in storage definitions Designer 6.0
I have changed the freelists parameter in the storage parametrs. The table schema definition and implementation point to the correct storage parameters, however when I generate the schema, the freelists options are not included, is this a known bug? or do I have to setup something else?
Please can somebody help?
Regards.
Jesmond
nullHi Demet,
Having read your question again I suspect that you are not asking about installation of database but about block sizes for table creation.
You can set those types of properties using the DB Admin tab in the Design Editor. Go to your database -> Users -> Schema Objects -> Table Implementations and double click on the table in question
Rgds
Susan -
Buffer busy waits after cnanging lob storage to oracle securefiles
Hi Everyone
I need help resolving a problem with buffer busy waits in for a lob segment using securefiles for storage.
During the load the application inserts a record into a table with the lob segment and update the record after, populating lob data. The block size on the table space holding the lob is 8 kb and the chunk size on the lob segment is set to 8kb. The average size of the lob record is 6 kb and the minimum size is 4.03 KB. The problem occurs only when running a job with a big number of relatively small inserts (4.03 Kb) in to the lob column . The table definition allow in-row storage and the ptcfree set to 10%. The same jobs runs without problem when using basicfiles storage for the lob column.
According to [oracle white paper |http://www.oracle.com/technetwork/database/options/compression/overview/securefiles-131281.pdf] securefiles have a number of performance enhancements. I was particular interested to test Write Gather Cache as our application does a lot of relatively small inserts into a lob segment.
Below is a fragment from the AWR report. It looks like all buffer busy waits belong to a free list class. The lob segment is located in an ASSM tablespace and I cannot increase freelists.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning option
Host Name Platform CPUs Cores Sockets Memory(GB)
DB5 Microsoft Windows x86 64-bit 8 2 31.99
Snap Id Snap Time Sessions Curs/Sess
Begin Snap: 1259 01-Apr-11 14:40:45 135 5.5
End Snap: 1260 01-Apr-11 15:08:59 155 12.0
Elapsed: 28.25 (mins)
DB Time: 281.55 (mins)
Cache Sizes Begin End
~~~~~~~~~~~ ---------- ----------
Buffer Cache: 2,496M 2,832M Std Block Size: 8K
Shared Pool Size: 1,488M 1,488M Log Buffer: 11,888K
Load Profile Per Second Per Transaction Per Exec Per Call
~~~~~~~~~~~~ --------------- --------------- ---------- ----------
DB Time(s): 10.0 0.1 0.01 0.00
DB CPU(s): 2.8 0.0 0.00 0.00
Redo size: 1,429,862.3 9,390.5
Logical reads: 472,459.0 3,102.8
Block changes: 9,849.7 64.7
Physical reads: 61.1 0.4
Physical writes: 98.6 0.7
User calls: 2,718.8 17.9
Parses: 669.8 4.4
Hard parses: 2.2 0.0
W/A MB processed: 1.1 0.0
Logons: 0.1 0.0
Executes: 1,461.0 9.6
Rollbacks: 0.0 0.0
Transactions: 152.3
Top 5 Timed Foreground Events
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Avg
wait % DB
Event Waits Time(s) (ms) time Wait Class
buffer busy waits 1,002,549 8,951 9 53.0 Concurrenc
DB CPU 4,724 28.0
latch: cache buffers chains 11,927,297 1,396 0 8.3 Concurrenc
direct path read 121,767 863 7 5.1 User I/O
enq: DW - contention 209,278 627 3 3.7 Other
?Host CPU (CPUs: 8 Cores: 2 Sockets: )
~~~~~~~~ Load Average
Begin End %User %System %WIO %Idle
38.7 3.5 57.9
Instance CPU
~~~~~~~~~~~~
% of total CPU for Instance: 40.1
% of busy CPU for Instance: 95.2
%DB time waiting for CPU - Resource Mgr: 0.0
Memory Statistics
~~~~~~~~~~~~~~~~~ Begin End
Host Mem (MB): 32,762.6 32,762.6
SGA use (MB): 4,656.0 4,992.0
PGA use (MB): 318.4 413.5
% Host Mem used for SGA+PGA: 15.18 16.50
Avg
%Time Total Wait wait Waits % DB
Event Waits -outs Time (s) (ms) /txn time
buffer busy waits 1,002,549 0 8,951 9 3.9 53.0
latch: cache buffers chain 11,927,297 0 1,396 0 46.2 8.3
direct path read 121,767 0 863 7 0.5 5.1
enq: DW - contention 209,278 0 627 3 0.8 3.7
log file sync 288,785 0 118 0 1.1 .7
SQL*Net more data from cli 1,176,770 0 103 0 4.6 .6
Buffer Wait Statistics DB/Inst: ORA11G/ora11g Snaps: 1259-1260
-> ordered by wait time desc, waits desc
Class Waits Total Wait Time (s) Avg Time (ms)
free list 818,606 8,780 11
undo header 512,358 141 0
2nd level bmb 105,816 29 0
-> Total Logical Reads: 800,688,490
-> Captured Segments account for 19.8% of Total
Tablespace Subobject Obj. Logical
Owner Name Object Name Name Type Reads %Total
EAG50NSJ EAG50NSJ SYS_LOB0000082335C00 LOB 127,182,208 15.88
SYS SYSTEM TS$ TABLE 7,641,808 .95
Segments by Physical Reads DB/Inst: ORA11G/ora11g Snaps: 1259-1260
-> Total Physical Reads: 103,481
-> Captured Segments account for 224.4% of Total
Tablespace Subobject Obj. Physical
Owner Name Object Name Name Type Reads %Total
EAG50NSJ EAG50NSJ SYS_LOB0000082335C00 LOB 218,858 211.50
....Best regards
Yuri KogunHi Jonathan,
I was puzzled by the number of logical reads as well. This hasn't happened when the lob was stored as a basic fille and I assumed that the database is able to store the records in-row when we switched to securefiles. With regards to ASSM, according to the documentation this is the only option when using securefiles.
We did have high number of HW-enqueue waits in the database when running the test with basic files and had to set 44951 event
alter system set EVENTS '44951 TRACE NAME CONTEXT FOREVER, LEVEL 1024' There are 2 application servers running 16 jobs each, so we should not have more than 32 sessions inserting the data in the same time but I need to check wheter jobs can be brocken to smaller peaces. I that case the number of concurrent session may be bigger. Each session is configured with bundle size of 30 and it will issue commit every 30 inserts.
I am not sure how exactly the code does insert, as I've been told it should be straight insert and update I will be able to check this on Monday.
Below is the extract from the AWR reports with top SQL, I could not find any SQL related to the $TS table in the report. The query to the V$SEGMENT_STATISTICS was executed by me during the job run.
?SQL ordered by Elapsed Time DB/Inst: ORA11G/ora11g Snaps: 1259-1260
-> Resources reported for PL/SQL code includes the resources used by all SQL
statements called by the code.
-> % Total DB Time is the Elapsed Time of the SQL statement divided
into the Total Database Time multiplied by 100
-> %Total - Elapsed Time as a percentage of Total DB time
-> %CPU - CPU Time as a percentage of Elapsed Time
-> %IO - User I/O Time as a percentage of Elapsed Time
-> Captured SQL account for 91.3% of Total DB Time (s): 16,893
-> Captured PL/SQL account for 0.1% of Total DB Time (s): 16,893
Elapsed Elapsed Time
Time (s) Executions per Exec (s) %Total %CPU %IO SQL Id
7,837.5 119,351 0.07 46.4 28.3 .7 2zrh6mw372asz
Module: JDBC Thin Client
update JS_CHANNELDESTS set CHANNELID=:1, DESTID=:2, CHANNELDESTSTATUSDATE=:3, ST
ATUS=:4, BINOFFSET=:5, BINNAME=:6, PAGECOUNT=:7, DATA=:8, SORTORDER=:9, PRINTFOR
MAT=:10, ENVELOPEID=:11, DOCID=:12, CEENVELOPEID=:13, CHANNELTYPE=:14 where ID=:
15
7,119.0 115,997 0.06 42.1 23.1 .2 3vjx93vur4dw1
Module: JDBC Thin Client
insert into JS_CHANNELDESTS (CHANNELID, DESTID, CHANNELDESTSTATUSDATE, STATUS, B
INOFFSET, BINNAME, PAGECOUNT, DATA, SORTORDER, PRINTFORMAT, ENVELOPEID, DOCID, C
EENVELOPEID, CHANNELTYPE, ID) values (:1, :2, :3, :4, :5, :6, :7, :8, :9, :10, :
11, :12, :13, :14, :15)
85.6 2 42.80 .5 98.3 .0 cc19qha9pxsa4
Module: SQL Developer
select object_name, statistic_name, value from V$SEGMENT_STATISTICS
where object_name = 'SYS_LOB0000082335C00011$$'
35.0 111,900 0.00 .2 74.3 7.6 c5q15mpnbc43w
Module: JDBC Thin Client
insert into JS_ENVELOPES (BATCHID, TRANSACTIONNO, SPOOLID, JOBSETUPID, JOBSETUPN
AME, SPOOLNAME, STEPNO, MASTERCHANNELJOBID, SORTKEY1, SORTKEY2, SORTKEY3, ID) va
lues (:1, :2, :3, :4, :5, :6, :7, :8, :9, :10, :11, :12)
34.9 111,902 0.00 .2 63.0 2.6 a0hmmbjwgwh1k
Module: JDBC Thin Client
insert into JS_CHANNELJOBPROPERTIES (NAME, VALUE, CHANNELJOBID, ID) values (:1,
:2, :3, :4)
29.2 950 0.03 .2 95.9 .1 du0hgjbn9vw0v
Module: JDBC Thin Client
SELECT * FROM JS_BATCHOVERVIEW WHERE BATCHID = :1
?SQL ordered by Executions DB/Inst: ORA11G/ora11g Snaps: 1259-1260
-> %CPU - CPU Time as a percentage of Elapsed Time
-> %IO - User I/O Time as a percentage of Elapsed Time
-> Total Executions: 2,476,038
-> Captured SQL account for 96.0% of Total
Elapsed
Executions Rows Processed Rows per Exec Time (s) %CPU %IO SQL Id
223,581 223,540 1.0 22.4 63.7 .0 gz7n75pf57c
Module: JDBC Thin Client
SELECT SQ_CHANNELJOBPROPERTIES.NEXTVAL FROM DUAL
120,624 120,616 1.0 8.1 99.0 .0 6y3ayqzubcb
Module: JDBC Thin Client
select batch0_.BATCHID as BATCHID0_0_, batch0_.BATCHNAME as BATCHNAME0_0_, batch
0_.STARTDATE as STARTDATE0_0_, batch0_.PARFINDATE as PARFINDATE0_0_, batch0_.PRO
CCOMPDATE as PROCCOMP5_0_0_, batch0_.BATCHSTATUS as BATCHSTA6_0_0_, batch0_.DATA
FILE as DATAFILE0_0_, batch0_.BATCHCFG as BATCHCFG0_0_, batch0_.FINDATE as FINDA
119,351 227,878 1.9 7,837.5 28.3 .7 2zrh6mw372a
Module: JDBC Thin Client
update JS_CHANNELDESTS set CHANNELID=:1, DESTID=:2, CHANNELDESTSTATUSDATE=:3, ST
ATUS=:4, BINOFFSET=:5, BINNAME=:6, PAGECOUNT=:7, DATA=:8, SORTORDER=:9, PRINTFOR
MAT=:10, ENVELOPEID=:11, DOCID=:12, CEENVELOPEID=:13, CHANNELTYPE=:14 where ID=:
15
116,033 223,892 1.9 8.0 92.2 .0 406wh6gd9nk
Module: JDBC Thin Client
select m_jobprope0_.CHANNELJOBID as CHANNELJ4_1_, m_jobprope0_.ID as ID1_, m_job
prope0_.NAME as formula0_1_, m_jobprope0_.ID as ID4_0_, m_jobprope0_.NAME as NAM
E4_0_, m_jobprope0_.VALUE as VALUE4_0_, m_jobprope0_.CHANNELJOBID as CHANNELJ4_4
_0_ from JS_CHANNELJOBPROPERTIES m_jobprope0_ where m_jobprope0_.CHANNELJOBID=:1
115,997 115,996 1.0 7,119.0 23.1 .2 3vjx93vur4d
Module: JDBC Thin Client
insert into JS_CHANNELDESTS (CHANNELID, DESTID, CHANNELDESTSTATUSDATE, STATUS, B
INOFFSET, BINNAME, PAGECOUNT, DATA, SORTORDER, PRINTFORMAT, ENVELOPEID, DOCID, C
EENVELOPEID, CHANNELTYPE, ID) values (:1, :2, :3, :4, :5, :6, :7, :8, :9, :10, :
11, :12, :13, :14, :15)
115,996 115,996 1.0 15.9 75.0 4.5 3h58syyk145
Module: JDBC Thin Client
insert into JS_DOCJOBS (CREATEDATE, EFFDATE, JURIST, LANG, IDIOM, DD, DDVID, USE
RKEY1, USERKEY2, USERKEY3, USERKEY4, USERKEY5, USERKEY6, USERKEY7, USERKEY8, USE
RKEY9, USERKEY10, USERKEY11, USERKEY12, USERKEY13, USERKEY14, USERKEY15, USERKEY
16, USERKEY17, USERKEY18, USERKEY19, USERKEY20, REVIEWCASEID, ID) values (:1, :2
115,440 115,422 1.0 11.5 63.3 .0 2vn581q83s6
Module: JDBC Thin Client
SELECT SQ_CHANNELDESTS.NEXTVAL FROM DUAL
...The tablespace holding the lob segment has system extent allocation and the number of blocks for the lob segments roughly the same as the number of blocks in allocated extents.
select segment_name, blocks, count (*)
from dba_extents where segment_name = 'SYS_LOB0000082335C00011$$'
group by segment_name, blocks
order by blocks
SEGMENT_NAME BLOCKS COUNT(*)
SYS_LOB0000082335C00011$$ 8 1
SYS_LOB0000082335C00011$$ 16 1
SYS_LOB0000082335C00011$$ 128 158
SYS_LOB0000082335C00011$$ 256 1
SYS_LOB0000082335C00011$$ 1024 120
SYS_LOB0000082335C00011$$ 2688 1
SYS_LOB0000082335C00011$$ 8192 117
SELECT
sum(ceil(dbms_lob.getlength(data)/8000))
from EAG50NSJ.JS_CHANNELDESTS
SUM(CEIL(DBMS_LOB.GETLENGTH(DATA)/8000))
993216
select sum (blocks) from dba_extents where segment_name = 'SYS_LOB0000082335C00011$$'
SUM(BLOCKS)
1104536 Below is the instance activity stats related to securefiles from the AWR report
Statistic Total per Second per Trans
securefile allocation bytes 3,719,995,392 2,195,042.4 14,415.7
securefile allocation chunks 380,299 224.4 1.5
securefile bytes non-transformed 2,270,735,265 1,339,883.4 8,799.6
securefile direct read bytes 1,274,585,088 752,089.2 4,939.3
securefile direct read ops 119,725 70.7 0.5
securefile direct write bytes 3,719,995,392 2,195,042.4 14,415.7
securefile direct write ops 380,269 224.4 1.5
securefile number of non-transfo 343,918 202.9 1.3Best regards
Yuri
Edited by: ykogun on 02-Apr-2011 13:33 -
Retrieving LOB Storage Parameter through jdbc
Is there a way to retrieve the lob column's initial and next storage parameter through jdbc?
I need to replicate a table in one database to another database and with tables containing lobs(clobs,blobs),
I need to get the storage parameter values for creating a "Create Table" script on the other database.
tnxIn records.jsp change your line that reads:
out.print("<a href =vdetails.jsp>" + plantno);Change it to:
out.print("<a href =vdetails.jsp?plantno=" + plantno + ">" + plantno);Then you can change your line in vdetails.jsp:
String pla=request.getParameter("something");to
String pla=request.getParameter("plantno");That should be enough to get you started.
You should investigate either the use of a bean or even a custom tag to remove these scriplets from your JSP. -
LOB Storage Attribute Changed Unexpectedly
Hello All,
I have an Oracle Text application and after testing high volume inserts (100,000 Docs) I noticed the LOB text column's IN_ROW storage attribute changed from out of line to in line storage. This had a negative effect on text search performance and I am positive the table was created and data initially loaded with out of line storage on my LOB.
Does anyone know of any Oracle conditions or situations that would cause this to occur?
Thanks..
JoePlease change nologging in my earlier response to logging.
alter table parttest
modify partition pt_violation_200201
lob(explanation) (nocache logging) -
Nokia XL storage definition and how to clear the p...
Hello Nokia Team & Nokia Fans,
I have a Nokia XL but do not understand the various kind of memories in the phone. My phone has an 8 GB micro SD card inside. What the different among Internal storage, Phone storage and Memory card when I go to Setting/storage?. I found the Phone storage at Setting/storage has the same amount with Memory card at Setting/Apps/Manage apps/Memory card. What will happen if I use Clear phone storage function?
Attachments:
Nokia XL.jpg 33 KBMemory Card is your external SD card that you manually inserted.
Internal and Phone are the two 2GB + 2GB internal storage built into the phone. Both are mojorly the same, but one carries the base OS and the other keeps the other internal file system of your phone.
I don't have a solid clue with what happens if you clear the phone storage, but the general underthings says that it will clear all that you have installed on your phone. i.e the Apps and other downloaded files that reside in the phone memory will be wiped. -
Arranging function definitions in Designer
1.How can I arrange PL/SQL functions in generated scripts that called function come first and calling function in the next?
Without this arrangement, during creating PL/SQL functions errors appear on the screen as the following:
Errors for FUNCTION GET_DEPTRN_TOTAL_ADJUST:
LINE/COL error
-------- ------------------------------------ 20/4 PL/SQL: SQL Statement ignored
21/11 PLS-00201: identifier
'CHANGE_DEPTRN_AMOUNT_SIGN'
must be declared
That function GET_DEPTRN_TOTAL_ADJUST is calling and CHANGE_DEPTRN_AMOUNT_SIGN
is called function.
nullTry the display sequence property (not for sure that helps).
But, if you add them to a package, you can determine the sequence of the function by the property "called sequence".
Good luck,
Jessica -
Hi,
Below question is for oracle 11g database on RHEL.
we are having a CLOB column of 8K. Now the developer is asking to get that increase to 32k how can i make that?
As i know we cannot change "chunk" size once after it is created. I thought we need to recreate a new table with chunk 32k and then export/import the data from old table and drop that old table.
But, the point where i'm struck is ,
the DB_BLOCK_SIZE is 8k. So, can we create a new table with 32k chunk size. Does it conflict?
If thats not possible, i thought an alternative of recreating a tablespace with 32k. I heard that, we can create new tablespace with different db_block_size.. i'm not sure if i'm right? and if you don't mind can you just explain me the lob in-line and out-line.. i read the documents but, i didn't get that well
Can you please suggest me the better way and correct me if i'm wrong..These steps might help:
How to alter LOB storage definition.
You may use the following to alter the table and the associated LOB allowing for more extents:
alter table owner.table_name
modify LOB(lob_column_name)
(storage (next 100M MAXEXTENTS 1000));
Example:
User is getting the following error:
APP-FND-00565: The export failed in APP_EXPORT.DUMP_DATA
PL/SQL ERROR: ORA-01691: unable to extend lob segment APPLSYS.SYS_LOB0000033586C00004$$ by 311075 in tablespace APPLSYSD
Looking at tablespace APPLSYSD I can see that it does have room to extent at datafile level for another 800 MB. And TEMP has plenty of room as well.
Using the SQL provided in this page: Looking at the LOB:
SYS_LOB0000033586C00004$$
It looks like Column FILE_DATA of datatype LOBSEGMENT in table APPLSYS.FND_LOBS has grown to be 5 GB in size and was trying to extent itself grabbing another 2.3 GB (NEXT_EXTENT is 2548301824) which of course it could not do, I modified it so it can extent only by another 100 MB.
SQL> alter table APPLSYS.FND_LOBS modify lob (FILE_DATA)
(storage (maxextents 1000 next 100M));
Table altered.
For more detail see: http://www.idbasolutions.com/database/find-lob.html -
LOB pctversion vs retention definition
I am trying to understand the difference between pctversion and retention definitions of LOB column.
I am using outline LOB (5.5Kb size) that is stored in ASSM tablespace with UNIFORM size .
If i create a LOB without any settings then default is RETENTION that is derived from UNDO_RETENTION of the instance.
In addition i can see in user_lobs PCTVERSION is set to 10 which is a default value.
The question is what definition is taken precedence RETENTION or PCTVERSION ?
What is the exact meaning of RETENTION inside the LOB definition , does it mean that previous LOB pages are not overwritten for the UNDO_RETENTION period of time ?
My application is running massive update commands against LOB column with very few select statemnets .
I see that my LOB Segment is growing and application is waiting for "enq HW contention" wait.
Thank you
MichaelYes, of course i read the docs but got confused by what is defined in the docs and especially what was not written there.
Oracle documentation does not mention that in ASSM tablespaces LOBS default definition is retention and not pctversion. This information i found in metalink.
My question was when i see both definitions in user_lobs what definition is really taken place.
I have played a little with PCTVERSION by setting it to 100 or to 0.
When i set it to 100 i see that each time i do an update LOB segment allocates new extent and does not overwrite any of already allocated extents in a future.
Test case:
Create table with LOB
In a LOOP update LOB column one by one (all table rows) doing a commit after each update.
The result of this test case with PCTVERSION 0 is that LOB segment is increased by initial value of extents
If at the begining it was 100 extents , after 1 full update it was extended to 200 extents and so on.
The question is for how long time old versions will be kept (please notice that all these old versions are from committed changes) ?
Another question about RETENTION, does it mean that for X sec (defined by UNDO_RETENTION) Oracle is keeping old versions of the LOB without doing overwrite ?
If this is true then this may very quickly lead to significant LOB segment growth.
For example application that performs massive updates on LOBS and UNDO_RETENTION is defined for 12 hours.
The problem here that i can not tune RETENTION period on a LOB level .
Michael
Maybe you are looking for
-
Using TLF with SDK 3.5 - 1014 error
Hi I have followed the steps outlined at http://opensource.adobe.com/wiki/display/tlf/Using+TLF+with+Flex+3.2 to import TLF to user with SDK 3.5. I have verified that I have the latest swc. I get no compile erros but at runtime I get VerifyError: Err
-
Need to change my online number
I have recently purchased an online number based in London prefix numbers. However, this number has been proven to be an ex-scam number appearred in all anti-scam sites all over the Internet. I accept several calls a day addressing the previous owner
-
In our current portal configuration we have the portal server running on one machine and the gateway on another. We want to move the gateway onto the same system as the portal server. So the easist way to do this seems to be to add a new gateway. Her
-
Is there a way to get the various menu bar items, those to the left of the time, to be in the order I want them. For some reason I am not able to change the load order in 'Accounts' System Preference. In Panther I could drag them to the order I want
-
How to transfer an account when user turns 18?
We have an exchange student staying with us who is 17 and cannot get a contract in her name. If we get the contract in our name, how does it work to transfer the contract to her name when she turns 18? She is looking at the Single Line Plan with the