Db Export when database is in read only mode
Hi All,
I have to perform a full database export when database is in read only mode. My db version is 9i.
Kindly let me know whether that export file is valid enough to do full import in new database and make database oprational.
Thanks.
rajaryan wrote:
Hi All,
I have to perform a full database export when database is in read only mode. My db version is 9i.
Kindly let me know whether that export file is valid enough to do full import in new database and make database oprational.
Thanks.Check the log file, if you haven't got any error, then it's valid
BTW - Why you've taken full export of the database? Why not using RMAN?
See the following video tutorial:
http://kamranagayev.wordpress.com/2010/03/29/rman-video-tutorial-series-performing-disaster-recovery-with-rman/
Similar Messages
-
Callback function may be NULL only when database handles are read-only
Hi,
I am getting some errors when trying to run my java code that will try to open a few cursors and join them to fetch the data.
ath .:/usr/src/db-4.7.25.NC/java/src:/usr/local/BerkeleyDB.4.7/lib/db.jar bdbtest
MyDbs: Callback function may be NULL only when database handles are read-only
Error on inventory secondary cursor:
java.lang.IllegalArgumentException: Invalid argument: Callback function may be NULL only when database handles are read-only
What does that error mean? How can I resolve it? I am following the sample program and I can't find anything related.
Here is my code.
import com.sleepycat.db.DatabaseException;
import com.sleepycat.db.Database;
import com.sleepycat.db.SecondaryDatabase;
import com.sleepycat.db.DatabaseConfig;
import com.sleepycat.db.DatabaseType;
import java.io.FileNotFoundException;
import com.sleepycat.db.DatabaseEntry;
import com.sleepycat.db.SecondaryCursor;
import com.sleepycat.db.Cursor;
import com.sleepycat.db.DatabaseException;
import com.sleepycat.db.LockMode;
import com.sleepycat.db.OperationStatus;
import com.sleepycat.db.SecondaryCursor;
import com.sleepycat.db.SecondaryConfig;
import com.sleepycat.bind.EntryBinding;
import com.sleepycat.bind.serial.SerialBinding;
import com.sleepycat.bind.tuple.TupleBinding;
import com.sleepycat.db.Cursor;
import com.sleepycat.db.DatabaseEntry;
import com.sleepycat.db.DatabaseException;
import com.sleepycat.db.LockMode;
import com.sleepycat.db.OperationStatus;
import com.sleepycat.db.SecondaryCursor;
public class bdbtest {
public static void main(String args[]) {
SecondaryDatabase myDatabase = null;
Database primDB = null;
Cursor cursor = null;
try {
// Open the database. Create it if it does not already exist.
DatabaseConfig dbConfig = new DatabaseConfig();
dbConfig.setErrorStream(System.err);
dbConfig.setErrorPrefix("MyDbs");
dbConfig.setType(DatabaseType.BTREE);
dbConfig.setAllowCreate(true);
SecondaryConfig mySecConfig = new SecondaryConfig();
mySecConfig.setErrorStream(System.err);
mySecConfig.setErrorPrefix("MyDbs");
mySecConfig.setType(DatabaseType.BTREE);
mySecConfig.setAllowCreate(true);
primDB = new Database("/tmp/bdb_ca_db.db",
"bdb_ca_db",
dbConfig);
dbConfig.setAllowCreate(true);
myDatabase = new SecondaryDatabase("/tmp/bdb_ca_sdb.db",
"ca_sdb_res_alias",
primDB,
mySecConfig);
String res ="in-1";
SecondaryCursor secCursor = null;
DatabaseEntry searchKey =
new DatabaseEntry(res.getBytes("UTF-8"));
DatabaseEntry foundKey = new DatabaseEntry();
DatabaseEntry foundData = new DatabaseEntry();
secCursor =
myDatabase.openSecondaryCursor(null, config);
// Search for the secondary database entry.
OperationStatus retVal =
secCursor.getSearchKey(searchKey, foundKey,
foundData, LockMode.DEFAULT);
if (retVal == OperationStatus.SUCCESS){
System.out.println("succ");
}else {
System.out.println("fail");
while (retVal == OperationStatus.SUCCESS) {
String keyString = new String(foundKey.getData(), "UTF-8");
String dataString = new String(foundData.getData(), "UTF-8");
System.out.println("Key | Data : " + keyString + " | " +
dataString + "");
secCursor.getNextDup(searchKey, foundKey,foundData, LockMode.DEFAULT);
} catch (Exception e) {
System.err.println("Error on inventory secondary cursor:");
System.err.println(e.toString());
e.printStackTrace();
finally {
// Make sure to close the cursor
try {
cursor.close();
}catch (com.sleepycat.db.DatabaseException e) {
System.out.println("All done.");
}Hi,
The error is because either the primary database or the secondary database is configured as read only and the callback to create the secondary keys is null. A quick glance of the code, it appears as if you did not set up the secondary database correctly. In the Getting Started Guide for JAVA API chap 10, we have detailed information on what needs to be done as well as a code example. Please refer to http://www.oracle.com/technology/documentation/berkeley-db/db/gsg/JAVA/index.html and look for Chap 10.
regards,
Mike Brey, Oracle Berkeley DB -
Database Open in Read Only Mode
Hi
I would like to open database in read only mode
like
SQL> startup mount
SQL> ALTER DATABASE OPEN READ ONLY
this will open database for read only mode for all user
i want to give read write access on database to one user
any idea how i can proccess
Thanks
ChetanHi,
Alter database open read only;
this should work fine and everything will be in read only mode. Hence if any auditing is going on and audit_trial=db then it fails to open the database in read only mode.
If you want to control only users to stop writing to it, you may remove tablespace quotas for those users. Also, you may control them through grants. Remove any current grants assigned to them or to roles through which the grants are assigned.
Several ways to do this. If you tell us the particular scenario then we might help in getting a solution.
Regards,
Vasu. -
Convert the oracle10g database into standby ( read only mode)
One month ago, converted the oracle 10g standby database into read and write mode( database is open). I would like to convert the oracle10g database into standby
Please provide me the steps or document
Thanks in advanceuser8680248 wrote:
two months ago we have convert the standyby database into standard database ( read, write)
NoW I am plannning to convert this database into standby database
any link or steps pleaseDid you meant you would creating(or you have) another standby database and make that standby database as primary and this as standby
If this is not what you meant then there is no way you can make this as sandby database.
Regards
Anurag -
SQL 2012 AlwaysOn cluster IP not moving after failover, causing database to be read-only
SQL Server Cluster Name: SQLDAG01
SQL Server Cluster IP: 10.0.0.50
Cluster Listener IP: 10.0.0.60
Node 1 Name: SQL01
Node 1 IP: 10.0.0.51
Node 2 Name: SQL02
Node 2 IP: 10.0.0.52
Everything is fine when SQL01 is the primary. When failing over to SQL02, everything looks fine in the dashboard but for some reason the cluster IP, 10.0.0.50, is stuck on node 1. The databases are configured to provide secondary read access. When executing
a query on SQLDAG01, I get an error that the database is in read-only mode. Connectivity tests verify that SQLDAG01, 10.0.0.50, connects to SQL01 even though SQL02 is now the primary.
I've been Googling this for the better part of the day with no luck. Any suggestions? Is there a Powershell command force the cluster IP to move to the active node or something? Also I'm performing the failover as recommended, from Management Studio connected
to the secondary node.This was the answer, it had been setup to use the cluster name instead of the application name. Whoever installed Sharepoint connected it to SBTSQLDAG01 instead of SHAREPOINT01. Once we changed Sharepoint to connect to SHAREPOINT01, the failover worked as
expected. We did have a secondary issue with the ARP cache and had to install the hotfix from http://support.microsoft.com/kb/2582281 to resolve it. One of the Sharepoint app servers was failing to
ping the SQL node after a failover, the ARP entry was stuck pointing to the previous node. This article actually helped a lot resolving that: http://blog.serverfault.com/2011/05/11/windows-2008-and-broken-arp/
One thing I did notice is that the SQL failover wizard does not move cluster groups "Available Storage" and "Cluster Group", I had to move those through the command line after using the wizard. I'm going to provide the client with a Powershell script that
moves all cluster groups when they need to do a manual failover. This also happens to be why the Sharepoint issue started, "Cluster Group" is what responds to the cluster name SBTSQLDAG01. Moving that group over to the node that has the active SQL cluster
group also made it work properly, but using the application name is the correct method.
Thanks everyone for all your help. Although the nitpicking about terminology really didn't help, that was a pointless argument and we really could have done without it. Yeah I know 2008 called is "Failover Cluster Manager" and MSCS is the "2003 term" but
really, they're basically the same thing and we don't really need to derail the conversation because of it. Also, If you look at the screenshot below you can clearly see "AlwaysOn High Availability" in SQL Management Studio. That's what it's called in SQL,
that's where you do all the work. Trying to tell me it's "not a feature" is wrong, pointless, and asinine, and doesn't get us anywhere.
Sorry it took so long to get back, I was off the project for a couple weeks while they were resolving some SAN issues that caused the failover to happen in the first place. -
ORA-01578 about standby database in read only mode
Hi,
I have an ORA-05178 (data block corrupted) about a standby database which in read-only mode. About production database, there is no problem.
After analyze, this is an index segment :
SELECT segment_name , segment_type , owner , tablespace_name
FROM sys.dba_extents
WHERE file_id = 58
AND 218173 BETWEEN block_id and block_id + blocks -1
SEGMENT_NAME SEGMENT_TYPE OWNER TABLESPACE_NAME
SICINHIS01 INDEX MOWIN IDX_DATA01
There is no constraint.
How can I repair this problem ?
NicolasHi,
I have an ORA-05178 (data block corrupted) about a standby database which in read-only mode. About production database, there is no problem.
After analyze, this is an index segment :
SELECT segment_name , segment_type , owner , tablespace_name
FROM sys.dba_extents
WHERE file_id = 58
AND 218173 BETWEEN block_id and block_id + blocks -1
SEGMENT_NAME SEGMENT_TYPE OWNER TABLESPACE_NAME
SICINHIS01 INDEX MOWIN IDX_DATA01
There is no constraint.
How can I repair this problem ?
Nicolas -
How to provide a LINK on normal TEXT field in read only mode
Hi,
I have a TEXT item and that is used for only url purpose.
so a user can enter something like http://www.abc.com in that field.
So when I am in read only mode for that item, I want a link also on that text..
how can I do that.
thanks,
DeepakYou could create a pl/sql expression computation on the TEXT item which will convert the value shown for the field to be a HTML link
'<a href="http:// ' || :PXX_TEXT || '">' || :pXX_TEXT || '</A>';Make the computation conditional using the same condition as is used to render the item as read-only
varad -
Unable to open database in READ ONLY mode
When trying to open database in READ ONLY MODE it says needs recovery. How ever database opens succesfully in READ WRITE MODE.
1) Startup mount
2) SQL> ALTER DATABASE OPEN READ ONLY;
ALTER DATABASE OPEN READ ONLY
ERROR at line 1:
ORA-16005: database requires recovery
But database opens succesfully when opened in READ WRITE mode.user12038051 wrote:
When trying to open database in READ ONLY MODE it says needs recovery. How ever database opens succesfully in READ WRITE MODE.
1) Startup mount
2) SQL> ALTER DATABASE OPEN READ ONLY;
ALTER DATABASE OPEN READ ONLY
ERROR at line 1:
ORA-16005: database requires recovery
But database opens succesfully when opened in READ WRITE mode.
sqlplus '/as sysdba'
shutdown imediate;
startup;
shutdown imediate;
startup mount;
recover database;
alter database open read only; -
Putting apps database in Read-Only mode
Hi,
I want to put the apps database in read-only mode to that user will be able to login into the applications and see data but will not be able to update it.
What is the best way to do this?
ThanksI am still looking at how to do this because if users
update the UAT/test database, when the prod upgrade
is completed, they will think that their updates will
be available and this will cause some issues.This is a training/expectation-setting issue, not a technical one. You need to make sure that your users understand the difference between a test system and production, and that changes made in testing will not be present in production. They also need to understand that this situation is actually to their benefit: it enables them to really work with the test system to uncover potential problems and learn new features, without fear of making changes that could negatively impact their day-to-day work in production.
Please note that I'm not trying to be a jerk here. I very respectfully submit that attempting to make an instance read-only for training purposes, even if possible, will involve a great deal of technical work for very little (and perhaps even negative) overall benefit to the users.
Regards,
John P. -
Query faild against database that is opened in read only mode
ORA-16000: database open for read-only access
Hi ,
I am quering against a database that been opened in read only mode (10g version)
SQL> select controlfile_type,open_mode,database_role from v$database;
CONTROLFILE_TYPE OPEN_MODE DATABASE_ROLE
STANDBY READ ONLY PHYSICAL STANDBY
Currently when selecting against this database
i am getting the following error:
SELECT PS_RF_PROVGRP_VW.SETID, PS_RF_PROVGRP_VW.PROVIDER_GRP_ID, PS_RF_PROVGRP_VW.NAME1,
PS_RF_PROVGRP_VW.STATUS, PS_RF_PROVGRP_VW.SYNCID, PS_RF_PROVGRP_VW.SYNCDTTM
FROM PS_RF_PROVGRP_VW
ERROR at line 1:
ORA-00604: error occurred at recursive SQL level 1
ORA-16000: database open for read-only access
The owner of the object is PSSYS and i am running the queries as user INFORMIX.
select owner,object_name,object_type from dba_objects where object_name ='PS_RF_PROVGRP_VW';
OWNER OBJECT_NAME OBJECT_TYPE
INFORMIX PS_RF_PROVGRP_VW SYNONYM
PSSYS PS_RF_PROVGRP_VW VIEW
User informix have "SELECT ANY TABLE" privilage
In the source database (e.g: not the cloning one) the queries results are returning susseccfully ,
and only in the clonning the database the problem exists.
Does someone have an idea what the problem could be ?
Thanks.Hi
Object can become invalid, if the underlying objects are dropped/invalidated.
So even if you create or validate the underlying objects these objects by themself do not become valid. You have to either make them valid or you should use it atleast one time as select/desc or any other query so that Oracle implicitly make it valid.
Your source datatabase has valid synonym because after dropping/creating you must have selected that synonym atleast one, but this selection procedure would be after you copied your data to the target database.
Regards -
Remove Standby/Read only mode for a database in sql server 2005
Hi,
I have a problem in sql sever . my database is showing standby/read-only mode. i want to remove that mode.please help me for the issue.HI
Did you assign any DB read only user?
check the administrator guide in your SAP Business one->Documntation->system setup->Administrator guide...
but removing DB read only user is impossible..... -
I am using Excel 2003 SP3 and have the Office 2007 compatibility pack installed. When I open Office 2007 formatted Excel files (XSLX) directly in Windows Explorer, I receive the following error if I do not have Excel already opened:
"Windows cannot find '<path to file>'. Make sure you typed the name correctly, and then try again. To search for a file, click the Start button, and then click Search."
Even though I receive the error, the file does open; however, it opens in Read Only mode with a name such as "Xl0000024.xls". The number seems to increment up each time it happens.
Now here is the strange part. If I have Excel already open and try to open the file in Windows Explorer, the file opens fine in Modify mode with no error and with the correct file name.
I Googled the error I was getting and found KB211494. It says I should uncheck the box in Options on the General tab that says "Ignore other applications", but this box is already unchecked in my case. Any other ideas? This is
really frustrating as a small percentage of our company has upgraded to Office 2007 with the rest still on Office 2003.This may be a file association problem. To solve that:
In Windows 7:
1. Right-click the file,
2. Select "Open With"
select [Your Program Here]
3. Check always use this program.
In Windows XP:
1. Locate the file as you have described above
2. Right click the file
3. Select Open with from the pop-up menu
4. Click Choose default program…
5. Select Excel in the Recommended Programs box
6. Check Always use the selected program to open this kind of file
7. Click on OK.
1. Make Excel not available from Office 2007 listed under Programs and Features in Control Panel.
2. Take a registry backup using the steps given here
3. In the registry editor window expand HKEY_CLASSES_ROOT and navigate to .xls right and delete it.
4. Exit Registry Editor
5. Undo Step 1 to make Excel available.
6. Restart the computer and verify it the issue is fixed.
If this answer solves your problem, please check Mark as Answered. If this answer helps, please click the Vote as Helpful button. Cheers, Shane Devenshire -
Shuttle issue when in read only mode
version: Application Express 3.2.0.00.27
I have created a shuttle based on an LOV. It displays the correct values on the left.
select party_name d, party_id r
from tbl_parties
order by 1The right side is populated as a source from a function that returns the ID delimited by a colon(ID1:ID2).
When in edit mode(not read only). The shuttle functions and displays correctly. In readonly mode however what is displayed is only the ids and not the description.
The description of each value(id) is displayed correctly in edit mode.
I also tried using a sql query instead of a function as the source. When I do that, the description is displayed but just one record(even though more then one should return). This is in read only mode. In edit more nothing returns.
Source for the sql is
Select party_name d , ':' , p.party_id r
from tbl_authorization_parties a, tbl_parties p
where a.party_id = p.party_id
and a.authid = :P14_AUTHIDalso tried:
Select party_name d , p.party_id r
from tbl_authorization_parties a, tbl_parties p
where a.party_id = p.party_id
and a.authid = :P14_AUTHIDWith sql as a source in edit mode nothing is displayed on the right side.Hi ashalon,
have you checked APEX 4.1, because I think in the most current version this is not the case anymore. You can test 4.1 on apex.oracle.com.
Regards
Patrick
My Blog: http://www.inside-oracle-apex.com
APEX Plug-Ins: http://apex.oracle.com/plugins
Twitter: http://www.twitter.com/patrickwolf -
Starting database in Read only mode
hi,
i am using oracle 8i, we want to copy the Production database to other machine, but on starting that m/c database should be opened in read only mode without DBA interaction what to do for that. pl tell
thanx in advanceSQL> STARTUP MOUNT
ORACLE instance started.
Total System Global Area 177281688 bytes
Fixed Size 453272 bytes
Variable Size 150994944 bytes
Database Buffers 25165824 bytes
Redo Buffers 667648 bytes
Database mounted.
SQL> ALTER DATABASE OPEN READ ONLY;
Database altered.
SQL> DELETE FROM SCOTT.EMP;
DELETE FROM SCOTT.EMP
ERROR at line 1:
ORA-16000: database open for read-only access
kuljeet pal singh -
Hello - since configuring a Windows Web Server 2008 R2 x64 to be hardened for an internet-facing deployment I receive this:
"Device Manager is running in read-only mode because you are running it on a remote computer."
when entering Device Manager.
I have tried reversing the changes I have made, such as:
- Re-adding Client for Microsoft Networks
- Re-enabling NetBIOS over TCP-IP
- Re-adding File and Printer Sharing
- Disabling the Windows Firewall in all profiles (public, domain, private)
I get no joy. It looks like a Microsoft ballsup. I'll try and use Process Monitor to have a look. Google returns only 1 page for this error.
LukeGot it.
After my changes to DHCP and static IPs the machine picked up the IP address of another server on my little home LAN. The hostname in IPCONFIG was different to the actual server computer name and so this led Device Manager to think the connection and the
local machine were different.
What an odd and infuriating problem. My thoughts on this are that Microsoft should be more verbose with error messages and their causes. For example, displaying the values of the assertion would help diagnose a problem; "The host-name www02.farm.brand.com
that you are connecting from does not match the local host-name rest01.dev.farm.brand.com. Connections from remote computers can only use Device Manager in read-only mode; some options will be disabled."
When troubleshooting, the main thing on an engineer's mind is "what has led Windows to its [unexpected] conclusion?"
Luke
Maybe you are looking for
-
Is there a way to create Trigger to limit the no of update per min?
Hi, I am looking to create a trigger and its supposed to limit the no of update on a table. Constraint of 1 update per min for each user
-
IPod 4th Gen has white screen after replacement, and restore
Okay. Here's the problem. A while ago, I dropped my iPod, and it's screen cracked. I've been living with it ever since perfectly, but just with a cracked screen. Now, I ordered a new screen, and I begin to replace it. I knew how, and like an easy job
-
Conditional HTML in a JSP page?
I've been scouring the help and web for about 2 hours and haven't found a way to do this yet. What I'm trying to do is to conditionally generate attributes to a html tag via JSP, but everything I've tried (even stuff that's valid JSP) won't pass the
-
Hide your JS code? Now it's possible...
If anyone's is interested in being able to have a binary, practically non-reversible version of their JS scripts for PS versions CS to CS3 (Windows only at the moment; Earlier versions will probably work as well, but are not tested yet), I've develop
-
Adobe AIR Update for Android FAILS TO UPDATE
Why is the update for Adobe AIR failing to update and also why is it that nobody is able to install?