ORA-00957 double Materialized View name column (UPDATE: do not answer)
Hi all. I get this error when you try to create a materialized view. I have several other MV I've created without problem, but I can not find the catch here, can anyone help?. I can't find the duplicates. The only double I was although entered in the function Pipeline_Code and the column being called a column. To check, I have renamed the latter and still make me this question.
Any help would be greatly appreciated.
Thank you!
The request is below:
CREATE THE MV_TEST_STATION MATERIALIZED VIEW
COMPLETE REFRESH
START WITH TO_DATE (20-SEP-2013 00:00:00 "," dd-mon-yyyy hh24:mi:ss')
NEXT (SYSDATE + 12/24)
AS
SELECT T.TEST_STATION_ID,
-(SELECT TEST_STATION_TYPE. DESCRIPTION
-FROM TEST_STATION_TYPE
-WHERE TEST_STATION. TEST_STATION_TYPE =
-TEST_STATION_TYPE. TEST_STATION_TYPE)
-AS TEST_STATION_TYPE,
TST. DESCRIPTION AS TEST_STATION_TYPE,
T.SURVEY,
T.STATUS,
T.STATION,
() F_TRUESTATION2
T.STATION,
T.PIPELINE_CODE,
F_REROUTE_CODE (T.STATION,
T.PIPELINE_CODE))
AS TRUE_STATION,
T.REQUIRED,
--(SÉLECTIONNEZ PIPELINE_CODES.) PIPELINE_CODE_DESCRIPTION
-FROM PIPELINE_CODES
-WHERE TEST_STATION. PIPELINE_CODE = PIPELINE_CODES. PIPELINE_CODE)
- AS PIPELINE_CODE.
PC. PIPELINE_CODE_DESCRIPTION AS PC_PIPELINE_CODE,
T.INSTALL_DATE,
COMMENT BY T.FUNCTIONAL,
TSR. TEST_STATION_READING_ID,
TSR. TEST_DATE,
TSR. SURVEYOR,
TSR. ON_VOLTS,
TSR. ON_BG,
TSR. ON_AG,
TSR. METER_UTC,
TSR. METER_ID,
TSR. IO_BG,
TSR. IO_AG,
TSR. INSTANT_OFF_VOLTS,
TSR. FUNCTIONAL_DAMAGE_OUT,
TSR. FUNCTIONAL_DAMAGE_IN,
TSR. COSEMETIC_DAMAGE_OUT,
TSR. COSEMETIC_DAMAGE_IN,
TSR.COMMENTS,
TSR. CASING_ON,
TSR. CASING_OFF,
TSR. CASING,
TSR. CALIBRATION_DUE_DATE,
TSR. ANODE_AMPS_ON,
TSR. ANODE_AMPS_OFF,
TSR. ANODE
OF TEST_STATION T
INNER JOIN TEST_STATION_TYPE ON T.TEST_STATION_TYPE = TST TST. TEST_STATION_TYPE
INNER JOIN PIPELINE_CODES ON T.PIPELINE_CODE = PC PC. PIPELINE_CODE
INNER JOIN TEST_STATION_READING ON T.TEST_STATION_ID = TSR TSR. TEST_STATION_ID
WHERE T.TEST_STATION_ID = TSR. TEST_STATION_ID
You have two COMMENTS:
COMMENT BY T.FUNCTIONAL,
...
TSR.COMMENTS,
Tags: Database
Similar Questions
-
Security for PowerPoint Viewer 2003 (KB969615) update installs not and displays "error code 4397."
Please help with installation. After a short period of time, I get a message that there is a problem and it will stop
Hello
see if that helps to fix:
How to reset the Windows Update components?
There is also an automatic 'fix - it' here
http://support.Microsoft.com/kb/971058
Also, try to put the KB numbers in the search on the link below and then manually download the
http://www.Microsoft.com/downloads/en/default.aspx
or repost in the correct windows update forum
http://answers.Microsoft.com/en-us/Windows/Forum/windows_vista-windows_update?page=1&tab=all
-
need help on the name of the column in double materialized view ORA-00957
I have a query, long enough and several (8ways) joins.
When I run it as a SQL query, it is fine.
When I add create materialized, view myViewName it errors with
ORA-00957: duplicate column name.
How is there is no problem when executing the SQL statement, and how to fix this?
Thank you.Hello
Columns in a query do not need a unique name:
SELECT dummy , dummy FROM dual; D D - - X X
At least not in SQL * Plus; other front ends might oppose it.
In previous versions of Oracle, subqueries (such as online views) does not need to have unique names, but you've got an error if you tried to reference a non-unique column (and it is unnecessary to have the column if never reference you).Columns in a table or a view need unique names:
CREATE OR REPLACE VIEW view_x AS SELECT dummy , dummy FROM dual; , dummy * ERROR at line 4: ORA-00957: duplicate column name
-
Rewrite Materialized View for quick update
Hi guys,.
Experts here in rewriting a mv so it will update soon?
I used
Run DBMS_MVIEW. EXPLAIN_MVIEW ("ESB_KLANT_FAST_MV", 2);
and what it advice:
* MV is not updatable quickly even with the merger of view
* display or a subquery in LIST not supported for this type of MV
There are mv-logs on each detailed with sequence, tables rowid and including the new values.
but it will not update quickly.
The PB is 9.2 so no SQL Access Advisor is available.
The mv is built as below:
CREATE A MATERIALIZED VIEW "APPS". "" ESB_KLANT_FAST_MV "ORGANIZATION BUNCH PCTFREE 0 PCTUSED 40 INITRANS 1 MAXTRANS 255 COMPRESS LOGGING STORAGE (163840 NEXT 163840 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 USER_TABLES DEFAULT INITIAL VALUE) TABLESPACE"OA_S_DATA1"CACHE BUILD WITH THE HELP OF INDEX ON REQUEST COMPLETE IMMEDIATE UPDATING
WITH ROWID USING DEFAULT LOCAL ROLLBACK SEGMENT ENABLE QUERY REWRITE AS
SELECT CLIENT_RELATIENUMMER per.party_number,
rel.party_id CLIENT_REL_PARTY_ID,
KLT.account_number CLIENT_ACCOUNT_NUMMER,
Trim (per.party_name) NAAM,
To_char(Prof.date_of_birth, 'DD-mm-YYYY') GEBOORTE_DATUM,
Loc.Address1 ADRES,
Loc.Postal_Code POSTAL code,
Loc.City SPEND,
Decode (Upper (Prof.Gender), ', ', 'F', 'V', 'V', 'V', NULL) GESLACHT,.
telnr.raw_phone_number telnr,
Mobiel.raw_phone_number mobiel,
EMAIL_ADRES.Email_Address EMAIL_ADRES,
Prof.person_identifier BSN_NUMMER,
ACC.account_number DEBITEURNUMMER,
org.party_name DEBITEURNAAM,
------------------------------------------------------------------------------
ACC.account_number,
Prof.person_identifier,
per.person_last_name,
Prof.date_of_birth,
Loc.Postal_Code,
Loc.Address1,
Loc.City
OF hz_parties by,
hz_party_sites party_site,
hz_locations loc,
hz_person_profiles teacher,
hz_party_relationships rel,
hz_parties org,
hz_cust_accounts VAC,
hz_cust_accounts klt,
hz_party_relationships rel1,
hz_parties org1,
hz_contact_points TELNR,
hz_contact_points MOBIEL,
hz_contact_points EMAIL_ADRES
WHERE 1 = 1
AND UPPER (per.party_type) = "PERSON".
AND upper (per.status) = "A".
AND upper (rel.party_relationship_type) = "CUSTOMER_OF".
AND rel.subject_id = per.party_id
AND upper (rel.status) = "A".
AND org.party_id = rel.object_id
AND UPPER (org.party_type) = "ORGANIZATION".
AND upper (org.status) = "A".
AND acc.party_id = org.party_id
AND upper (acc.status) = "A".
AND klt.party_id (+) = per.party_id
AND upper (klt.status (+)) = "A".
AND party_site.party_id = per.party_id
AND upper (party_site.status) = "A".
AND upper (party_site.identifying_address_flag) = "Y".
AND loc.location_id = party_site.location_id
AND UPPER (loc.address1) LIKE '% '.
AND SUPERIOR (NVL (loc.city, ' ')) LIKE '% '.
AND prof.party_id (+) = per.party_id
AND prof.effective_end_date IS NULL
AND TELNR.owner_table_id (+) = per.party_id
AND MOBIEL.owner_table_id (+) = per.party_id
AND EMAIL_ADRES.owner_table_id (+) = per.party_id
AND upper (rel1.party_relationship_type) = "CUSTOMER_OF".
AND upper (rel1.status) = "A".
AND rel1.subject_id = per.party_id
AND org1.party_id = rel1.object_id
AND UPPER (org1.party_type) = "ORGANIZATION".
AND upper (org1.status) = "A".
AND upper (TELNR.owner_table_name) = "HZ_PARTIES".
AND upper (TELNR.primary_flag) = "Y".
AND upper (TELNR.contact_point_type) = "PHONE".
AND upper (TELNR.phone_line_type) = "GEN."
AND upper (TELNR.status) = "A".
AND upper (MOBIEL.owner_table_name) = "HZ_PARTIES".
AND upper (MOBIEL.primary_flag) = "Y".
AND upper (MOBIEL.contact_point_type) = "PHONE".
AND upper (MOBIEL.phone_line_type) = "MOBILE".
AND upper (MOBIEL.status) = "A".
AND upper (EMAIL_ADRES.owner_table_name) = "HZ_PARTIES".
AND upper (EMAIL_ADRES.primary_flag) = "Y".
AND upper (EMAIL_ADRES.contact_point_type) = "E-MAIL address"
AND upper (EMAIL_ADRES.status) = "A".Check out this link. I hope it helps.
link: [http://download.oracle.com/docs/cd/B10501_01/server.920/a96567/repmview.htm]
Mike was soon
-
Security for Microsoft Office PowerPoint Viewer 2003 (KB956500) update is not installed
XP Pro version: using onlyPowerPoint Viewer. KB956500 refuses to install after many attempts. The download for this update Message will not go away. Should I really this update? I'm tired.
TIP: Uninstall the PowerPoint 2003 Viewer & replace it with PowerPoint Viewer 2007. ~ Robear Dyer (PA Bear) ~ MS MVP (that is to say, mail, security, Windows & Update Services) since 2002 ~ WARNING: MS MVPs represent or work for Microsoft
-
For the past 3 weeks or more, when I go to iCloud.com and check my photos - I don't see that
VIEW OF THE TIMES. When I click on display ALBUMS - I get the error message that this app is not responding.
choices are to reload or to send data to APPLE.
Senior APPLE sent cases up to genius and I got no words for almost 3 weeks.
I got EL CAPITAN on my MACBOOK AIR. It's very frustrating and I backed up all my photos on external
hard drive and PHOTOS of CLOUD from AMAZON (which works fine).
I wonder if anyone has the same problem. I'm also disturbed that APPLE chose to have a TIMES view.
Why they choose important Moments for me? I don't even need this category - I prefer to organize my photos me - in ALBUMS and I have a FAVORITE album.
During the last 3 weeks or more, when I go to iCloud.com
OK - what exactly happens using Photos on your Mac (not iCloud.com)?
LN
-
[4.0.1] bug in Data Import: ORA-00957: duplicate column name
I found a serious problem in the import feature in 4.0.1 data as well as in the old version 3.2. It generates an INSERT script with duplicate column names, so that I can't use this feature at all. This is very critical for me. I don't see that I did anything wrong. It does not appear that the DB table columns are optional or required, or if I have NULL data in the file to import the required columns or not important.
Here is a stripped down test cases:
CREATE TABLE IMPORT_DATA
(
ACCOUNT VARCHAR2 (25 BYTES),
NUMBER AMOUNT (30.3).
CUSTOMER VARCHAR2 (25 BYTES)
COST_CENTER VARCHAR2 (25 BYTES),
DESCRIPTION VARCHAR2 (255 BYTES),
THE PERIOD NUMBER (15),
NUMBER OF AWARDS (30.8).
PROJECT VARCHAR2 (25 BYTES)
ID_RESSOURCE VARCHAR2 (25 BYTES),
TOTAL_HRS COMP (30.8).
TRANS_ID COMP (30.3).
VERSION VARCHAR2 (25 BYTES),
NUMBER OF VOLUME_FLAG (15),
WORKORDER VARCHAR2 (25 BYTES)
);
There are examples of input data with a single line (Excel CSV/separator with ";" as separator). It doesn't matter that I have import this as CSV/delimited or as original XLSX file, the error still occurs.
COST_CENTER; PROJECT; ID_RESSOURCE; WORKORDER; VERSION; ACCOUNT; VOLUME_FLAG; TOTAL_HOURS; PRICE; AMOUNT; PERIOD_FROM; PERIOD_TO; DESCRIPTION; TRANS_ID; CUSTOMER
Z4; D425Z4; RC 8901; 0; 0; 0; 0.00; 201004; 201004; TestData; -118; Z4
The import script generated is:
SET DEFINE OFF
-As line 1 non been einfügen
-ORA-00957 double column name:
Line - 1
INSERT INTO IMPORT_DATA (COST_CENTER, PROJECT, id_ressource, WORKORDER, VERSION, ACCOUNT, VOLUME_FLAG, ACCOUNT, PRICE, QUANTITY, ACCOUNT, ACCOUNT, DESCRIPTION, TRANS_ID, CUSTOMER) VALUES ("Z4", "D425Z4", ",", "RC", '8901' 0,0 '0', 0.0, 0.0, '201004', '201004', "Testdata",-118.0, "Z4");
and as you can see, it has the column AMOUNT several times.
Help!
Concerning
Peter
What you have on the step 3 of 5 of the wizard when you set the columns?
It seems you have more values on your input string you have columns of your table.
-
Materialized view automatically refresh? If the updating of the means how?
Materialized view refresh automatically? If the updating of the means how?
It is expected is not to ask questions of the basic documentation.
Refresh Options
When you define a materialized view, you can specify three update options: how to refresh, what kind of update and can trust constraints be used. If not specified, default values are considered as
ON
DEMAND
,FORCE
, andENFORCED
forced respectively.The two execution modes are
ON
COMMIT
andON
DEMAND
. According to the materialized view, you create, some options may be unavailable. Update modes are described in table 8-4 .Table 8-4 Modes of discount
Refresh the Mode Description ON COMMIT
Refresh product automatically when a transaction which changed one of the paintings of the materialized view's retail is committed. This can be specified as the materialized view is quickly updatable (in other words, no complex). The
ON
COMMIT
privilege is required to use this mode.ON DEMAND
Refresh occurs when a user manually executes one of the procedures available refresh contained in the
DBMS_MVIEW
package (REFRESH
,REFRESH_ALL_MVIEWS
,REFRESH_DEPENDENT
).http://docs.Oracle.com/CD/B28359_01/server.111/b28313/basicmv.htm#i1006193
-
Is it possible to limit registration of deletion in the MATERIALIZED VIEW UPDATE?
Hello
I have materialized view can be updated and I want to just limit the functionality of record deletion on this point of view.
that is, the user should update the view but not able to delete the records.
Is it possible if yes then please describe the steps.
Kind regards
Kam.If your point of view materialzed is editable, write a trigger and throw an exception on delete.
for triggers on views materialzed see...
http://asktom.Oracle.com/pls/asktom/f?p=100:11:0:P11_QUESTION_ID:672989600346945045
-
Experts,
I'm trying to create a YOUNG refreshable ON COMMIT MV (xyz) using a table (circuit) and quickly updateable on validation MV (abc), but get an error:
SQL error: ORA-12054: cannot set the attribute ON COMMIT refresh for the materialized view
12054 00000 - "cannot set the refresh attribute COMMIT for the materialized view.
* Cause: The materialized view did not meet the requirements for update to
moment of validation.
* Action: Specify only valid options.
1] MV abc
= MV abc defined as below =.CREATE MATERIALIZED view abc_MV
Immediate CONSTRUCTION
REFRESH QUICKLY YOU COMMIT using constraints of trust
WITH ROWID AS SELECT n.*,.
n.ROWID noderowid
node n
where n.nodetype in (1610000069,1610007267);
-Above works OK and MV connect you on table node is created successfully
=====================================================
[ 2] Circuit Board
======================================================
CREATE MATERIALIZED VIEW LOG ON Cramer.Circuit WITH SEQUENCE, ROWID ( ) -all columns of table ofcircut parentheses
INCLUDING THE NEW VALUES;
-More top works OK and MV connect you on table circuit is created successfully
======================================================
[3] trying to create MV xyz
======================================================
CREATE MATERIALIZED VIEW LOG ON cramer.abc_MV WITH SEQUENCE, ROWID ( ) -all columns of abc_MV brackets
INCLUDING THE NEW VALUES;
-Above works OK and log on ABC MV MV gets created successfully
-Problematic step below
Xyz_MV CREATE MATERIALIZED VIEW
IMMEDIATE CONSTRUCTION
REFRESH QUICKLY YOU COMMIT using constraints of trust
AS
SELECT c., c.rowid circuit_rowid, n.rowid tr_rowid
the circuit c, abc_mv n
where circuit2startnode = n.nodeid
and c.rpplanId = n.rpplanId;
==========================================================Clues on how to solve this problem and make quickly updatable ON Commit MV xyz
Thanks in advance.
Chanchal,
If you can read my original post carefully you may have noticed that all these restrictions will not apply in my case.
All,
In any case I found the solution to my problem.
There are a few additional restrictions for materialized views multilayer
Additional Restrictions for master materialized views
The following types of materialized views may not be masters of editable materialized views:
ROWID
materialized views- Complex materialized views
- Read-only materialized views
I've updated the underlying MV abc below and everything worked like a charm
CREATE MATERIALIZED view abc_MV
Immediate CONSTRUCTION
REFRESH QUICKLY YOU COMMIT using constraints of trust
IN SELECT
n.*, n.rowid noderowid, nt.rowid nodetyperowid
the node n, nodetype_m nt
where n.node2nodetype = nt.nodetypeid
and nt.nodetypeid in (1610000069,1610007267);
Note: To ADD a join without which I was getting error below (although had primary key on the table of the node)
SQL error: ORA-23415: materialized view log for "NODE" does not save the primary key
23415 00000 - "view the log for materialized \"%s\".\"%s\"does not save the primary key.
* Cause: A primary key materialized view is refreshed quickly, but the
The materialized view log does not record the primary key information.
* Action: Use CREATING MATERIALIZED VIEW LOG... Command to add a PRIMARY KEY to
start recording of the primary key information in the materialized view
Newspaper.
-
Hi all
I have problem with Mview when you perform dml operations.
I'm trying to insert or update on the materialized view, then I am getting below error.
ORA-01732: operation non-legal data manipulation on this point of view
Please can you me cant we do on the materialized view dml operations?
My version of DB is 10g.
DESC SUNITHA; Name Null? Type NAME VARCHAR2(10) ID NOT NULL NUMBER(2)
I'm trying to insert into maviewcreate MATERIALIZED view maview as select * from sunitha;
Please notify.insert into maview values('c',4); ORA-01732: data manipulation operation not legal on this view
Thank you
Miriam.Here is an excerpt of the document.
Updatable Materialized Views You can make a materialized view updatable during creation by including the FOR UPDATE clause or enabling the equivalent option in the Replication Management tool. For changes made to an updatable materialized view to be pushed back to the master during refresh, the updatable materialized view must belong to a materialized view group. Updatable materialized views enable you to decrease the load on master sites because users can make changes to the data at the materialized view site. The following is an example of an updatable materialized view: CREATE MATERIALIZED VIEW hr.departments FOR UPDATE AS SELECT * FROM [email protected]; The following statement creates a materialized view group: BEGIN DBMS_REPCAT.CREATE_MVIEW_REPGROUP ( gname => 'hr_repg', master => 'orc1.world', propagation_mode => 'ASYNCHRONOUS'); END; / The following statement adds the hr.departments materialized view to the materialized view group, making the materialized view updatable: BEGIN DBMS_REPCAT.CREATE_MVIEW_REPOBJECT ( gname => 'hr_repg', sname => 'hr', oname => 'departments', type => 'SNAPSHOT', min_communication => TRUE); END; / You can also use the Replication Management tool to create a materialized view group and add a materialized view to it.
-
Problem with the materialized view
Hello
I encountered a problem...
I have a materialized view which I update via a button in my application. I used the following code to do this:
DBMS_REFRESH. Refresh (the "SCHEME".) "MY_MV" ');
As you can see the pattern, I have included in the appeal, and which worked fine until now.
We have now 2 apps. in the same PB. Its actually the same app... Only for the development and the other for testing. The app development uses a different schema and this effect cannot use the call above, it seems.
I offcause want to ommit using the schema in the call, because otherwise I would have to change every time I move to App Development to test the app. But when I ommit it I get the following error:
ORA-23404: refresh, group "APEX_PUBLIC_USER". "' MY_MV ' does not exist
How to solve this?
And another thing... My selection around the application does not use the scheme, then how does apex know what sound scheme when his choice, but he does not know when its doing a dbms_refresh?
Hope someone is smarter than me :)
BjarkeHello
Try this waydeclare my_schema varchar2(10); begin select owner into my_schema from apex_applications where application_id=:APP_ID; dbms_refresh.refresh( my_schema || '.'|| 'MY_MV'); end;
CITY
-
Materialized views Refresh method and refresh option
Hi Experts,
According to the docs, If the MV contains the following, MV is considered complex. I wonder is there any view data dictionary that indicates the type of MV? Because is very easy to the candidate a complex type mv. Because many queries contains the properties below.
http://docs.Oracle.com/CD/B28359_01/server.111/b28326/repmview.htm#i52501
http://docs.Oracle.com/CD/B28359_01/server.111/b28313/basicmv.htm
Specifically, a materialized view is considered complex if the materialized view definition query contains:
- A
CONNECT
BY
clause - An
INTERSECT
,MINUS
, orUNION
ALL
operation - he
DISTINCT
orUNIQUE
keyword - In some cases, an aggregate function, although it is possible to have an aggregation function in the query definition and always have a simple materialized view
- In some cases, joins other than those in a subquery, although it is possible to have joins in the definition to interrogate and still have a simple materialized view
- In some cases, a
UNION
operation
After that I kept going to read that I learned that when a VM is created, the refresh mode is specified according to the type of the MV. That means, using ON-DEMAND refresh mode is widespread. The documentation mentions that there isa also refresh option. My question is, is it possible to specify
ON REQUEST and FAST together?
Also, what are the differences between FULL and FAST. Ends truncate the table and fill it up again?
Refresh product automatically when a transaction which changed one of the paintings of the materialized view's retail is committed. This can be specified as the materialized view is quickly updatable (in other words, not complex). The
ON
COMMIT
privilege is required to use this mode.Refresh occurs when a user manually executes one of the procedures available refresh contained in the
DBMS_MVIEW
package (REFRESH
,REFRESH_ALL_MVIEWS
,REFRESH_DEPENDENT
).Refreshes and recalculating the materialized view query definition.
Applies incremental changes to refresh the materialized view using the information recorded in the papers of the materialized view, or an SQL * Loader direct-path access or a partition maintenance operation.
Applies
FAST
update if possible; otherwise, it appliesCOMPLETE
Refresh.Indicates that the materialized view will not be updated with updating mechanisms.
Select * from version of v$.
Oracle Database 11 g Release 11.2.0.4.0 - 64 bit Production
Thank you
Çaglar wrote:
...
Also, what are the differences between FULL and FAST. Ends truncate the table and fill it up again?
...
Thank you
I just want to answer the truncated question. Seems that nobody covered that yet.
Answer: It depends.
If you do a full refresh, then the default is to use ATOMIC_REFRESH = TRUE.
This means that the update is done via an insert, delete , and ... Select.
You can change it to ATOMIC_REFRESH = FALSE (parameter dbms_mview.refresh).
This means that is a TRUNCATE and insert a ... Select with APPEND peak (path direct insert).
Refresh if Atomic = FALSE is considerably faster than the default. Also way less Archives of newspapers are written.
The downside is however that, during the update the MV is empty, is no longer an atomar operation!
See also Oracle documentation: http://docs.oracle.com/cd/B28359_01/appdev.111/b28419/d_mview.htm#i997194
- A
-
utlu112i_8.SQL: be refreshed materialized views
Document 884522.1 said to run the script utlu112i_8.sql on my version 11 GR 1 material Vision 12.1 data base, to prepare for the upgrade of GR 11, 2
The report indicates that it materialized views being updated is
I was checking document 1526264.1 which explains how to check if this action is busy and with all the details... but, all the SELECT statements return: no line selected.
And later, when I run utlu112i_8.sql again, he said: materialized views are being updated
What's not here?
In addition the report itself does not much tip how to solve the problem, how to fix the problem? Is the report correct?
You can see the
Doc - ID 1358698.1) Down -
Creating dynamic materialized views: insufficient Privileges?
Hi all
I am currently doing a procedure that will recreate materialized views as columns are deleted or added to a table by the selection of the user to the application level. I wrote the procedure, and it displays the correct syntax to create a materialized view. However once I pass this dynamic sql statement to be executed immediately, it fails, saying: I don't have sufficient privileges. I have sysdba grants on this user in my dev environment. What Miss me? Has it something to do with immediate execution and the privileges associated with the use that? Any help would be greatly appreciated!
Kind regards
TimSWithin a stored (by default) procedure DEFINER rights, only the privileges that are granted directly to the user, not those granted through a role as SYSDBA, are available.
-If you change the stored procedure to use the rights of the applicant, the privileges granted through a role are visible. However, this requires that the appellant, not the owner of the procedure has the permissions to create the materialized view.
-If you grant the CREATE MATERIALIZED VIEW privilege (and all other privileges your code requires) directly to the user, which would also solve the problem.Justin
Maybe you are looking for
-
I am trying to open MS C:\windows\system32\xpsviewer, currently running on MS XP Professional. Get an error message whenever I try to open XPS. The message reads "XPSViewer.exe has encountered a problem and needs to close. We are sorry for the inconv
-
I bought this HP 15 two d103tx three days ago, it came with free back with no driver. The dealer gave me the drivers in an external support. After purchase windows & installed all drivers except one. NVIDIA drivers keeps giving me the same error all
-
CTRL and alt does not when you select the picture to join
I'm not very techno and hope someone can help me find an answer... when trying to select multiple photos to attach to the e-mail, I used to use the CTRL and ALT keys to select several photos. This does not work for me now. Are there settings that I
-
My HP magic canvas does not open
I just bought a new HP Touchsmart 520-1047c and my HP Magic canvas keeps telling me service is disabled and open habit and to select an Aero theme or windows Standard color them what I did several times and it still used open
-
! I read the agreement but not where to put them right. assuming that as step 2 or 3. Help?