How to change table->; sql?
I'm running 4.2.1 apex and move an application from one computer to another, since I couldn't find a way to export with all necessary tabels for this, I create sql scripts each.
Check the results in the workshop-> tabels-> sql Object Explorer I get these results:
CREATE TABLE "SAMPLE"
( "ID" NUMBER,
"NAME" VARCHAR2(255),
"SAMP_ID" NUMBER NOT NULL ENABLE,
"SAMP_FRONT_IMAGE" BLOB,
"SAMP_BACKWARD_IMAGE" BLOB,
PRIMARY KEY ("ID") ENABLE
)
/
ALTER TABLE "SAMPLE" ADD CONSTRAINT "SAMPLE_CON" FOREIGN KEY ("SAMPLE_ID")
REFERENCES "SAMP" ("ID") ENABLE
/
CREATE UNIQUE INDEX "SYS_IL0000031445C00004$$" ON "SAMPLE" (
/
CREATE UNIQUE INDEX "SYS_IL0000031445C00005$$" ON "SAMPLE" (
/
CREATE OR REPLACE TRIGGER "SAMPLE_T1"
BEFORE
insert on "SAMPLE"
for each row
begin
if :NEW.id is null then
select SAMPLE_SEQ.nextval into :NEW.id from dual;
end if;
end;
/
ALTER TRIGGER "SAMPLE_T1" ENABLE
/
Notice the line "CREATE a UNIQUE INDEX ' SYS_IL0000031445C00005$ $' ON 'CARD_TYPE'", which not only duplicates but shouldn't be there at all.
So, how to edit them? Also, can anyone suggest why they are there in the first place, that I take all the code of the original project and it doesn't have these lines?
Hello
First of all, if you want the tables on the new computer, then you will need to export the schema database (not only the apex application) on which your application is analyzed. To export the database schema use the utility "expdp" of oracle database. This will create the dumpfile that must be imported on the new computer (or I would say that the data base). A DBA can help you do it if you don't know about it.
Unique indexes might appear due to BLOB fields in your table. I'm guessing that oracle db creates a unique index for each BLOB and, possibly, fields in a CLOB table. Since your table contains 2 BLOB fields, two unique indexes are appearing. I see too many these type sql indexes in my tables with BLOB fields. We don't need to create them. The Oracle Apex sql gives also to these indices is actually incomplete.
My suggestion to export the tables is perform a dump of the schema of the application using "expdp' analysis and import it using"impdp"on the new database. It is not only import tables but also triggers, packages, procedures, functions and all other objects in the schema of your db.
Contributes to hope
Concerning
Marie Laure
Tags: Database
Similar Questions
-
How to change table properties
Hi experts,
How to change the properties of the cells.
How to make the script below work.
Could someone show me how
Respect of
John
var
doc = app.documents,
myStories = doc.story.everyItem () .getElements (),
cStory, myTables, cText, CTable::open;
While (cStory = myStories.pop ()) {}
cText = cStory.texts [0];
If (! cText.isValid) continue;
cText.fillColor = 'Black ';
myTables = cText.tables.everyItem () .getElements ();
While (CTable::open = myTables.pop ()) {}
If (! cTable.isValid) continue;
cTable.cells.everyItem (). texts.everyItem () .tabStops [0] .alignmentCharacter = ".";
cTable.cells.everyItem (). texts.everyItem () .fillColor = "Black";
cTable.cells.everyItem () .fillColor = "paper";
cTable.cells.everyItem () .leftEdgeStrokeColor = "paper";
cTable.cells.everyItem () .rightEdgeStrokeColor = "paper";
cTable.cells.everyItem () .topEdgeStrokeColor = "paper";
cTable.cells.everyItem () .bottomEdgeStrokeColor = "paper";
}
}
Hi John,.
As far as I know we can use 'chain of everyItem()' here with 2 conditions:
1. There are at least 1 story in a doc
2. There are at least 1 table in a doc
so, this code should work:
var cStoriesCheck = app.activeDocument.stories.everyItem().getElements().length; if (!cStoriesCheck ) exit(); var cTablesCheck = app.activeDocument.stories.everyItem().tables.everyItem().getElements().length; app.activeDocument.stories.everyItem().texts.everyItem().fillColor = "Black" if (!cTablesCheck) exit(); with ( cStories.tables.everyItem().cells.everyItem() ) { texts.everyItem().fillColor = mBlack; texts.everyItem().tabStops.everyItem().alignmentCharacter = "."; fillColor = "Paper"; leftEdgeStrokeColor = "Paper"; rightEdgeStrokeColor = "Paper"; topEdgeStrokeColor = "Paper"; bottomEdgeStrokeColor = "Paper"; }
-
Hi all
I am a newbie to Oracle and I am faced with the above error. Please see the below code snippets. Can someone please tell what I am doing wrong? Thank you in advance.
Thank you
CREATE TABLE ABC
(
ID VARCHAR2 ENABLE NUMBER NOT NULL,
FIELD1 ACTIVATE THE NUMBER NOT NULL,
FIELD2 ACTIVATE THE VARCHAR2 (8 BYTE) NOT NULL,
CONSTRAINT JOB_PK PRIMARY KEY (ID)
)
;
CREATE TABLE XYZ
(
ACTIVATE THE NUMBER 4 R_ID NOT NULL,.
ID VARCHAR2 ENABLE NUMBER NOT NULL,
Column1 NUMBER (2.0) default 0.00,.
Column2 NUMBER (2.0) default 0.00,.
COLUMN3 NUMBER (2.0).
NUMBER (2.0) TOTAL 0.00 default.
CONSTRAINT TRIP_PAYMENT_PK PRIMARY KEY (ID)
)
;
create or replace trigger trigger1
After Insert on XYZ
for each line
Declare
number of newTotal;
Start
newTOTAL: =: new. Column1 +: new. Column2 +: new. COLUMN3;
setting a day of XYZ together Total = newTotal;
end;
Insert into ABC (1, 45, ' Demo');
insertion in XYZ (1, 1, 12.50, 10.20 33,50, ");
Error report:
SQL error: ORA-04091: table XYZ is changing, function of triggering/can not see
Try one before line
create or replace trigger trigger1
before inserting on XYZ
for each line
Start
: new. TOTAL: =: new. Column1 +: new. Column2 +: new. COLUMN3;
end; -
In the xml editor how to change table as below
Hi all
My requirement is how can I change the table from the OLD to the new
OLD Table
Topic Max marks Grades subj1 5 3 subj1 5 2 subj3 5 4 NEW Table
Topic Max marks Obtained trademarks subj1 15
9
subj2 subj3 I thank in advance
Hello
Try the following, hope it will help you.
XML file like this
1 Sub1 10 1 Sub2 20 1 Sub3 30 Model
ID
Name
Brands of
G V IF RS ID
F NAME
BRANDS E IF RS E
Explanation of the tag
G
V
IF
ID
RS
F
NAME
BRANDS OF
E
IF
RS
E
Output like this
ID
Name
Brands of
1
Sub1
60
Sub2
Sub3
Please check the issue as resolved, if that answers your question. Thank you
Post edited by: sfr.farhan.fani
-
Hi all
How to find the characters in the table and view it in table 2 If Search_Character contains table.
I am using the model of correspondence but not finding the character
Thank you
Thank you. I did it.
-
How to change tables of waveforms?
Hi, I hope you can help with this.
I read 6 channels of analog data to a USB - 6008 1000 samples/second, 1000 sample blocks in a loop. The data come from DAQMX as an array of 6 waveforms.
I want to (y) scale all data such as 0, 1, 2 channels are divided by 3 (because electronics has an op-amp of gain of 3 x on channels) and channels 3, 4, 5 are divided by 15 (because electronics has a 3 x the gain and there is a resistance of 5 ohms and I'm trying to measure the current).
You might think it's ridiculously easy... but:
(1) to "scale and offset" labview vi only works on waveforms (no tables of waveforms)
(2) insert a node of matlab or matscript me does not work only the tables on waveforms,
(3) with the help of a simple 'divide' VI, it is impossible to define the denominator as just one number... "3" !any ideas? as usual, it is the kind of problem, people have to face all the time
Dave
Hi Dave,.
That's how I'd do it - use the table of values of divisor.
Hope this helps - example in lv 8.6.
Kind regards
-
How to change the sql to include totals
Here is the information required for assistance in this area
INSERT ordersCREATE TABLE APPLSYS.FND_USER ( USER_ID NUMBER(15), USER_NAME VARCHAR2(100 BYTE), LAST_UPDATE_DATE DATE, LAST_UPDATED_BY NUMBER(15), CREATION_DATE DATE, CREATED_BY NUMBER(15), LAST_UPDATE_LOGIN NUMBER(15), ENCRYPTED_FOUNDATION_PASSWORD VARCHAR2(100 BYTE), ENCRYPTED_USER_PASSWORD VARCHAR2(100 BYTE), SESSION_NUMBER NUMBER, START_DATE DATE, END_DATE DATE, DESCRIPTION VARCHAR2(240 BYTE), LAST_LOGON_DATE DATE, PASSWORD_DATE DATE, PASSWORD_ACCESSES_LEFT NUMBER(15), PASSWORD_LIFESPAN_ACCESSES NUMBER(15), PASSWORD_LIFESPAN_DAYS NUMBER(15), EMPLOYEE_ID NUMBER(15), EMAIL_ADDRESS VARCHAR2(240 BYTE), FAX VARCHAR2(80 BYTE), CUSTOMER_ID NUMBER(15), SUPPLIER_ID NUMBER(15), WEB_PASSWORD VARCHAR2(240 BYTE), USER_GUID RAW(16), GCN_CODE_COMBINATION_ID NUMBER(15), PERSON_PARTY_ID NUMBER )
Current SQL, I want too amendments:Insert into APPLSYS.FND_USER (USER_ID, USER_NAME, LAST_UPDATE_DATE, LAST_UPDATED_BY, CREATION_DATE, CREATED_BY, LAST_UPDATE_LOGIN, ENCRYPTED_FOUNDATION_PASSWORD, ENCRYPTED_USER_PASSWORD, SESSION_NUMBER, START_DATE, DESCRIPTION, PASSWORD_LIFESPAN_DAYS, EMPLOYEE_ID, EMAIL_ADDRESS, PERSON_PARTY_ID) Values (2248, '[email protected]', TO_DATE('11/02/2009 17:16:40', 'MM/DD/YYYY HH24:MI:SS'), 1234, TO_DATE('11/02/2009 17:16:40', 'MM/DD/YYYY HH24:MI:SS'), 1234, 3349708, 'ZHDF800E989435A83F862A9078E485E76CC82E51B508395BA3B492F48235BA712864AD0586670C82FA25C6597CC6560EF3D8', 'ZHC7A20CCEEC34081812AB931A0EBD4B5205F68AF5C1BA4FDD4A682F487D61B2CF755672F2C46BAF6717D5C578B3858DFC79', 0, TO_DATE('11/02/2009 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 'Monty Bilchitz', 30, 10262, '[email protected]', 39299); Insert into APPLSYS.FND_USER (USER_ID, USER_NAME, LAST_UPDATE_DATE, LAST_UPDATED_BY, CREATION_DATE, CREATED_BY, LAST_UPDATE_LOGIN, ENCRYPTED_FOUNDATION_PASSWORD, ENCRYPTED_USER_PASSWORD, SESSION_NUMBER, START_DATE, DESCRIPTION, LAST_LOGON_DATE, PASSWORD_DATE, PASSWORD_LIFESPAN_DAYS, EMPLOYEE_ID, EMAIL_ADDRESS, CUSTOMER_ID, PERSON_PARTY_ID) Values (2227, '[email protected]', TO_DATE('04/13/2010 12:39:04', 'MM/DD/YYYY HH24:MI:SS'), 2227, TO_DATE('11/02/2009 09:53:38', 'MM/DD/YYYY HH24:MI:SS'), 1295, 2227, 'ZH314A0F96175B5CDB8974DC680D364364C2C05AB28C8CCDF33AE6087FE0EFC2AA8CF2FC802A139AB0F9A6CCD371F500A38E', 'ZHBB417F192253772E4971BF55465F80F1A2794F2D468B4D94D7A16EABD2FE754F9DA64268FD614BC58FDBF7457BC137C901', 252, TO_DATE('11/02/2009 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 'Juanita Moldehnke', TO_DATE('04/21/2010 07:48:00', 'MM/DD/YYYY HH24:MI:SS'), TO_DATE('04/13/2010 12:39:04', 'MM/DD/YYYY HH24:MI:SS'), 30, 12541, '[email protected]', 81685, 81685); Insert into APPLSYS.FND_USER (USER_ID, USER_NAME, LAST_UPDATE_DATE, LAST_UPDATED_BY, CREATION_DATE, CREATED_BY, LAST_UPDATE_LOGIN, ENCRYPTED_FOUNDATION_PASSWORD, ENCRYPTED_USER_PASSWORD, SESSION_NUMBER, START_DATE, DESCRIPTION, LAST_LOGON_DATE, PASSWORD_DATE, PASSWORD_LIFESPAN_DAYS, EMPLOYEE_ID, EMAIL_ADDRESS, CUSTOMER_ID, PERSON_PARTY_ID) Values (2267, '[email protected]', TO_DATE('03/29/2010 11:13:59', 'MM/DD/YYYY HH24:MI:SS'), 2267, TO_DATE('11/24/2009 11:11:23', 'MM/DD/YYYY HH24:MI:SS'), 1295, 2267, 'ZH08DD1A68B37CAE173579A0B536B0B005F015185C3ED3E01C928F0990B602528C11560665E0EDB8EE8A666351A134D2D40C', 'ZHF50C9B4A60ED037DAD731FE2206B59B4F7305CD647BF6793AA859BB1DFFC18DCC823D6CF4DB43A94C5DBF696774FA37C00', 123, TO_DATE('11/24/2009 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 'Tanya Swanepoel', TO_DATE('04/21/2010 08:33:45', 'MM/DD/YYYY HH24:MI:SS'), TO_DATE('03/29/2010 11:13:59', 'MM/DD/YYYY HH24:MI:SS'), 30, 13003, '[email protected]', 92735, 92735); Insert into APPLSYS.FND_USER (USER_ID, USER_NAME, LAST_UPDATE_DATE, LAST_UPDATED_BY, CREATION_DATE, CREATED_BY, LAST_UPDATE_LOGIN, ENCRYPTED_FOUNDATION_PASSWORD, ENCRYPTED_USER_PASSWORD, SESSION_NUMBER, START_DATE, DESCRIPTION, LAST_LOGON_DATE, PASSWORD_DATE, PASSWORD_LIFESPAN_DAYS, EMPLOYEE_ID, EMAIL_ADDRESS, CUSTOMER_ID, PERSON_PARTY_ID) Values (2329, '[email protected]', TO_DATE('04/19/2010 14:33:11', 'MM/DD/YYYY HH24:MI:SS'), 2329, TO_DATE('03/02/2010 12:24:59', 'MM/DD/YYYY HH24:MI:SS'), 1295, 2329, 'ZHE12D2BA87DD3A97F7D17BBD5E5520F903D6C6C92B60021E3F065799E5D7DD3E163699B634050247C981BE0F8FDA81A1559', 'ZH1C22DD76D2FC5967ABFDDA4F3A5298CE9F774B061823C2F566E816C9EDB16F19225D62E85D4DB3FD73DC9DBACA2C7D2426', 91, TO_DATE('03/02/2010 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 'Simangele Mhlongo', TO_DATE('04/21/2010 09:07:54', 'MM/DD/YYYY HH24:MI:SS'), TO_DATE('04/07/2010 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 30, 6834, '[email protected]', 16126, 16126); Insert into APPLSYS.FND_USER (USER_ID, USER_NAME, LAST_UPDATE_DATE, LAST_UPDATED_BY, CREATION_DATE, CREATED_BY, LAST_UPDATE_LOGIN, ENCRYPTED_FOUNDATION_PASSWORD, ENCRYPTED_USER_PASSWORD, SESSION_NUMBER, START_DATE, DESCRIPTION, EMPLOYEE_ID, EMAIL_ADDRESS, PERSON_PARTY_ID) Values (2330, '[email protected]', TO_DATE('03/02/2010 12:27:42', 'MM/DD/YYYY HH24:MI:SS'), 1295, TO_DATE('03/02/2010 12:27:42', 'MM/DD/YYYY HH24:MI:SS'), 1295, 5737933, 'ZH61262B400C49CA3F72F7D5036FB5F33302093CCEFA1770AEF927F78222E10A615A4DD2B1F4D3AC7009E3A15879C7EADB70', 'ZH7B252AB5D0BA865795AF26CABD5CC6EBEF98458E3A82ECD11887E7EB89C7461BBE9C356753F88D35DF8B6CE7C0EDC062D3', 0, TO_DATE('03/02/2010 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 'Sheilagh Lawlor', 3592, '[email protected]', 8475);
This is the output current to make a selection above:WITH t1 AS (SELECT CASE WHEN mm = '01' THEN tot ELSE 0 END AS jan, CASE WHEN mm = '02' THEN tot ELSE 0 END AS feb, CASE WHEN mm = '03' THEN tot ELSE 0 END AS mar, CASE WHEN mm = '04' THEN tot ELSE 0 END AS apr, CASE WHEN mm = '05' THEN tot ELSE 0 END AS may, CASE WHEN mm = '06' THEN tot ELSE 0 END AS jun, CASE WHEN mm = '07' THEN tot ELSE 0 END AS jul, CASE WHEN mm = '08' THEN tot ELSE 0 END AS aug, CASE WHEN mm = '09' THEN tot ELSE 0 END AS sep, CASE WHEN mm = '10' THEN tot ELSE 0 END AS oct, CASE WHEN mm = '11' THEN tot ELSE 0 END AS nov, CASE WHEN mm = '12' THEN tot ELSE 0 END AS DEC, mm, tot AS total FROM (SELECT TO_CHAR (CREATION_DATE, 'MM') mm, COUNT (1) AS tot FROM applsys.fnd_user@MAC1PROD_APPLSYS.MACSTEEL.COM WHERE creation_date > to_date('01-01-2010','DD-MM-YYYY') GROUP BY ROLLUP (TO_CHAR (CREATION_DATE, 'MM')) ORDER BY 1) a), t2 AS (SELECT SUM (jan) jan, SUM (feb) feb, SUM (mar) mar, SUM (apr) apr, SUM (may) may, SUM (jun) jun, SUM (jul) jul, SUM (aug) aug, SUM (sep) sep, SUM (oct) oct, SUM (nov) nov, SUM (DEC) DEC, SUM (CASE when mm IS NULL THEN total ELSE 0 END) AS total FROM t1) SELECT jan, feb, mar, apr, may, jun, jul, aug, sep, oct, nov, dec, total FROM t1 UNION ALL SELECT jan, feb, mar, apr, may, jun, jul, aug, sep, oct, nov, dec, total FROM t2;
I would also add a total column as in this example:JAN, FEB, MAR, APR, MAY, JUN, JUL, AUG, SEP, OCT, NOV, DEC,TOTAL ----,----,----,----,----,----,----,----,----,----,----,----,----- 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2 0, 0, 18, 0, 0, 0, 0, 0, 0, 0, 0, 0, 18 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 21 2, 0, 18, 1, 0, 0, 0, 0, 0, 0, 0, 0, 21
JAN, FEB, MAR, APR, MAY, JUNE, JULY, AUG, SEP, OCT, NOV, DEC, TOTAL
------------------------------------,----,----,----,----,----,----,----,----,----,----,----,----,-----
4, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 6
0, 3, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 4
TOTAL 4, 3, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 10
Any help will be much appreciated.
Thank youLike this?
SELECT NVL(TO_CHAR(extract(YEAR FROM creation_date)),'TOTAL') CREATION_YEAR, SUM(DECODE(extract (MONTH FROM creation_date),1,1,0)) JAN, SUM(DECODE(extract (MONTH FROM creation_date),2,1,0)) FEB, SUM(DECODE(extract (MONTH FROM creation_date),3,1,0)) MAR, SUM(DECODE(extract (MONTH FROM creation_date),4,1,0)) APR, SUM(DECODE(extract (MONTH FROM creation_date),5,1,0)) MAY, SUM(DECODE(extract (MONTH FROM creation_date),6,1,0)) JUN, SUM(DECODE(extract (MONTH FROM creation_date),7,1,0)) JUL, SUM(DECODE(extract (MONTH FROM creation_date),8,1,0)) AUG, SUM(DECODE(extract (MONTH FROM creation_date),9,1,0)) SEP, SUM(DECODE(extract (MONTH FROM creation_date),10,1,0)) OCT, SUM(DECODE(extract (MONTH FROM creation_date),11,1,0)) NOV, SUM(DECODE(extract (MONTH FROM creation_date),12,1,0)) DEC, SUM(1) total FROM applsys.fnd_user@MAC1PROD_APPLSYS.MACSTEEL.COM GROUP BY rollup(extract(YEAR FROM creation_date)) CREATION_YEAR JAN FEB MAR APR MAY JUN JUL AUG SEP OCT NOV DEC TOTAL ---------------------------------------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- 2009 0 0 0 0 0 0 0 0 0 0 3 0 3 2010 0 0 2 0 0 0 0 0 0 0 0 0 2 TOTAL 0 0 2 0 0 0 0 0 0 0 3 0 5
Check on pivot, if you have 11g
http://www.orafaq.com/wiki/pivot
SELECT NVL(TO_CHAR(extract(YEAR FROM creation_date)),'TOTAL') Creation_Year, NVL(SUM(JAN),0) JAN, NVL(SUM(FEB),0) FEB, NVL(SUM(MAR),0) MAR , NVL(SUM(APR),0) APR, NVL(SUM(MAY),0) MAY, NVL(SUM(JUN),0) JUN, NVL(SUM(JUL),0) JUL, NVL(SUM(AUG),0) AUG, NVL(SUM(SEP),0) SEP, NVL(SUM(OCT),0) OCT, NVL(SUM(NOV),0) NOV, NVL(SUM(DEC),0) DEC,SUM(1) Total FROM (SELECT creation_date,extract(MONTH FROM creation_date) cr_mon FROM applsys.fnd_user@MAC1PROD_APPLSYS.MACSTEEL.COM) pivot (SUM(1) FOR cr_mon IN (1 JAN,2 FEB,3 MAR,4 APR,5 MAY,6 JUN,7 JUL,8 AUG,9 SEP,10 OCT,11 NOV,12 DEC) ) GROUP BY rollup(extract( YEAR FROM CREATION_date)) CREATION_YEAR JAN FEB MAR APR MAY JUN JUL AUG SEP OCT NOV DEC TOTAL ---------------------------------------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- 2009 0 0 0 0 0 0 0 0 0 0 3 0 3 2010 0 0 2 0 0 0 0 0 0 0 0 0 2 TOTAL 0 0 2 0 0 0 0 0 0 0 3 0 5
Kind regards
PrazyPublished by: Prazy on April 22, 2010 12:38
Extra Pivot method -
Mr President.
Me using ALTs as my skin by default as follows
<?xml version="1.0" encoding="UTF-8"?> <trinidad-config xmlns="http://myfaces.apache.org/trinidad/config"> <skin-family>alta</skin-family> <skin-version>default</skin-version> </trinidad-config>
Now, I want to change the width and height of the table added to a page jsff.
How to change the source code of this file skin.
Concerning
Dear all!
I get the solution to my question how to change the default alta of the skin as follows:
altaSkin v1 altaSkin.desktop altaSkin alta-v1.desktop org.apache.myfaces.trinidad.desktop skins/ADFSkin/ADFSkin.css altaSkin.desktop altaSkin alta.desktop org.apache.myfaces.trinidad.desktop skins/ADFSkin/ADFSkin.css ash.view.skinBundle If any body finds it useful and correct answer if you please points to fix in my favor.
Concerning
-
How to change the PCTFREE parameter for an existing table
How to change the PCTFREE parameter for an existing table?
Guys can you help me pleaseHello
Of course it is possible.
In this case you would export the table from the database (using old style exp)
Start the import with the index_file option to generate the table/index instructions
Modify the file created and updated the PCTFREE and remove any that need to be performed (default, if I remember correctly, he comments on the statements of the Index)
Run the file for the table and the index created
After that start the import with the option "ignore = yes".Make sure that you export only this particular table using "tables =
Also in importing the "ignore = yes" will also be important data that still exists.In my view, however, this is not what you want to do. It's more complex, sensitive failure and the table should be deleted, so users are affected unnecessarily long.
Success!
FJFranken -
How to change the default color for tables/pivot tables
Can someone share how to change the default font color or background for tables and PivotTables? In my view, there is a CSS or XML setting I need to change.
It is difficult to read the text when negative numbers are RED and the overall totals have a default NAVY background fill. I'm trying to find out how to change the color of these without doing it manually to each report.
Thank you.Jin
For pivot Table
Go to OracleBI\oc4j_bi\j2ee\home\applications\analytics\analytics\res\s_oracle10\b_mozilla_4\views.css
Change the PivotTable section code
For table veiw
Go to OracleBI\oc4j_bi\j2ee\home\applications\analytics\analytics\res\s_oracle10\b_mozilla_4\views.css
Change the section of the Table
PS:take backup your original file before you edit any css file. Don't forget to give the points/close the thread
Thank you
saichand.v -
How to change the user defined objects in oracle
Hi all
Can someone tell me how to change objects defined by the user in oracle.
Thank you
Prakash PYou have created other objects that depend on your type? If so, according to the error message, you can use the keyword of the WATERFALL to change dependent objects
SQL> ed Wrote file afiedt.buf 1 CREATE OR REPLACE TYPE phone_t AS OBJECT ( 2 a_code CHAR(3), 3 p_number CHAR(8), 4* extension VARCHAR2(5)) ; SQL> / Type created. SQL> create type phone_arr as table of phone_t; 2 / Type created. SQL> alter type phone_t 2 modify attribute extension varchar2(10) 3 cascade; Type altered.
Justin
-
Try to understand the error of the changing table
Hi all
The error I get triggered only when only the table in question is updated? How bout when he got inserted or deleted?
Assume that the following code creates TRGGER and runs the UPDATE and INSERT statements:
The mutation of error raised when I tried to update the table but does not when a row is inserted.CREATE OR REPLACE TRIGGER section_biu BEFORE INSERT OR UPDATE ON section FOR EACH ROW DECLARE v_total NUMBER; v_name VARCHAR2(30); BEGIN SELECT COUNT(*) INTO v_total FROM section WHERE instructor_id = :NEW.instructor_id; IF v_total >= 10 THEN SELECT first_name||' '||last_name INTO v_name FROM instructor WHERE instructor_id = :NEW.instructor_id; RAISE_APPLICATION_ERROR(-20000, 'Instructor, '||v_name||', is overbooked'); END IF; EXCEPTION WHEN NO_DATA_FOUND THEN RAISE_APPLICATION_ERROR(-20001, 'This is not a valid instructor'); END; Trigger created. SQL> update section set instructor_id=101 where section_id=80; update section set instructor_id=101 where section_id=80 * ERROR at line 1: ORA-04091: table STUDENT.SECTION is mutating, trigger/function may not see it ORA-06512: at "STUDENT.SECTION_BIU", line 6 ORA-04088: error during execution of trigger 'STUDENT.SECTION_BIU' SQL> insert into section (section_id,course_no,section_no,instructor_id,created_by,created_date,modified_by,modified_date) values (200,10,1,108,user,sysdate,user,sysdate); 1 row created.
Is it possible to trigger the transfer error in running the INSERT statement without changing the trigger? Are there any other conditions that may trigger the error even without changing the trigger?
Best regards
TA.
Published by: debonair Valerie on May 5, 2011 02:17The insert is a single row insert, and the database knows - it wiill do not suffer from any problem of changing table.
However, update may or may not be dealing with many lines, so could have the question.
If you did a multi line insertion, or even one that could potentially be multi line, then you get the same error.Carl
-
How to change the default value of a parameter and LOV attached to a parameter
Hi all
I'm new to the discoverer reports and I need the following tasks:
1. the need to change the SQL of a discoverer report
2. need to change the default value of the parameter (from constant for the current month). In the discoverer more responsibility when I open the report and go to tools > > setting > > edit
I can see the value of the default constant is given. On the right side there is a drop down that says "Value". I suppose that if I put a SQL as default, I need to change the drop-down list for sql or something and then put the code SQL. Problem is the menu drop-down is froezen and I can't change it.
Even if I try to create a new report parameter.
3 need to change the LOV associated with the element on which is based the setting.
I have the discoverer more responsibility to myself and did not have the discoverer administrator (as forms 6i developer desktop tool) tool. My questions are:
1. can I modify the SQL query using discoverer and responsibility or do I discoverer Administrator tool?
2. any help on how to get the default value of an SQL query? Currently, it is a constant value.
3. is there a way to understand is that the LOV is made of the constant values fixed (as a set of values independednt) or they are read in a SQL (value valid table sets)?
Solutions pointers will be greatly appreciated!
Thanks in advance.
Thank you and best regards,
ShashankIt is not possible to use a default calculation for a paraeter
-
How to run a SQL string to a procedure of forms?
Hello
first the background. I have a Varchar2 column in a Table with a SQL string.
Now I want to read this chain in forms and run the SQL statement - but I don't know how.
This is the SQL string:
Select the country from p_1 from countries where country_nr = p_2
P_1 and p_2 are Variables in the procedure of forms.Most people forget that groups Records are excellent tools for dynamic queries like this. Search for Populate_group_with_query.
Only you need to change your sql, it is not in the sentence, like this:
Select the country as P_1
country
where country_nr = p_2
and p_3 = p_3
and p_4 = p_4Select name as P_1
of the customer
where customer_nr = p_2
and country_nr = p_3
and p_4 = p_4Your rec group would have a single column, P_1, where the data would be accessible after the query. Get_group_char_cell allows you to retrieve the value of P_1. I don't know, but you should not "AS P_1" expression in the select, as long as you have created the record group initially with a specific column name.
The only thing that is not clear, however, is your use of variables in the where clause. You can either hardcode the literal values in the SQL string, like this:
'where country_nr = ''123'' and...'
Note as you build your text string SQL, you use two apostrophes instead of one, given that pl/sql uses the apostrophe of beginning and end of the string.
Or alternatively, you can use bind variables for your where the variables paragraph as follows:
where customer_nr = :Parameter.var_2
and country_nr = :Parameter.var_3Then, you can move a value in the: parameter values before completing the Group rec. You can use elements in a block of control rather than the settings, too.
Here is an example of using dynamic query in a record group: Re: dynamic query
-
How to change values to text using VBscript
I have a model that contains the part of text-value 6 and a table. I figured out how to import the string table to the table, but I couldn't find how to change my text values. Below, you can see my table of text values.
I'll send this table to DIAdem report function. Could you please help me how to change my text values in TDR using VBscript.
Maybe you are looking for
-
No search function since ff 35
Downloaded ff 35 and now my search funtion won't work.
-
I have a partitura with 18 instruments. Problem is that only 16 of the sheed. How can I vertically down the music?
-
Satellite S2450-202 - multicolored flashing pixels
Hello worldI have big problems with my Satellite S2450-202. Now it hangs whenever he feels like it, sometimes after a few minutes, sometimes after an hour.When I turn it on it starts as normal and load my normal desktop page then without warning the
-
Restore all items in Recycle Bin issue
Hi, I have a problem. II had deleted a bunch of pictures from the library of a new camera from panasonic photofunsmart 6.0 software. When I realized that the photos were missing in the original files on my hard drive, I made the point all of "restore
-
Install Cisco Anyconnect failed
I tried to installed Anyconnect to a computer for VPN access but failed with a rating below. I read and impossible to get anything out of it. Can anyone help?