Error in MAT View Creation
I am getting an error in creating a mat view.
SQL> CREATE MATERIALIZED VIEW
2 MV1
3 as
4 select integration_id
5 from sbolap.w_org_d;
from zeus.w_org_d
ERROR at line 5:
ORA-00942: table or view does not exist
Here the zeus is the schema i am accessing. At present i am operating in Aegis schema. I have privileges to create Mat Views in my schema and Select privileges in zeus schema.
Am i missing some thing? Kindly Help.
I soved it. Actually we didnt have select privileges on proper and required objects.
Similar Messages
-
MAT View Creation Performance Issue
Hello Experts,
Below query is executing approximately in 1-3 sec.
select
COMMITMENT_ID,
FUNDING_RULE_ID,
reporting_year||'-'||reporting_period as RepPeriod,
GET_START_DAY_OF_PERIOD (FUNDING_RULE_ID, reporting_year, reporting_period) START_DAY_OF_PERIODt,
GET_END_DAY_OF_PERIOD(FUNDING_RULE_ID, reporting_year, reporting_period) END_DAY_OF_PERIOD
from
(select
COMMITMENT_ID,
FR_ID as FUNDING_RULE_ID,
COMT_START_DATE,
--COMT_TERMINATION_DATE,
GETREPYEARFROMDATE(COMT_START_DATE,FR_ID) as reporting_year,
GETREPORTINGPERIOD(to_char(COMT_START_DATE, 'mm') ,FR_ID) as reporting_period
from
select
COMMITMENT_ID,
COMT_START_DATE,
--COMT_TERMINATION_DATE,
COALESCE(CB_FUNDING_RULE_ID,NC_FUNDING_RULE_ID) FR_ID
from
(COMMITMENT_TABLE left outer join (CHILD_BENEFICIARY_TABLE left outer join FUNDING_RULE_TABLE a on
a.FUNDING_RULE_ID = CB_FUNDING_RULE_ID )
on COMT_BENEFICIARY_REF = CB_BENEFICIARY_REF
left outer join (NON_CHILD_BENEFICIARY_TABLE left outer join FUNDING_RULE_TABLE b on
b.FUNDING_RULE_ID = NC_FUNDING_RULE_ID)
on
COMT_BENEFICIARY_REF = NC_BENEFICIARY_REF)
The query is returning 4.5 lacks of rows.
I want to create a MAT view by using above query and refresh this on daily basis.
But the MAT view creation is taking more time near about 401sec (6.68min).
Why the MAT view is taking more time?
MAT_VIEW
CREATE MATERIALIZED VIEW "REP_PERIOD_START_END_DATE"
AS select
COMMITMENT_ID,
FUNDING_RULE_ID,
reporting_year||'-'||reporting_period as RepPeriod,
GET_START_DAY_OF_PERIOD (FUNDING_RULE_ID, reporting_year, reporting_period) START_DAY_OF_PERIODt,
GET_END_DAY_OF_PERIOD(FUNDING_RULE_ID, reporting_year, reporting_period) END_DAY_OF_PERIOD
from
(select
COMMITMENT_ID,
FR_ID as FUNDING_RULE_ID,
COMT_START_DATE,
--COMT_TERMINATION_DATE,
GETREPYEARFROMDATE(COMT_START_DATE,FR_ID) as reporting_year,
GETREPORTINGPERIOD(to_char(COMT_START_DATE, 'mm') ,FR_ID) as reporting_period
from
select
COMMITMENT_ID,
COMT_START_DATE,
--COMT_TERMINATION_DATE,
COALESCE(CB_FUNDING_RULE_ID,NC_FUNDING_RULE_ID) FR_ID
from
(COMMITMENT_TABLE left outer join (CHILD_BENEFICIARY_TABLE left outer join FUNDING_RULE_TABLE a on
a.FUNDING_RULE_ID = CB_FUNDING_RULE_ID )
on COMT_BENEFICIARY_REF = CB_BENEFICIARY_REF
left outer join (NON_CHILD_BENEFICIARY_TABLE left outer join FUNDING_RULE_TABLE b on
b.FUNDING_RULE_ID = NC_FUNDING_RULE_ID)
on
COMT_BENEFICIARY_REF = NC_BENEFICIARY_REF)
Is there any way to make the MAT view creation within 3 minutes?CREATE MATERIALIZED VIEW "REP_PERIOD_START_END_DATE"
AS
with tab as
select /*+ materialize */ commitment_id,
comt_start_date,
--COMT_TERMINATION_DATE,
coalesce (cb_funding_rule_id, nc_funding_rule_id)
fr_id
from ( commitment_table
left outer join
( child_beneficiary_table
left outer join
funding_rule_table a
on a.funding_rule_id = cb_funding_rule_id)
on comt_beneficiary_ref = cb_beneficiary_ref
left outer join
( non_child_beneficiary_table
left outer join
funding_rule_table b
on b.funding_rule_id = nc_funding_rule_id)
on comt_beneficiary_ref = nc_beneficiary_ref)
select commitment_id,
funding_rule_id,
reporting_year || '-' || reporting_period as repperiod,
get_start_day_of_period (funding_rule_id,
reporting_year,
reporting_period)
start_day_of_periodt,
get_end_day_of_period (funding_rule_id,
reporting_year,
reporting_period)
end_day_of_period
from (select commitment_id,
fr_id as funding_rule_id,
comt_start_date,
--COMT_TERMINATION_DATE,
getrepyearfromdate (comt_start_date, fr_id) as reporting_year,
getreportingperiod (to_char (comt_start_date, 'mm'), fr_id)
as reporting_period
from tab); -
Need Help in Mat View Creation
I have the following query to create a mat view
CREATE MATERIALIZED VIEW IB_CONT1
REFRESH FAST ON DEMAND WITH ROWID
AS
SELECT
CUST,
CONSEQ,
STD,
ENDD,
ADD
FROM
ADMIN.CONTACT@IB_DBLINK;But it displays an error as
ADMIN.CONTACT@IB_DBLINK
ERROR at line 11:
ORA-12018: following error encountered during code generation for
"OWNER"."IB_CONT1"
ORA-00942: table or view does not existBut when i query the table i displays data.
SQL> select count(*) from admin.contact@ib_dblink;
COUNT(*)
100what could be the reason?
Any help will be highly appreciated.
Thanks in advance.Try without ROWID option.
Regards
RK -
Error in webdynpro view creation
Hi, i am getting the following errors while creating views in webdynpro. Can any one tell me the solution?
Service cannot be reached
What has happened?
URL http://emsap008:8000/sap/bc/wdvd call was terminated because the corresponding service is not available.
Note
The termination occurred in system ENW with error code 403 and for the reason Forbidden.
The selected virtual host was 0 .
What can I do?
Please select a valid URL.
If you do not yet have a user ID, contact your system administrator.
ErrorCode:ICF-NF-http-c:000-u:SAPSYS-l:E-i:emsap008_ENW_01-v:0-s:403-r:Forbidden
HTTP 403 - Forbidden
Your SAP Internet Communication Framework TeamHi!
There are further ICF nodes and services to be activated to use the view editor.
If this is a test/development system simply activate all nodes and services under node sap.
1. enter transaction code SICF and select services
2. right click top node and choose deactivate service -> all services and nodes will be deactivated
3. again right click the same node and choose activate service
4. IMPORTANT: in the upcoming popup choose "yes, all" (the button in the middle) and not just yes (the left button)
5. problems in view editor should be history for you
hope this helps.
regards,
volker -
Hi,
I have to create tree view. I followed the stpes mentioned at the following link.
Tree View
I have created a Z-structure and created a table view in the component BT111H_OPPT component.
While trying to modify the .htm page for the tree view, with the code mentioned at above link, I am getting following error.
"node_tab is unknown. Not declared by a data statement."
(see the line number 4 - nodeTable = "<%= mytreenode->node_tab %>")
I am using the following code.
<chtmlb:tableExtension tableId = "Table"
layout = "FIXED" >
<chtmlb:configTree id = "configTree"
nodeTable = "<%= mytreenode->node_tab %>"
nodeTextColumn = "NODE_TYPE"
onCollapseNode = "nodeCollapse"
onExpandNode = "nodeExpand"
onRowSelection = "select"
onNodeClick = "nodeClick"
ajaxDeltaHandling = "FALSE"
headerText = "Demo Tree"
allRowsEditable = "TRUE"
selectionMode = "SINGLESELECT"
table = "//mytreenode/Table"
tableLayout = "AUTO"
visibleRowCount = "12"
usage = "EDITLIST"
fillUpEmptyRows = "FALSE"
personalizable = "TRUE"
scrollable = "TRUE"
noFrame = "X"
downloadToExcel = "FALSE"
onClose = "closeTree"
onIncreaseSize = "increaseTree"
nodeTextColumnDescription = "NODE" />
</chtmlb:tableExtension>
Please let me know where and how should I decalre it.
Regards,
AnsalThanks Arun.. for the quick response...
After view creation, I was directly following your second section of the thread....
My issue is resolved....
Hope to get further help for this object development.
My requirement is add a new assignment block in opportunity screen which will show all the quotation,with their details, created for this opportunity and on click of each quotation id, all the items mapped to that particular quotation should be visible in same view.
Thanks & regards,
Ansal -
Hi SDN,
Im trying to create Generic Data source of View Method. I wanted to create View on BSID ( Closed Customer Invoices) and BSAD ( Open Customer invoices) Tables, But while creating its giving error as "THERE IS NO RELATION BETWEEN THE TABLES" I want to know how to create Relation Between the tables. Both BSID & BSAD are standard tables, so we cant make any changes.
Please let me know the procedure to bulid Rlation between the tables.
Regards
SujanHi Siva,
You have to give relation between these two tables in tab "Table/Join Conditions".
Creating Views:
http://help.sap.com/saphelp_webas620/helpdata/en/cf/21ecf9446011d189700000e8322d00/frameset.htm
View creation fr generic extraction
Hope it Helps -
View creation very slow - not materialized view
I have a view creation script which is running in a fraction of a second in the dev environment but takes over an hour to run in the test environment.
The test environment is off-site, so I have no direct access to it. It does have a lot more data in than dev, but this is not a materialised view so as far as I understood it the amount of data in the system shouldn't affect the time to create the view.
I haven't been able to find any information on what can make this happen. In the development environment I can be querying the view (or can lock it directly), and am still able to run the CREATE OR REPLACE statement without any performance impact. The view does contain function calls and is created with the FORCE keyword, but I can't find any evidence that this should affect the speed of creation.
I am running Oracle 10g (10.2.0.4.0) on Solaris in both dev and test environments.
Any ideas on what could be causing this are very welcome.
CREATE OR REPLACE FORCE VIEW DB_OWNER.PER$AGE
SYSTEM,
LOCATION,
EVENT_START,
SURNAME,
DOB_STRING,
DESCRIPTION,
GENDER,
OLD_ID,
URN,
COMBINED_SCORE,
LOAD_DATETIME,
AGE,
EVENTDATE_FROM,
EVENTDATE_TO,
DETAILS,
AOB
AS
SELECT /*+ leading(ad) */
p.system,
p.location,
p.event_start,
p.surname,
CAST (
NVL (
NVL2 (
p.dob,
TO_CHAR (p.dob, 'dd/mm/yyyy'),
TO_CHAR (
p.apparent_age
+ ROUND ( (SYSDATE - p.created_datetime_from) / 365, 0))),
0) AS VARCHAR2 (10))
AS dob_string,
p.description,
p.gender,
p.old_id,
p.urn,
NVL2 (
p.dob,
db_owner.app_age_score (p.dob, ssearch.get_target_age),
db_owner.age_score (p.apparent_age,
p.created_datetime_from,
ssearch.get_target_age))
AS combined_score,
p.load_datetime,
psd.age,
psd.eventdate_from,
psd.eventdate_to,
e.details,
NVL (e.aob, 'N/A') aob
FROM db_owner.person p,
db_owner.psd psd,
db_owner.entity e
WHERE p.db_key = psd.db_key
AND psd.age IS NOT NULL
AND e.system(+) = p.system
AND p.system IN (SELECT internal_name
FROM ops$tomcat.feed_details
WHERE inSearchList = 'true')
AND e.urn(+) = p.urn;Hi,
Thanks for the response.
Trying the same thing without the FORCE keyword made no difference, the view still takes a long time to compile and there are no compilation errors.
On the development system, I have run a long-running query on the view and checked V$Access. This returns a record for the view, but I can still successfully run the CREATE OR REPLACE statement on the view in another session. This appears to show that a record in V$Access doesn't mean that the view can't be recompiled.
On the test system there are no other sessions connected and no records for the view in V$Access.
Does anyone have any other ideas? -
Automatic storage location view creation in maintenace order (IW31)
Hello,
Seems like I need some help.
Have configured automatic storage location view creation for GR and reservation. Configured movement types are 101, 201, 261. While creating reservations (201, 261 mvmnt. types) with mb21 the sloc view is automatically created in material master, and everything seems fine.
But in iw31 when I specify material number and sloc in a Components tab, I get an error message CO312: "The storage location data is not created". Automatic reservation is not created, and maintenance order can not be saved. Movement type 261 is used for automatic reservations for the maintenance order.
If I configure message CO312 as a (W)arning message, then it allows me to save the order and reservation, but sloc view in material master still is not created. Think that's not good and may lead to MRP issues.
How can I configure automatic sloc view creation in iw31? Is that possible?
Edited by: Konstantin Dudura on Nov 17, 2009 8:11 PMHi,
The customization required for Automatic Storage location creation at reservation are:
Goto : SPRO -> MM -> inventory Management and physical inventory -> Goods issue/ Transfer posting -> Create storage location automatically
first of all go to Plant and tick the automatic Storage location creation for the Plant. After that goto Movement type and tick the automatic Storage location for movement type 261.
Regards -
Application view creation in WLI SERVER
Hi folks,
w,r.to my previous mail,Iam getting the following errors while i try to login
to the Application view console in WLI
Server.pl. anyone try to help me to sort this problem.Iam new to WLI Server.
<Cannot startup connection pool "wliPool" java.sql.SQLException: No suitable driver>
<Jun 13, 2003 5:02:45 PM IST> <Error> <JDBC> <001059> <Error during Data Source
creation: weblogic.common.ResourceException: DataSource(WLAI_DataSource) can't
be created with non-existent Pool (connection or multi) (wliPool)
at weblogic.jdbc.common.internal.JdbcInfo.validateConnectionPool(JdbcInfo.java:127)
at weblogic.jdbc.common.internal.JdbcInfo.startDataSource(JdbcInfo.java:260)
at weblogic.jdbc.common.internal.JDBCService.addDeploymentx(JDBCService.java:293)
at weblogic.jdbc.common.internal.JDBCService.addDeployment(JDBCService.java:270)
<Jun 13, 2003 5:02:49 PM IST> <Alert> <JMS> <040052> <JMSServer "WLIJMSServer",
store failed to open, java.io.IOException: JMS JDBC store, connection pool = <wliPool>,
prefix = <myserver___PBPUBLIC>: connection pool does not exist.
java.io.IOException: JMS JDBC store, connection pool = <wliPool>, prefix = <myserver___PBPUBLIC>:
connection pool does not exist
>
<Jun 13, 2003 5:02:52 PM IST> <Error> <Connector> <190024> << Calumma LDAP JCA
Resource Adapter_LdapConnector > Error making initial connections for pool. Reason:
CreateManagedConnection Error: 192.168.66.144:389>
<Jun 13, 2003 5:03:04 PM IST> <Error> <AI> <000000> <Failed to initialize the
WLI-Application Integration enterprise application due to an exception while initializing
JMS resources.
com.bea.wlai.JMSResourceException: Failed to initialize the WLAI asynchronous
service request JMS Queue 'WLAI_ASYNC_REQUEST_QUEUE' bound at JNDI context 'com.bea.wlai.ASYNC_REQUEST_QUEUE'.
Root Cause: javax.naming.NameNotFoundException: Unable to resolve 'com.bea.wlai.ASYNC_REQUEST_QUEUE'
Resolved: 'com.bea.wlai' Unresolved:'ASYNC_REQUEST_QUEUE' ; remaining name 'ASYNC_REQUEST_QUEUE'
at weblogic.rmi.internal.ServerRequest.sendReceive(ServerRequest.java:174)
at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:263)
at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:230)
at weblogic.jndi.internal.ServerNamingNode_WLStub.lookup(Unknown Source)
at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:337)
at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:332)
at javax.naming.InitialContext.lookup(InitialContext.java:347)
at com.bea.wlai.JMSHelper.initQueue(Unknown Source)
<Jun 13, 2003 5:03:05 PM IST> <Critical> <WebLogicServer> <000286> <Failed to
invoke startup class "LwcStartup", java.lang.ClassNotFoundException: com.bea.lwclient.Startup>
<Jun 13, 2003 5:03:07 PM IST> <Notice> <Management> <141052> <Application Poller
started for development server.>
<Jun 13, 2003 5:03:11 PM IST> <Error> <HTTP> <101165> <Could not load user defined
filter: com.bea.b2b.transport.http.TransportServletFilter
java.lang.ClassNotFoundException: com.bea.b2b.transport.http.TransportServletFilter
at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:179)
at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:62)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:262)
at weblogic.utils.classloaders.ChangeAwareClassLoader.loadClass(ChangeAwareClassLoader.java:41)
at weblogic.servlet.internal.WebAppServletContext.loadClass(WebAppServletContext.java:4714)
at weblogic.servlet.internal.WebAppServletContext.registerFilter(WebAppServletContext.java:2446)
at weblogic.servlet.internal.WebAppServletContext.initFilters(WebAppServletContext.java:2433)
at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:2703)
at weblogic.servlet.internal.HttpServer.preloadResources(HttpServer.java:563)
at weblogic.servlet.internal.WebService.preloadResources(WebService.java:476)
at weblogic.t3.srvr.ServletInitRunner$1.run(ServletInitRunner.java:50)
at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:780)
at weblogic.t3.srvr.ServletInitRunner.run(ServletInitRunner.java:46)
at java.lang.Thread.run(Thread.java:536)
>
<Jun 13, 2003 5:03:11 PM IST> <Error> <socket> <000433> <Unable to load performance
pack, using Java I/O instead.
Please ensure that libmuxer library is in :'/home/tsuresh/j2sdk1.4.0/jre/lib/i386/client:/home/tsuresh/j2sdk1.4.0/jre/lib/i386:/home/tsuresh/j2sdk1.4.0/jre/../lib/i386'
java.lang.UnsatisfiedLinkError: no muxer in java.library.path
java.lang.UnsatisfiedLinkError: no muxer in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1410)
at java.lang.Runtime.loadLibrary0(Runtime.java:772)
at java.lang.System.loadLibrary(System.java:832)
at weblogic.socket.PosixSocketMuxer.<init>(PosixSocketMuxer.java:180)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
at java.lang.Class.newInstance0(Class.java:296)
at java.lang.Class.newInstance(Class.java:249)
at weblogic.socket.SocketMuxer.makeTheMuxer(SocketMuxer.java:54)
at weblogic.socket.SocketMuxer.getMuxer(SocketMuxer.java:37)
at weblogic.t3.srvr.ListenThread.run(ListenThread.java:205)
>
<Jun 13, 2003 5:03:12 PM IST> <Notice> <Management> <141030> <Starting discovery
of Managed Server... This feature is on by default, you may turn this off by passing
-Dweblogic.management.discover=false>
<Jun 13, 2003 5:03:12 PM IST> <Notice> <WebLogicServer> <000354> <Thread "ListenThread.Default"
listening on port 7010>
<Jun 13, 2003 5:03:12 PM IST> <Notice> <WebLogicServer> <000331> <Started WebLogic
Admin Server "myserver" for domain "ldap_adapterdomain" running in Development
Mode>
<Jun 13, 2003 5:03:15 PM IST> <Notice> <WebLogicServer> <000365> <Server state
changed to RUNNING>
<Jun 13, 2003 5:03:15 PM IST> <Notice> <WebLogicServer> <000360> <Server started
in RUNNING mode>
<Jun 13, 2003 5:04:18 PM IST> <Error> <AI> <000000> <Could not create NamespacePersistence
Object.
-------- Begin level 0 Exception Stack Trace --------
com.bea.wlai.repository.PersistenceException: Failed to initialize WLI repository
access layer for the Application Integration subcomponent because the JDBC data
source was not found at JNDI name WLAI_DataSource due to Unable to resolve 'WLAI_DataSource'
Resolved: '' Unresolved:'WLAI_DataSource'
at com.bea.wlai.repository.NamespacePersistence.initDataSource(Unknown
Source)
at com.bea.wlai.repository.NamespacePersistence.<init>(Unknown Source)
at com.bea.wlai.NamespaceManagerImpl.<init>(Unknown Source)
at com.bea.wlai.NamespaceManagerImpl.getInstance(Unknown Source)
at com.bea.wlai.client.bean.NamespaceManagerBean.establishImpl(Unknown
Source)
at com.bea.wlai.client.bean.NamespaceManagerBean.ejbCreate(Unknown Source)
at com.bea.wlai.client.bean.NamespaceManagerBean_k6j0cj_Impl.ejbCreate(NamespaceManagerBean_k6j0cj_Impl.java:122)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at weblogic.ejb20.pool.StatelessSessionPool.createBean(StatelessSessionPool.java:151)
at weblogic.ejb20.pool.StatelessSessionPool.getBean(StatelessSessionPool.java:101)
at weblogic.ejb20.manager.StatelessManager.preInvoke(StatelessManager.java:142)
at weblogic.ejb20.internal.BaseEJBObject.preInvoke(BaseEJBObject.java:127)
at weblogic.ejb20.internal.StatelessEJBObject.preInvoke(StatelessEJBObject.java:61)
at com.bea.wlai.client.bean.NamespaceManagerBean_k6j0cj_EOImpl.getRootNamespace(NamespaceManagerBean_k6j0cj_EOImpl.java:83)
at jsp_servlet.__nshierarchy._jspService(__nshierarchy.java:115)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1058)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:401)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:306)
at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:543)
at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:369)
at weblogic.servlet.jsp.PageContextImpl.include(PageContextImpl.java:136)
at jsp_servlet.__display._jspService(__display.java:511)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1058)
rgds
Suresh.K
1) http://commerce.bea.com/showproduct.jsp?family=WLP&major=8.1&minor=4
2)Make sure you add your JDBC drivers to the beginning of CLASSPATH in either setDomainenv.cmd or setEnv.cmd
3)What really helped was BEA support and playing with BEA's JDBC example that shows how to create and deploy and use a data source.
http://dev2dev.bea.com/codelibrary/code/examples_jdbc.jsp -
Creating a Mat View having the same name with that of the table name
Hi everyone,
After dropping the mat view name "QQ.TRDLN_DIM_MV", I'm trying to re-create it by having the same name as that of the table but I got an error stating that "name is already used by an existing object". How can create a mat view to look like the object owned by schema "GQ", having a name that is the same as that of the table name, without dropping the table?
OWNER_O OBJECT_TYPE CREATED LAST_DDL_ TIMESTAMP STATUS OBJECT_NAME
===
GQ MATERIALIZED VIEW 05-NOV-08 13-DEC-08 2008-11-05:06:31:46 VALID TRDLN_DIM_MV
GQ TABLE 05-NOV-08 15-DEC-08 2008-11-05:06:31:00 VALID TRDLN_DIM_MV
QQ TABLE 17-AUG-07 16-MAR-09 2007-08-17:17:05:21 VALID TRDLN_DIM_MV
SQL>CREATE MATERIALIZED VIEW QQ.TRDLN_DIM_MV
2 TABLESPACE FPLC01S
3 NOCACHE
4 NOLOGGING
5 COMPRESS
6 PARALLEL ( DEGREE 2 INSTANCES 1 )
7 BUILD IMMEDIATE
8 REFRESH FORCE ON DEMAND
9 WITH PRIMARY KEY
10 AS
11 select /*+ NO_REWRITE */ trdln_id,
12 trdln_skid,
13 trdln_end_date,
14 first_value(trdln_end_date) over (partition by trdln_id order by trdln_end_date DESC) as MaxDate
15 from QQ.trdln_dim;
from QQ.trdln_dim
ERROR at line 15:
ORA-00955: name is already used by an existing object
I appreciate your help. Many thanks in advance!
Regards,
RadicYou'd have to rename the table (using ALTER TABLE tablename RENAME TO othername; ) before you create the MV.
You can't have both existing with the same name in the same schema.
What you see in the GQ schema is that the "table" is the underlying table for the Materialized View.
When you do a CREATE MATERIALIZED VIEW MY_MV AS ...
Oracle creates two objects with the same name, one being the Materialized View MY_MV and the other being the table MY_MV which is the physical storage. {Remember that a Materialized View is a means of getting a physical representation of a View}.
In the QQ schema what you have is either
a. a real Table
or
b. an improperly dropped MV, resulting in the underlying Table still present. -
Hello All,
Posting this problem here and hoping for a solution from the experts in this forum.
When i have restarted the Analysis Services , i see that it has been stopped but never started back. It fails with an error
"The SQL Server Analysis Services (MSSQLSERVER) service on Local Computer started and then stopped. Some services stop automatically if they are not in use by other services or programs."
When Checked the Event Viewer i see the following error -
The service cannot be started: The following system error occurred: The filename, directory name, or volume label syntax is incorrect. File system error: Error occurred during the creation of directory: '\\?\E:\OLAP\MSSOLAPFactory\OlapData;M:\Test
Backup'.
I remember changing the BackupDir value of Analysis Services few days back, and i think it could have impacted. Can you please help me how can i change back the BackupDir value and have the server back?
Let me know if you need any more details
SGIs this still an issue? If so, I would find msmdsrv.ini and make sure you don't have two folders listed in the BackupDir (or DataDir or TempDir). You'll have to runas Administrator to edit the msmdsrv.ini file and save changes. Once you fix that, it should
succeed.
http://artisconsulting.com/Blogs/GregGalloway -
Materialized View creation with REFRESH FAST
Hello ,
Please see below case,
TABLE A1(partitioned range+list)
COLUMN C1 -- Primary key
COLUMN C2 -- NUMBER
TABLE D1
COLUMN C1 -- PRIMARY KEY
created MV log as below
CREATE MATERIALIzED VIEW LOG ON A1 WITH ROWID,PRIMARY KEY INCLUDING NEW VALUES;
CREATE MATERIALIzED VIEW LOG ON D1 WITH ROWID,PRIMARY KEY INCLUDING NEW VALUES;
Trying to create MV like below:
CREATE MATERILIZED VIEW mv1test
REFRESH FAST ON COMMIT
AS
Select
FROM A1,
D1
WHERE A1.C1 = D1.CI
AND A1.C2 IS NOT NULL;
It gives below error message:
ORA-12052: cannot fast refresh materialized view schema.mv1test
12052. 00000 - "cannot fast refresh materialized view %s.%s"
*Cause: Either ROWIDs of certain tables were missing in the definition or
the inner table of an outer join did not have UNIQUE constraints on
join columns.
*Action: Specify the FORCE or COMPLETE option. If this error is got
during creation, the materialized view definition may have be
changed. Refer to the documentation on materialized views.
However ,as discussed in earlier thread i checked all general restrictions of the 'Refresh fast' approach for join.
Restrictions on Fast Refresh on Materialized Views with Joins Only
Defining queries for materialized views with joins only and no aggregates have the following restrictions on fast refresh:
1) They cannot have GROUPBY clauses or aggregates.
2) Rowids of all the tables in the FROM list must appear in the SELECT list of the query.
3)Materialized view logs must exist with rowids for all the base tables in the FROM list of the query.
4)You cannot create a fast refreshable materialized view from multiple tables with simple joins that include an object type column in the SELECTstatement.
As per above restrictions ,
1) Group by clause is not present
2)i do not understand 2nd point , i have added a1.rowid and d1.rowid in select statement of MV, but got same error.
3) observed same as 2nd point.
4)we have CLOB column in select list. Tried removing this column but got same error.
Please do let me know any workaround on this.
Thanks in advanced ..
PMBasic Materialized Views show how to analyse MVs using dbms_mview. I'm not sure about creating MVs on partitioned tables, that partition maintenance might cause problems
-
Error in process chain creation : SET SCREEN not allowed in subscreens
Hello,
We are getting an Error in process chain creation : SET SCREEN not allowed in subscreens SAPRSSM 0100.
Please give a solution. Thanks in advance.
RR.Just do detail view on in the process chain. It will take you to the error. See the message and then display message. You can know why the message is appearing.
-
during the materialized view creation.
i am phasing the following error
ERROR at line 12:
ORA-12014: table 'mtest' does not contain a primary key constraint
but the table does't have primary key.
when i tried to add primary key to the table mtest .another problem is comming
sql> alter table mtester.mtest add primary key (IUWP2_ITEM_NO);
alter table mtest add primary key (IUWP2_ITEM_NO)
ERROR at line 1:
ORA-02437: cannot validate (mtester.SYS_C0062425) - primary key violatedU can use this script.
alter table EMPLOYEE add constraint foo11 primary key (DEPRATMENT_ID) deferrable novalidate; -
BANNER (ADB)
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
BANNER (MDB)
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
Hello everyone,
I'm unable to refresh a mat view in MDB which is based on ADB. Even just after creating it everytime the refresh fails.
Currently I'm re-creating the mat view daily and then point the synonym to new one.
There are no errors thrown in session. It just times out.
Below is the script for the same.
CREATE MATERIALIZED VIEW MDB.MV_APRP_DTL_JUN02
TABLESPACE MCCI_DATA
BUILD IMMEDIATE
USING INDEX
REFRESH FAST START WITH SYSDATE+12/24 NEXT SYSDATE+1
WITH ROWID
AS
SELECT /*+ PARALLEL (APREP_DTL,6) */ * FROM prp.aprep_dtl@mdb_adb prep_del_dtl;
Can anybody tell me how can I atleast find what and where the problem is ?
Thanks
Jitu J KIf you currently are dropping and recreating the MV, you don't need the MV Log.
Drop and recreate the MV Log before you recreate the MV and then retest performance of FAST refresh's. A 600MB MV Log does mean that something has gone wrong. Do you / Did you have other MVs that were also extracting data from the same base table(s) ? If those MVs have stopped refreshing but did not unregister, the MV Log will continue to grow and your current MV's FAST refresh performance will suffer.
See Oracle Support Note#1031924.6 and
http://hemantoracledba.blogspot.com/2007/01/large-growing-snapshot-logs-indicate.html
Note : Before you drop the MV log confirm that there are no other MVs (in the same database or a remote database) that are built on the same base table(s).
Hemant K Chitale
Maybe you are looking for
-
My i Phone 4s has suddenly started to drop wifi connection after nealy months of near perfect connections? To restore a wifi connection I have to reset the network settings and restart the phone, this only fixes the issues for around 2-3 mins? Other
-
Document upload in BW report or web template
Hi all, Is it possible to upload a document in word, excel etc format in the BW report / WAD ? I am not referring to administrative workbench document. I am on version 3.5. I am under impression it's a standard functionality for netweaver 2000s Bex.
-
Please help me with modifying this code
I am using the attached code to acauire and save data to a text file, using 'write measurement file' express VI. WHat I want to do is to replace 'write to measurement VI' with low-level file I/O VIs. I tried to convert the express VI, but the obtaine
-
I'm trying to create a sub-account but I keep getting a message that the names I choose are invalid. I know that there are rules for passwords and for sub account names, and I am following those rules. I'm not talking about already used names, like
-
After using the Migration Assistant to transfer all my files and settings, etc. from my PowerBook G4 to my new MacBook Pro and also after updating to 10.4.6 and all relevant software updates, I discovered that X11 hadn't been installed by default nor