SCN Wraps occured diffrently on two Database Servers
Hi ,
We have 2 development Databases which are on 10g(10.2.0.4) version.
DB1
SCN = 4293806110
SCN_BAS=4293806110
SCN_WRP=0
Next it Incremented to
SCN = 4299357627
SCN_BAS=4390331
SCN_WRP=1
DB2
SCN = 3418871189
SCN_BAS=3418871189
SCN_WRP=0
Next it Incremented to
SCN =4520607388
SCN_BAS=225640092
SCN_WRP=1
Query Used
select time_mp,time_dp, scn_wrp, scn_bas, scn from sys.smon_scn_time order by time_dp asc;My Question is why both DB behaved differently.
Regards
Narasimha
Hi ,
Within 5 min i don't think SCN will be incremented from 3418871189 to 4520607388.The DB was Completed Ideal with same export was taken during this period(09:22).
Output
DB1
TIME_MP TIME_DP SCN_WRP SCN_BAS SCN
715078868 31/03/2010 09:01:08 0 3418868071 3418868071
715079172 31/03/2010 09:06:12 0 3418868341 3418868341
715079479 31/03/2010 09:11:19 0 3418868963 3418868963
715079798 31/03/2010 09:16:38 0 3418870055 3418870055
715079894 31/03/2010 09:18:14 0 3418870148 3418870148
715080210 31/03/2010 09:23:30 0 3418871189 3418871189
715080436 31/03/2010 09:27:16 1 225640092 4520607388
715080749 31/03/2010 09:32:29 1 225640529 4520607825
715080860 31/03/2010 09:34:20 1 225649721 4520617017
715081207 31/03/2010 09:40:07 1 225650287 4520617583
715081345 31/03/2010 09:42:25 1 225650721 4520618017
715081649 31/03/2010 09:47:29 1 225651027 4520618323
715081950 31/03/2010 09:52:30 1 225651370 4520618666
715082251 31/03/2010 09:57:31 1 225668710 4520636006
715082585 31/03/2010 10:03:05 1 225669513 4520636809
715082850 31/03/2010 10:07:30 1 225669610 4520636906
715083150 31/03/2010 10:12:30 1 225670026 4520637322
715083455 31/03/2010 10:17:35 1 225670165 4520637461
715083756 31/03/2010 10:22:36 1 225670386 4520637682
715084066 31/03/2010 10:27:46 1 225670523 4520637819
DB2(this is expected Behavior)
TIME_MP TIME_DP SCN_WRP SCN_BAS SCN
715033034 30/03/2010 20:17:14 0 4282561802 4282561802
715033337 30/03/2010 20:22:17 0 4288124573 4288124573
715033340 30/03/2010 20:22:20 0 4288179110 4288179110
715033643 30/03/2010 20:27:23 0 4293751310 4293751310
715033646 30/03/2010 20:27:26 0 4293806110 4293806110
715033949 30/03/2010 20:32:29 1 4390331 4299357627
715033952 30/03/2010 20:32:32 1 4435996 4299403292
715034256 30/03/2010 20:37:36 1 10012898 4304980194
715034301 30/03/2010 20:38:21 1 10839545 4305806841
715034604 30/03/2010 20:43:24 1 16408669 4311375965
715034607 30/03/2010 20:43:27 1 16463373 4311430669
715034910 30/03/2010 20:48:30 1 22016293 4316983589
Similar Messages
-
Can two database servers be installed on the same m./c and run simulataneously.
like
one oracle 10g installation and one oracle 9i server on same m/c and running??With different ORACLE_HOMES I can't see why not, though I haven't tried it yet.
The main issue is to have different ORACLE_HOMEs so the variables won't get mixed.
Tony Garabedian
Message was edited by:
Tony Garabedian
I think there might be some problem with Agent though. since it is One Machine/ One Agent up and running.
As I said, I haven't tried this yet, but it jumped on the top of my to do list. :) -
Can Apex 3.1 point to two database servers?
Our DBA would like to split an existing Apex server to point to an existing production database server for two applications, and a new (to-be-built this week) database server with a a copy of a third database cloned over there. Is this possible or do I build another Apex server for the new database server?
I mean the HTTP server. There is one marvel.conf with a single PlsqlDatabaseConnectString pointing to the database server. The Apex control tables are stored on the same database server, within the same Oracle instance, as the user data tables themselves. The database instance has tables supporting several "applications" (Apex page sets). We want a way to have certain pages interact with a completely different physical server that is running a clone of the Oracle Instance (renamed/unique Oracle Service Identifier).
This does not seem possible to me. Especially since my user data tables are FULL of clobs that are uploaded and downloaded by users thru the Apex interface. And this is only a temporary need until we test/validate the cloned instance. Then we plan to simply re-point the HTTP server to a new PlsqlDatabaseConnectString.
My gut tells me I would do best to just create a temporary internal HTTP server (virtualized) pointing to the cloned data server. Then our internal testers can have a complete interface for all uploads, downloads, and pressure tests. -
Multiple Database Servers Question
Hi,
Please forgive this ignorant question, but can someone tell
me how one would go about using multiple database servers?
Just as there comes a time where one would need more than
one web server and would need to use a load balancing
solution, what happens when one would need more than one
Database Server?
How does one go about implementing that solution?
Is there some way to have two database servers carrying the
same information with some kind of load balancing solution
in front of it(?) or does one place some tables on one
Database
server, and other tables on the other database server?
(I have no clue as to how things would work.)
Thanks in advance,
JoeMicrosoft SQL allows for clustering of SQL databases, so for
instance two servers connected to a fileshare and a virtual address
shared across the two physical boxes. Database connections are made
to the virtual addres which will then be handled by the active
node. Becuase a database is ultimately a file(s) on a disk it can
only be attached to one node at a time so you end up with an
active/inactive cluster. -
Hi There,
I have two database servers which is A and B and they are replicated.
If I connect to A is fail and I want to connect to B .. How do I modified my statement and connection .
thanks,
mhvan// your connection strings - for example
String connectionStringForA = "jdbc:mysql://localhost/yourdatabase?user=youruser&password=XXXX";
String connectionStringForB = ".......";
// your connection driver - for example
String connectionDriver = "com.mysql.jdbc.Driver";
// Connection reference
Connection sqlCon = null;
try {
// Load database driver
Class.forName(connectionDriver);
// Attempt to make connection with first connection string A
sqlCon = DriverManager.getConnection(connectionStringForA);
// Class not found exception do your handling
catch (ClassNotFoundException cnfex) {}
// first connection failed try second
catch (SQLException sqlex) {
try {
// Attempt to make connection with second connection string B
sqlCon = DriverManager.getConnection(connectionStringForB);
// Class not found exception do your handling
catch (ClassNotFoundException cnfex) {}
// second connection failed do your handling
catch (SQLException sqlex) {}
}rykk -
How to compare two database on different servers
hi,
I want to compare two database on different servers in oracle.first i want to ckechk thier structures and then data.i m using oracle 10.2.0.plz help me out
Thanks in advanceIn terms of structures, there are various tools out there that can do this, such as TOAD which can do a database compare.
In terms of data comparisons, that will depend on what sort of results you are expecting to see. I'm sure some tools will do it for you, but it can be just as easy to write your own comparison using a database link from one database to the other. -
Exadata Database Machine two node servers reboot
Hi,
Good morning to all.
Would like to seek help in regards the problem that I have encountered and an error in running exachk on exadata database machine. The problem I have encountered first is on Database Server node1 and node2, both server nodes when powered up and while OS OLinux is on boot process in the middle of loading devices for OLinux to recognize, the kernel panic appeared and the system automatically reboots.
I tried to copy the exachk file on storage and run exachk under user root but the error message appeared it advises me to run it on compute node.
command to run exachk under root server.
# ./exachk
For your kind further advise
GenesisHello Genesis,
If your database servers are unable to boot at all, I'd suggest addressing that part first. This is really Oracle Supprot SR territory, but I'll try and offer a few suggestions. Do you have the output on the kernel panic available? One way of getting this would be to log onto the ILOM console, and capturing a screenshot of the window while the kernel panic output is on the screen. Knowing which part of the kernel code the panic is happening may help identify a known issue with a simple fix. Note 1538068.1 talks about an issue with LVM snapshots, for example, and also has instructions on how to do boot into a diagnostic image. But again, this type of issue is best dealt with on an Oracle service request.
exachk itself doesn't run directly from storage servers, so hence the errors you see; it needs to be launched from a database server.
HTH!
Marc -
I have SP Server 2010, and when I try to DELETE a rule within an existing Audience, "Property (Account Name) = domain/username", I get this error, "An error has occurred while accessing SQL database or system resources. If this
is the first time you have seen this message, please try again later. If this
problem persists, please contact your administrator." When I try to "MODIFY" the rule I get this error, "One or more values typed on this page are not valid. Check the text for the indicated fields."
The last time I checked it was working, I'm not aware of any new updates installed recently? I did a full Profile Synchronization as well, but still not working, please advise? -- EvenstarlineHi Sara,
First of all thank you very much for your prompt responses. Here are my comments to each of your suggestions below, and just to let you know I am using a Farm Admin account. I
was able to do this way after we upgraded from SP 2007 to SP 2010 as well. I would like to mention I'm not a SP expert, just been given the responsibility due to another person handling it just left, so apologize with some of
my novice questions below?
1. When I change the Operators to "Contains" or "Not Contains" get generates this error below.
Error generating in red towards top of the audience page..."One or more values typed on this page are not valid. Check the text for the indicated fields."
Error occurred where you enter your "Value"..."Could not resolve the user identity. Please re-enter the account name."
2. We have a 3-server-tier topology (SPWeb, SPDB, and SPFarm). Does the updates only apply to where the Central Admin is installed, which is the "SPFarm"? I checked all
3 servers, and NONE of the updates (KB2899494, KB2889845, and KB2883055) you'd mentioned are installed.
3. I'm new to IISRET, I need to be extra cautious of what I run in production, is this safe to run with no problem? What does it do? And How do I run it?
4. I'm also new to viewing the ULS log. I'd just downloaded a viewer for it. I'm assuming the only logs I need to be concern with viewing are within the SPAdmin (where Central
Admin is installed)? There's so many of them, what should I be looking for exactly?
Evenstarline -
How to configure email Alerts in OEM Cloud 12c for Database Servers up/down
Hi everybody,
How to configure email Alerts in OEM Cloud 12c for Database Servers up/down status?
Regards,
Miguel VegaHi Miguel Vega,
Information regarding the notifications:
==============================
Configuring notification rules in 12c is different from earlier releases.
The concept and function of notification rules has been replaced with a two-tier system consisting of Incident Rules and Incident Rule Sets :
1. Incident Rules: Operate at the lowest level granularity (on discrete events) and performs the same role as notification rules from earlier releases.
By using incident rules, you can automate the response to incoming incidents and their updates.
A rule contains a set of automated actions to be taken on specific events, incidents or problems.
The actions taken are for example : sending e-mails, creating incidents, updating incidents, and creating tickets.
2. Incident Rule Set: A rule set is a collection of rules that applies to a common set of objects, for example, targets, jobs, and templates.
To help you to achieve the Notification Rules configuration, refer those notes :
How To Configure Notification Rules in 12C Enterprise Manager Cloud Control ? Doc ID 1368036.1
EM12c How to Add and Configure Email Addresses to EM Administrators and Update the Notification Schedule ?Doc ID 1368262.1
EM12c How to Subscribe or Unsubscribe for Email Notification for an Incident Rule Set ?Doc ID 1389460.1
EM 12c How to Configure Notifications for Job Executions ? Doc ID 1386816.1
Best Regards,
Venkat -
RC-00118: Error occurred during creation of database Raised by oracle.apps.
Hi Experts,
Please note i am doing the clonning from production to test server.
Production Server -
1. Run the adpreclone.pl on the apps & db tier.
2. run the autoconfig on the apps and db tier.
3. shut down the production instance.
4. Moved the files and started the clonning process on the db tier i am getting the below issue.
My current E-Business Suit Version is R12.0.4 Database Version is 10.2.0.3. Operating system is SUN SPARC 64 BIT SUN SOLARIS 10.
Executing CreateDB...
ADX Database Utility
getConnectionUsingAppsJDBCConnector() -->
APPS_JDBC_URL='null'
Trying to get connection using SID based connect descriptor
getConnection() -->
sDbHost : proddb
sDbDomain : clientdomain
sDbPort : 1530
sDbSid : TEST
sDbUser : APPS
Trying to connect using SID...
getConnectionUsingSID() -->
JDBC URL: jdbc:oracle:thin:@proddb.clientdomain:1530:TEST
Exception occurred: java.sql.SQLException: ORA-01034: ORACLE not available
ORA-27101: shared memory realm does not exist
SVR4 Error: 2: No such file or directory
Trying to connect using SID as ServiceName
getConnectionUsingServiceName() -->
JDBC URL: jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=proddb.clientdomain)(PORT=1530))(CONNECT_DATA=(SERVICE_NAME=TEST)))
Exception occurred: java.sql.SQLException: ORA-01034: ORACLE not available
ORA-27101: shared memory realm does not exist
SVR4 Error: 2: No such file or directory
Trying to connect using SID as ServiceName.DomainName
getConnectionUsingServiceName() -->
JDBC URL: jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=proddb.clientdomain)(PORT=1530))(CONNECT_DATA=(SERVICE_NAME=TEST.clientdomain)))
Exception occurred: java.sql.SQLException: Listener refused the connection with the following error:
ORA-12514, TNS:listener does not currently know of service requested in connect descriptor
The Connection descriptor used by the client was:
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=proddb.clientdomain)(PORT=1530))(CONNECT_DATA=(SERVICE_NAME=TEST.clientdomain)))
Connection could not be obtained; returning null
-------------------ADX Database Utility Finished---------------
adcrdb.sh started at Wed Mar 21 18:09:54 WAT 2012
The environment settings are as follows ...
ORACLE_HOME : /erptestdata2/u01/d01/tech_st/10.2.0
ORACLE_SID : TEST
TWO_TASK :
PATH : /erptestdata2/u01/d01/tech_st/10.2.0/perl/bin:/erptestdata2/u01/d01/tech_st/10.2.0/bin:/usr/ccs/bin:/usr/sbin:/erptestdata2/u01/d01/tech_st/10.2.0/appsutil/jre/bin:/erptestdata2/u01/d01/tech_st/10.2.0/appsutil/clone/bin/../jre/bin:/erptestdata2/u01/d01/tech_st/10.2.0/appsutil/clone/bin/../jre/bin:/usr/sbin:/usr/bin:/opt/EMCpower/bin:/etc/emc/bin:/etc:/usr/ccs/bin:/usr/openwin/bin:/usr/dt/bin:/usr/platform/SUNW,SPARC-Enterprise/sbin:/opt/sun/bin:/opt/SUNWexplo/bin:/opt/SUNWsneep/bin
LD_LIBRARY_PATH : /erptestdata2/u01/d01/tech_st/10.2.0/lib:/usr/dt/lib:/usr/openwin/lib:/erptestdata2/u01/d01/tech_st/10.2.0/ctx/lib:/erptestdata2/u01/d01/tech_st/10.2.0/lib32
Executable : /erptestdata2/u01/d01/tech_st/10.2.0/bin/sqlplus
The log information will be written to
/erptestdata2/u01/d01/tech_st/10.2.0/appsutil/log/TEST_proddb/adcrdb_TEST.txt
Creating the control file for TEST_proddb database ...
SQL*Plus: Release 10.2.0.3.0 - Production on Wed Mar 21 18:09:54 2012
Copyright (c) 1982, 2006, Oracle. All Rights Reserved.
Connected to an idle instance.
ORACLE instance shut down.
Connected to an idle instance.
ORACLE instance started.
Total System Global Area 1073741824 bytes
Fixed Size 2035496 bytes
Variable Size 432017624 bytes
Database Buffers 624951296 bytes
Redo Buffers 14737408 bytes
CREATE CONTROLFILE REUSE SET DATABASE "TEST"
ERROR at line 1:
ORA-01503: CREATE CONTROLFILE failed
ORA-01167: two files are the same file/group number or the same file
ORA-01110: data file 31: '/erptestdata2/u01/d01/apps_st/data/olap.dbf'
ORA-01110: data file 31: '/erptestdata2/u01/d01/apps_st/data/odm.dbf'
alter database open resetlogs
ERROR at line 1:
ORA-01507: database not mounted
alter tablespace TEMP1 add tempfile '/erptestdata2/u01/d01/apps_st/data/temp01.dbf' REUSE
ERROR at line 1:
ORA-01109: database not open
alter tablespace TEMP1 add tempfile '/erptestdata2/u01/d01/apps_st/data/temp02.dbf' REUSE
ERROR at line 1:
ORA-01109: database not open
alter tablespace TEMP2 add tempfile '/erptestdata2/u01/d01/apps_st/data/temp03.dbf' REUSE
ERROR at line 1:
ORA-01109: database not open
alter tablespace TEMP2 add tempfile '/erptestdata2/u01/d01/apps_st/data/temp04.dbf' REUSE
ERROR at line 1:
ORA-01109: database not open
alter tablespace TEMP1 add tempfile '/erptestdata2/u01/d01/apps_st/data/temp10a5.dbf' REUSE
ERROR at line 1:
ORA-01109: database not open
ALTER DATABASE RENAME GLOBAL_NAME TO "TEST.clientdomain"
ERROR at line 1:
ORA-01109: database not open
ORA-01507: database not mounted
ORACLE instance shut down.
Connected to an idle instance.
ORACLE instance started.
Total System Global Area 1073741824 bytes
Fixed Size 2035496 bytes
Variable Size 432017624 bytes
Database Buffers 624951296 bytes
Redo Buffers 14737408 bytes
ORA-00205: error in identifying control file, check alert log for more info
BEGIN dbms_backup_restore.zeroDbid(0); END;
ERROR at line 1:
ORA-00210: cannot open the specified control file
ORA-06512: at "SYS.X$DBMS_BACKUP_RESTORE", line 4168
ORA-06512: at line 1
ORACLE instance shut down.
Connected to an idle instance.
ORACLE instance started.
Total System Global Area 1073741824 bytes
Fixed Size 2035496 bytes
Variable Size 432017624 bytes
Database Buffers 624951296 bytes
Redo Buffers 14737408 bytes
CREATE CONTROLFILE REUSE SET DATABASE "TEST"
ERROR at line 1:
ORA-01503: CREATE CONTROLFILE failed
ORA-01167: two files are the same file/group number or the same file
ORA-01110: data file 31: '/erptestdata2/u01/d01/apps_st/data/olap.dbf'
ORA-01110: data file 31: '/erptestdata2/u01/d01/apps_st/data/odm.dbf'
alter database open resetlogs
ERROR at line 1:
ORA-01507: database not mounted
alter tablespace TEMP1 add tempfile '/erptestdata2/u01/d01/apps_st/data/temp01.dbf' REUSE
ERROR at line 1:
ORA-01109: database not open
alter tablespace TEMP1 add tempfile '/erptestdata2/u01/d01/apps_st/data/temp02.dbf' REUSE
ERROR at line 1:
ORA-01109: database not open
alter tablespace TEMP2 add tempfile '/erptestdata2/u01/d01/apps_st/data/temp03.dbf' REUSE
ERROR at line 1:
ORA-01109: database not open
alter tablespace TEMP2 add tempfile '/erptestdata2/u01/d01/apps_st/data/temp04.dbf' REUSE
ERROR at line 1:
ORA-01109: database not open
alter tablespace TEMP1 add tempfile '/erptestdata2/u01/d01/apps_st/data/temp10a5.dbf' REUSE
ERROR at line 1:
ORA-01109: database not open
ALTER DATABASE RENAME GLOBAL_NAME TO "TEST.clientdomain"
ERROR at line 1:
ORA-01109: database not open
Error Running create/replace library with adupdlib.sql
ORA-01109: database not open
PL/SQL procedure successfully completed.
File created.
Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bit Production
With the Partitioning, OLAP and Data Mining options
exit_code=0
Checking for errors ...
The database has not been successfully created. Shutting down the instance ...
SQL*Plus: Release 10.2.0.3.0 - Production on Wed Mar 21 18:10:16 2012
Copyright (c) 1982, 2006, Oracle. All Rights Reserved.
Connected.
ORACLE instance shut down.
Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bit Production
With the Partitioning, OLAP and Data Mining options
.end std out.
.end err out.
ADX Database Utility
getConnectionUsingAppsJDBCConnector() -->
APPS_JDBC_URL='null'
Trying to get connection using SID based connect descriptor
getConnection() -->
sDbHost : proddb
sDbDomain : clientdomain
sDbPort : 1530
sDbSid : TEST
sDbUser : APPS
Trying to connect using SID...
getConnectionUsingSID() -->
JDBC URL: jdbc:oracle:thin:@proddb.clientdomain:1530:TEST
Exception occurred: java.sql.SQLException: ORA-01034: ORACLE not available
ORA-27101: shared memory realm does not exist
SVR4 Error: 2: No such file or directory
Trying to connect using SID as ServiceName
getConnectionUsingServiceName() -->
JDBC URL: jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=proddb.clientdomain)(PORT=1530))(CONNECT_DATA=(SERVICE_NAME=TEST)))
Exception occurred: java.sql.SQLException: ORA-01034: ORACLE not available
ORA-27101: shared memory realm does not exist
SVR4 Error: 2: No such file or directory
Trying to connect using SID as ServiceName.DomainName
getConnectionUsingServiceName() -->
JDBC URL: jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=proddb.clientdomain)(PORT=1530))(CONNECT_DATA=(SERVICE_NAME=TEST.clientdomain)))
Exception occurred: java.sql.SQLException: Listener refused the connection with the following error:
ORA-12514, TNS:listener does not currently know of service requested in connect descriptor
The Connection descriptor used by the client was:
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=proddb.clientdomain)(PORT=1530))(CONNECT_DATA=(SERVICE_NAME=TEST.clientdomain)))
Connection could not be obtained; returning null
-------------------ADX Database Utility Finished---------------
RC-00118: Error occurred during creation of database
Raised by oracle.apps.ad.clone.ApplyDatabase
Please advise ASAP.
Regards
Mohammed.Nikki,
Check alert<SID>.log file for more details about the error.
It looks like that the source database was not cleanly shutdown before copying the files to the target node. Please do the following and check then:
SQL> connect / as sysdba
SQL> startup mount;
SQL> recover database using backup controlfile until cancel;
-- type CANCEL
SQL> alter database open resetlogs; If the above does not help, then shutdown the source database normally (make sure it is down), re-copy the files and start the cloning process again. -
Two Message Servers in one System
Dear all.
I learned from http://help.sap.com/saphelp_nw04s/helpdata/en/84/54953fc405330ee10000000a114084/content.htm that one SAP system has one central instance which contains one message server. But our system seems to have two message servers.
Our system ID is "ABC". When I open the SAP Management Console, there are three children nodes under our system: One blue database icon named "ABC" and two green icons named "ABC 14" and "ABC 31". Under "ABC 14", there are nodes "ABAP WP Table" and "J2EE Processes Table". In addition, there's a "Process List" node here. The processes include "msg_server.exe", "disp+work.exe", and "igswd.exe". Under "ABC 31", there's no "ABAP WP Table" or"J2EE Processes Table". There's only one node "Process List". It contains "msg_server.exe" and "enserver.exe".
My questions are:
1. What are "ABC 14" and "ABC 31"?
2. Does "ABC 14" contains at least two instances? One is for Java and another is for ABAP?
3. What's the role of "ABC 31"? It seems to only contain enque server and message server.
4. Why are there two message servers in a single system "ABC"? One is under "ABC 14" and another is under "ABC 31".
Thanks + Best Regards
JeromeHi Sunil,
Thanks a lot for the clarification. Just have a little bit confusion left.
1. Since there're two message servers, may I say that there are two central instances? Or these message servers belong to a single central instance?
2. There's no "enserver.exe" in ABAP instance. So is the "enserver.exe" in the JAVA instance also responsible for the ABAP enque and deque operations?
Thanks + Best Regards
Jerome -
Using database link to connect to two databases
Hi guys,
Here's my question. I need to give a contractor Select rights on tables located in two schemas located on two different servers. One server is dev and one is prod. Let's say we have schema user: EMPLOYEE on dev and schema user: DEPARTMENT on prod. The outside contractor needs select rights on all tables in DEPARTMENT schema but only needs select on a few tables ( 4 to be exact) from EMPLOYEE schema.
My initial train of thougth is: CREATE a user named: TEST (random name of course, just used for an example) for contractor on prod. Give user TEST select rights on all tables in DEPARTMENT schema.
Create database link to dev server so user TEST can access EMPLOYEE schema.
How do i go about limiting the user TEST via the database link to only view the 4 tables from EMPLOYEE instead of all teh tables?
Should I also consider doing this scenario in reverse? Creating user TEST on dev, giving TEST rights to the 4 tables in EMPLOYEE, then creating the database link to connect to department schema on prod database??
Any help will be appreciated. Thanks in advance.zephyr223 wrote:
Hi guys,
Here's my question. I need to give a contractor Select rights on tables located in two schemas located on two different servers. One server is dev and one is prod. Let's say we have schema user: EMPLOYEE on dev and schema user: DEPARTMENT on prod. The outside contractor needs select rights on all tables in DEPARTMENT schema but only needs select on a few tables ( 4 to be exact) from EMPLOYEE schema.
My initial train of thougth is: CREATE a user named: TEST (random name of course, just used for an example) for contractor on prod. Give user TEST select rights on all tables in DEPARTMENT schema.
Create database link to dev server so user TEST can access EMPLOYEE schema.
How do i go about limiting the user TEST via the database link to only view the 4 tables from EMPLOYEE instead of all teh tables? Only grant them access to those four tables from EMPLOYEE. You have to explicitly grant privileges anyways, and since there is no GRANT SELECT ON <SCHEMA> ability it should not be that difficult.
Should I also consider doing this scenario in reverse? Creating user TEST on dev, giving TEST rights to the 4 tables in EMPLOYEE, then creating the database link to connect to department schema on prod database?? Are you creating database links as the EMPLOYEE and DEPARTMENT users? If so, I would caution against that. Create a "current user" database link for TEST. I think you can manage privileges better that way.
HTH!
HTH! -
Two licence servers in one environment
Hi,
Is it possible to install two licence servers in one environment and point some of the users to one licence server and others to another. Is there where i can change on the local PC to point to a licence server.
My assumption is that it is stored centrally as i tried to change it on one user PC and all were changed to the same server. Is my assumption correct or how can this be achieved.
Thank you in advance and your help is appreciated.
Regard,
FannaHi,
The SAP Business One workstations read the name of the license service to which they connect from the SLIC table in the SBO-Common database. All Company databases sharing an SBO-Common database use the same license file. In addition, several SBO-Common databases can direct to the same license service.
For more information please refer to:
[License Guide 2007A|https://service.sap.com/~sapidb/011000358700000359212007E.pdf]
hope it helps,
Regards,
Ladislav
SAP Business One Forum Team -
Finding difference of two databases
Hi
I have a webapplication connected to SQL Server 2012 Web Edition.
As soon as the webserver is down I start a second webserver, which needs to have the same content, also on SQL DB level.
That’s why I take a backup of the SQL Server on the first server recovering it to the second server. This works fine.
The database name as well as the database user name are the same on both SQL servers. This database user has owner rights on database level. The configuration does not change, during recovery process on the target server, which overwrites
the earlier content state of the db.
For any reason the webapplication cannot connect to the database afterwards. Of course the contents of the html files in the IIS webfolders are identical on both servers.
The application connects via IP address 127.0.0.1 (not server name), database name, database user and password, all these parts have also been initially set on both servers in the same way.
It seems, that the two databases still have a slight difference.
Your input is welcome.
PatrickThe application connects via IP address 127.0.0.1 (not server name), database name, database user and password, all these parts have also been initially set on both servers in the same way.
It seems, that the two databases still have a slight difference.
When you restore a database to a different instance, there may be a SID mismatch between the login in the master database and the user in the user database. This can be corrected with ALTER USER for a normal user:
USE MyDatabase;
ALTER USER YourDatabseUserName
WITH LOGIN = YourLoginName;
You mentioned database owner permissions (a questionable practice from application code). If the problem login is the database owner, you can change the database owner (mapped to dbo user) with ALTER AUTHORIZATION:
ALTER AUTHORIZATION ON DATABASE::MyDatabase TO YourLoginName;
If this doesn't resolve the issue, please post the error message.
Dan Guzman, SQL Server MVP, http://www.dbdelta.com -
A dimension table outer join across two databases
I have two databases of the same schema but may have different data that I would like to do comparisons on. For this discussion, each has two tables, Dimension and Fact. I created a common dimension which would show dimension data that exists on both databases. However, I want a common dimension which is a full outer join of the two Dimension tables that can be used to view data on the Fact tables on the two databases; this seems to be a little difference than a fact which may having missing value, isn't it? should this outer join occurs at the physical or logical? Can I even do it at physical if the data are from two different source? Any recommendation on what is the best way to do so? Thanks
It depends on how you are defining your BM. Always, BM is for creating joins on folders within BM, in the sense that each folder can contain data from within multiple databases. So, create it in Physical layer and also create new joins for your defined facts dimensions in BM. But remember, cross database joins are not recommended. If both your schemas reside on 2 different oracle databases, you would be better off creating a single view (by creating a dblink between these 2 databases). So, create a single view and include that in the physical layer.
Thanks,
Venkat
http://oraclebizint.wordpress.com
Maybe you are looking for
-
I need to update my apps but I can't as the iPod is saying my billing is incorrect but once I put all the relevant information in, it says the billing was declined for my previous purchase. However I haven't bought anything in months. Please help
-
I would like to see all my contacts in my old outlook acount, after loading the cloud I I can only find them in the new cloud acount. How do I get them back in the old outlook acount?
-
Bug in QuickTime 7.3.0
A bug in QuickTime 7.3.0 in conjunction with Safari (both 2+ and 3.0.4.) Now only movies outside restricted areas are viewable, after downloading QT 7.0.3 when i try to play movies in a password protected area they dont play, no broken QT logo, just
-
I have: Firefox v. 7.0.1, Silverlight v. 4, Vista Home Premium/Service Pack 2, and Norton 360. (FYI: I also keep updated versions of ADOBE flash, reader, etc., Apple (itunes, Quicktime) & JAVA.)
-
Cleared history and now Firefox does not remember passwords
I went to "clear recent history" and chose "everything" on "time range to clear." Now my passwords do not autofill anymore. There are still saved in the "Options" tab.