Replication of database views/materialized views from big oracle to mobile client
Hi all,
Has anyone done a replication of a view or a materialized view
from big oracle to oracle lite? I can get replication of a
database table happening(although I cant seem to find the table
when I log into the odb using msql) but it just doesn't seem to
work with views(hence the path I have taken which is to use
materialized views). Anyone? Cheers
Hello,
Yesterday I met the same problem and very sad about this, however, my story is much more complicated (I think so).
I have 6 databases:
2 - 11g
2 - 10g
2 - 9i
Every database of each release has different characterset(UTF8 and AL16UTF16).
I am trying to create Materialized view with FAST REFRESH on Oracle 11g, when master tables are located on 10g database and 9i database.
Materialized view, which points to 9i database, was successfully created.
Materialized view, which points to 10g database, gets ORA-12028
Like you, I tried many notes from METALINK and thought at the begining that the problem is my characterset. But, when the materialized views were successfully built on Oracle 9i database, I understood that the problem is something else.
Did you find the actual reason why this issue does not work??
Thanks,
Alex
Similar Messages
-
My java application is delopyed on neo.ondemand.com and use the hana database on cloud also, we use eclipselink
the jpa persistence configuration:
<property name="eclipselink.target-database" value="com.sap.persistence.platform.database.HDBPlatform"/>
here i do not specify any user or password to access the database, i think hana JDBC somehow hide the user information when java application and hana database both are on the cloud.
for the tables created by JPA itself, access if fine.
now i have created a view via Hana studio, though database tunnel using account dXXXXXXsapdev
i have an JPA entity, and i am trying to access the view from java application, it reports error:
Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.3.2.v20111125-r10461): org.eclipse.persistence.exceptions.DatabaseException Internal Exception: com.sap.db.jdbc.exceptions.JDBCDriverException: SAP DBTech JDBC: [258]: insufficient privilege:
I do not know which database user is used by JPA to access the view, how can i grant the database rights on the view so that "native java application on cloud" can
access the database schema (or view created though database tunnel )
any comment is welcomed.Hi,
Please post this issue under SAP HANA Cloud Platform space. The platform experts should be able to help with that.
Regards,
Ifat. -
SQL queries against a database view from an external system?
Hi,
I have a question about Database views in se11.
Is it possible to create a database view and that do SQL queries against this view from an
external system, Not a SAP system?
Please, I need you help.
Best Regards
AnnikaHi Annika,
it is possible , yes... but depends on your database systems in the SAP source DB and the external DB
(easier if they are the same, i.e. both ORACLE) - check out with your BASIS team (they have to create something like a "database link" in the external DB system that you can use to access the tables in the SAP source).
In the external DB you sure can create a view on these "remote" tables.
We used this to pull data form SAP DB to another DB system (both ORACLE based).
But this is NOT supported by SAP , so be carefull. Below is the restriction for ORACLE (as well for other DB systems )
see SAP note 581312 "Oracle database: licensing restrictions"
As of point 3, it follows that direct access to the Oracle database is
only allowed for tools from the areas of system administration and
monitoring. If other software is used, the following actions, among
other things, are therefore forbidden at database level:
* Querying/changing/creating data in the database
* Using ODBC or other SAP external access methods
This means that additional application software is only allowed if this
accesses the database through SAP interfaces (for example, RFC, SAP J2EE
or BAPI).
I would say if you KNOW the tables involved (using valid WHERE conditions and joins )
and don't start queries from hell (ad-hoc type) wich can bring down your SAP system performance
you can try it.
But be warned...
good luck...
bye
yk -
Passing a parameter to a view from an Oracle Form ?
Hello,
Can I create a view on the database which takes a in a parameter from an Oracle form.
If yes then what is the syntx , please let me know.
Thanks
IQThere are ways to simulate a 'parameterized view'.
Create your view and have it reference some value in an application context (look up in the manuals "application context feature").
Then from your Form, just prior to selecting from the view, make sure you set the value in your sessions' application context. -
Replication of Customer and Material master from R/3 to CRM
Hi
Recently in our quality server basis administrator has made a client copy from production server after that customer master and material master are not flowing from R/3 to CRM, even sales orders were not getting copied from CRM to R/3 , i went through C71 BB config document and fixed the sales orders updation from CRM to R/3 but not able to resolve the problem of customer master and material master from ECC to CRM.
I went to B09 BB document and all settings are fine.
Using R3AS I have loaded following objects DNL_CUST_PROD0, PROD1, PROD3, SPROD , DNL_PLANT. and Material.
I went to R3AM1 and checked the status as running or wait for each object.
There are no filters in R3AC1 .
Queue name withR3AD_MATERIA0000000001 has status SYSFAIL in SMQ2 .
What can i do to resolve this problem.
Please advice.
Thanks,
VaishnaviHello Vaishnavi,
After the client copy , have you run txn:BDLS in order to change the LOGSYS in all relevant tables?
You can run this txn in test mode as well to see the affected tables.
Are you getting any dump on these load ?Check it in txn:ST22.
Hope this helps!
Best Regards,
Shanthala Kudva. -
I need to move a database View from one system to another. Can I move the view without having to recreate the view on the other system? And, is there a system view for the material and customer tables?
Thank youHi
U can create a change request in the original system containing the database view and the import this request to the target system:
but u need to have administration system authorizations to do that: because u need to pick up the cofile and datafile from SAP server.
If you can't do it, u can only recreate the view again.
Max -
Using database views in ADF mobile client application
Hi,
I am using Jdeveloper 11.1.1.4 and WLS 10.3.4.
I have developed a POC in ADF mobile client application both with and without synchronization. However, both work with entity objects based on tables.
I need to use database views instead of tables. When I try to include entity object (based on views) in the view object, it shows an error saying "Only the entity objects based on tables can be selected"
Please guide me if there is a work around for this.
Also, please let me know if there is way to develop an ADF mobile client application skipping the use of entity objects at all and using view objects directly to specify the database query and fetch data from the database.
Thanks in advance.
Ansh
Edited by: ansh on Mar 28, 2011 5:40 AMHi, Ansh:
Currently, out of box, ADF Mobile Client does not support synchronization against Database Views. This is because Mobile Server imposes some schema restrictions to ensure synchronization with multi-table views would work correctly. This schema restriction requires, for example, the view must have a primary parent table with key defined, and also all base table must be included in the data publication. These dependencies requires manual resolution and advanced planning, and is managed outside of the ADF Mobile Client/JDeveloper project.
To continue development, you would need to create server Entity Objects directly against the base tables. You can then create the mobile ADF Business Component (EOs, VOs, etc). You can then create View Objects in your ADF Mobile Client application based on the database views, in order to retrieve the data you need exactly. In other words, instead of basing EO on the database view, create View Objects in the mobile applicaiton to mimic what you had in the View Object.
Is there any other reason why you would need to access data via database views, instead of directly against base tables?
Thanks,
Joe Huang -
HR transactions and functionality and creation of Database view
Hi Guys
I am new to HR module . can anybody send me the list of transaction codes with HR functionalities.
I also have to made a database view from hrp1001 and hrp1010 table to list all chief positions who are head of business group , Business unit , Site etc .
Could you help me in creating this databse view.Hi,
These are HR Infotypes
0000 Events
0001 Org assignment
0002 Personal info
0003 Payroll data
0007 Work time
0008 Basic pay
0014 Reoccurring pay
0015 1 X pay
0027 Cost Center
0041 Event Dates
0057 Membership dues
0165 Over ride to limits on deductions
0167 Health
0168 Insurance
0169 Savings
0170 Spending
0194 Garnishment reduction
0195 Garnishment order
0207 Residence Tax
0208 Work Tax
0209 Unemployment Tax
0210 Withholding
0216 Garnishment adjustment
0221 Adjustment
0267 Off cycle
2005 OT
2010 Catts direct to cluster
1000 Infotypes 1000 1999 are PD Relationship infotypes
Logical Database (PNP) ·
Programming with Infotypes ·
Processing Time infotypes/Cluster ·
Processing Payroll infotypes/Cluster
In OM level hrp 1001 and 1010 will be there.
If u want total transactions goto SE11->TSTC Table.
****POINTS TO BE CONSIDERD
Thanks
P.SRIKANTH -
Hi Friends,
Can we created calculated fields in a view.
Can we create field in a view using function module.
Please suggest ...
PankajHi Guru,
I will give u my exact requirement.
I have created database view from table imrg and selected the field counter reading ( CNTRR ) . This field is of FLTP type. I want to show the value in this field in decimal.
I have debuged sap program where they have used FM FLTP_CHAR_CONVERSION_FROM_SI to display data in decimal.
My query is can I create field using above FM so that I could a display data in decimal.
Pankaj -
'GROUP BY' clause in Database views
Hi,
I use SE11 to create database view from a table. I wonder if it is possible to specify a 'GROUP BY' clause? Basically I need a database view that looks like this:-
SELECT FISCAL_PERIOD, SUM(QUANTITY)
FROM TABLE A
GROUP BY FISCAL_PERIOD
Please help!
Thanks,
CHYes. I want to create a view that has values that are already aggregated by a field.
Example view that i created directly in SQL database:
CREATE VIEW ABC (F1, SUM_QTY)
AS SELECT F1, SUM(QTY)
FROM TABLE1
GROUP BY F1
My question is how to achieve the same result using Database view in SAP through transaction SE11 or any others?
Thanks,
CH -
Replication from Database Views
Hi,
We have a requirement to replicate data from a Database View in ECC to HANA.Is there any SLT DMIS version that supports data replication from Views? Replication should work from: ECC-->SLT-->HANAHi,
this is supported with DMIS2011 SP6:
-Support Views for initial load and / or replication (view must contain key fields of original table)
Views can be database or projection views.
Best,
Tobias -
Problems in creating Materialized View from 10g R2 to 11g
Hi,
We have two databases in 10g Release 2. These databases are on two different servers and we use
Materialized views to replicate data between these servers. We are currently using 64 bit version of
oracle 10g release 2 for LINUX.
Oracle Database 10g Release 10.2.0.1.0 - 64 bit Production
PL/SQL Release 10.2.0.1.0 - Production
CORE 10.2.0.1.0 Production
TNS for Linux: Version 10.2.0.1.0 - Production
NLSRTL Version 10.2.0.1.0 - Production
We use CENTOS 5 - 64 bit edition
We upgraded one of the databases to 11g (We exported the data from old database and
imported it in new database) . Then we tried to create a Materialized view with incremental refresh
on it where the base table is in the second Oracle 10g database.
The problem is that it is not letting us create the view with FAST Refresh. It kept on giving ORA-12028
error. We tried different remedies suggested on forums like creating a view with ROWID, but still it
continued giving us the same error. We also synchronized the characterset of Oracle 10g and Oracle 11g
installations but still it did not work.
Our base table size is pretty large (over 10 Million records) and if we do a full refresh, it takes hours to
refresh it.
Without incremental refresh, we will not be able to fucntion, and to upgrade both database simultaneously
we will need a large down-time which also we can not afford.
Please advise what should we do.
Best Regards
Madhup
Edited by: Madhup on Mar 2, 2009 10:45 AMHello,
Yesterday I met the same problem and very sad about this, however, my story is much more complicated (I think so).
I have 6 databases:
2 - 11g
2 - 10g
2 - 9i
Every database of each release has different characterset(UTF8 and AL16UTF16).
I am trying to create Materialized view with FAST REFRESH on Oracle 11g, when master tables are located on 10g database and 9i database.
Materialized view, which points to 9i database, was successfully created.
Materialized view, which points to 10g database, gets ORA-12028
Like you, I tried many notes from METALINK and thought at the begining that the problem is my characterset. But, when the materialized views were successfully built on Oracle 9i database, I understood that the problem is something else.
Did you find the actual reason why this issue does not work??
Thanks,
Alex -
Short Dump while fetching values from a Database view
Hi ALL,
Here is the code that is giving short dump
SELECT * FROM ZVMATLMOVE INTO TABLE I_MATLMOVE
WHERE BUDAT >= V_LASTRUN_DATE
AND WERKS IN S_WERKS
AND LIFNR IN S_LIFNR
AND EBELN IN S_EBELN
AND MATNR IN S_MATNR
AND BWART IN S_BWART
(Please don't say that I am using * in the select query,
I knew that it is not a good way of fetching values)
Declaration of the internal table is:
DATA I_MATLMOVE LIKE ZVMATLMOVE OCCURS 0 WITH HEADER LINE.
The variable V_LASTRUN_DATE is:
DATA V_LASTRUN_DATE LIKE SY-DATUM.
We will be getting the lastrundate value from another table. And it is passing correct value (ex. 20060731)
ZVMATLMOVE is a database view created for MKPF and MSEG table. And I checked both table were consistent.
Dump Analysis:
Runtime errors DBIF_RSQL_SQL_ERROR
Exception CX_SY_OPEN_SQL_DB
Every thing is fine. But I don't know how it is going to dump. Any suggestions?Hi !
It seams that your table is not correct / fully activated.
To check it out you should try the following:
- Go to the SE11
- Give it your table name and go to "Display"
- Check if the table is "active"
- Choose "Utilities->Database Object->Check" and see
if there are any errors
- go back and choose "Utilities->Runtime Object->Check"
and see if there are any errors
If there are any errors - try to activate the table again. You may need the "Utilities->Database Utiliy" for that.
After there are no more errors by checking all these your program should work.
Regards
Rainer
Some points would be nice if thate helped a bit. -
Im trying to read data from V_TVKBZ_ASSIGN view using the query *select * from V_TVKBZ_ASSIGN into zV_TVKBZ_ASSIGN where VKORG = gs_bapikna102_gwa-SALESORG VTWEG = gs_bapikna102_gwa-DISTR_CHAN SPART = gs_bapikna102_gwa-DIVISION.*
endselect.
However i get the error message " V_TVKBZ_ASSIGN" is not defined in the ABAP Dictionary as a table,projection view, or database view.
How do i go ahead with this query?Since V_TVKBZ_ASSIGN is a maintenance view you can't write select query for that. For select query it should be a database table or database view or projection view . Better you can write the select query for underlying tables of that view like
TVKBZ
TVBUR
TVKO
TVKOT
TVKBT
TASSIGN_SD_VKORG
TVKOS
TVKOV
TVTW
TSPA
TVTWT
TSPAT -
Create a database link to access SqlServer 2005 view from oracle 11gr2
Hi All,
Greetings for the day.
Though I have seen quite a few posts but just wanted to cross-verfiy and double check hence posting.
Oracle Database : 11gr2
OS :SOLARIS SPARC 64 Bit
SQL Server Database : Sql Server 2005
OS : Windows 2003 32 Bit
The requirement is to access a view residing in the SQL Server 2005 Database using the Oracle Database. This involves creation of a Database link in the Oracle Database to access the SQL Server.
Can you suggest which approach should i follow ( I am able to understand that both do the same job ):
How to Configure DG4MSQL (Oracle Database Gateway for MS SQL Server) 64bit Unix OS (Linux, Solaris, AIX,HP-UX) post install [ID 562509.1]or
How to Configure DG4ODBC on 64bit Unix OS (Linux, Solaris, AIX, HP-UX Itanium) to Connect to Non-Oracle Databases Post Install [ID 561033.1]Will they do the same job ? And can they be used on any OS and version of the SQL Server Database as version information for SQL Server is not specified anywhere?
Please let me know so that I can it forward with Business for approvals and budgetting.
Regards
KKYour question is similar to the post: Oracle 11gr2 connection to Sql Server using dg4msql problem
Please visit: http://stackoverflow.com/questions/4658942/oracle-11gr2-connection-to-sql-server-using-dg4msql-problem
Answer on the website:
You seem to be using the Gateway for MySQL set-up rather than the Heterogeneous Gateway (for ODBC connections). Here is an overview of the process
On SQL Server create a database user and give it read access to the database/tables you want to read via the Oracle database link.
In the gateway home each SQL Server database you want to access should have an init.ora located in $OH/dg4msql/admin in the form initsid.ora where sid is the name of the database to be used in the link (e.g. initbob.ora), so create one
HS_FDS_CONNECT_INFO=msserver1:1234//Example_Database
HS_FDS_TRACE_LEVEL=OFF
HS_FDS_RECOVERY_ACCOUNT=RECOVER
HS_FDS_RECOVERY_PWD=RECOVER
HS_TRANSACTION_MODEL=READ_ONLY
You must now add the new sid to the listener.ora in the gateway home using an additional SID_DESC section inside the existing SID_LIST, for example
(SID_DESC =
(SID_NAME=bob)
(ORACLE_HOME=/oracle/gateway/product/11.2.0)
(ENVS=LD_LIBRARY_PATH=/oracle/gateway/product/11.2.0/dg4msql/driver/lib;/oracle/gateway/product/11.2.0/lib)
(PROGRAM=dg4msql)
You should now stop and restart the gateway listener so that the new sid becomes active. NB a reload is not enough.
You must now add the new sid in the tnsnames.ora file for the listener of each database in which you will create a link. You don't need to do this in the gateway home unless it is also a database home in which you will create a database link.
bob =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = severname.example.com)(PORT = 1690))
(CONNECT_DATA = (SID = bob))
(HS = OK)
NB: The host and port are for the gateway not for the SQL Server database
In each database that requires a link to the MS-SQL database you should create a database link to your new gateway sid.
CREATE PUBLIC DATABASE LINK bob
CONNECT TO "ms_user" IDENTIFIED BY "ms-passwd" USING 'bob';
where ms-user and ms-password are the SQL Server user you created right at the start.
Now you can test the new database link
SELECT COUNT(*) FROM "Table_Name"@bob;
Once you have this working you can alter the initsid.ora file to add parameters to suit your connection. If you do it this way you can easily add and manage many different databases via the gateway.
Hip
Edited by: 1000595 on 04:58 17-04-2013
Maybe you are looking for
-
ITunes stalls when trying to update my photos - can it be fixed?
From what I've seen of 7.0, there are a lot of problems, and I've searched these posts but haven't found anything on my specific problem. Basically, when I try to update my iPod and I have the "sync photos from folder" checked, iTunes never finished
-
i am trying to use an "normal" applet (myapplet) designed for use in a html-page in forms9i. properties in applet can be set as "<param name="image1" value="1.jpg">... i used jdevloper to create a wrapper-bean: new->beans->Oracle Forms Pluggable Java
-
I have Windows XP 32bit system. I am having a problem with the latest Flash Player. The problem occurs when entering the PC to play yahoo Canasta. All information required is entered and relevant windows are opened with correct data. When I click to
-
i was wondering if there is a device that helps improve my cell phone (IPhone) signal? When I send a text or call anyone from my house I am unable to reach anyone and or the texts don't go through until I get closer to town... Thanks
-
Hi , I want to do something like this While Condition LOOP BEGIN Insert into table1 values(......); Insert into table2 values(......); Insert into table3 values(......); Insert into table4 values(......); Insert into table5 values(......); Insert int