Backing up DPM2012R2 Database with a different DPM Server
Hi,
is it still a recommended way to backup up a DPM 2012R2 database (-> pure SQL on the same Server) with another DPM2012R2 Server?
So just attach it and back it up (like in DPM2010)?
Or shall one always use dpmbackup.exe?
If supported / recommended is it possible to backup a DPM 2012SP1 database with a DPM 2012R2 Server?
Thanks in advance
/bkpfast
My postings are provided "AS IS" with no warranties and confer no rights
Hi,
Using native DPM backup using D2D is fine for non disaster recovery scenario, otherwise D2T or D2D2T or using secondary protection is best. DPMBACKUP is non automated, so that is good for ad-hoc backups before major updates.
Scheduling native SQL backups is also viable solution.
If using Secondary DPM Server, both primary and secondary must be the same DPM versions including updates.
Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. Regards, Mike J. [MSFT] This
posting is provided "AS IS" with no warranties, and confers no rights.
Similar Messages
-
How to move Hyper-V virtual backups to different DPM server
First off, I want to say that I've spent a large amount of time scanning the forums and internet for a solution to my problem with no luck. Here's the situation, as best as I can describe it:
We currently have 2 2012 R2 DPM servers. Let's call them DPM1 and DPM2. DPM 1 was originally, before my employment here, setup as a primary DPM server backing up a Hyper-V HostServer1 (server 2012 R2) that had 4 virtuals
on it. DPM was setup to backup JUST the virtuals on HostServer1, nothing native on the host itself (files, etc.)
At some point later on DPM2 Server was created, and I believe setup as a Secondary DPM server to DPM1. (I'm not completely certain of this, as it does not appear to be setup that way now, but I can't tell for sure) but I believe it was because of the
specific error I'm getting (more on that in a moment)
We want to start backing up the virtuals that are on HostServer1 using DPM2, instead of DPM1. Again, before I started here, the previously person removed all content from DPM1 (protection groups and replica's of the 4 virtual servers that were on
HostServer1, and uninstalled the DPM1 client from HostServer1.
Today I am attempting to add back protection of this HostServer1, but to DPM2. I am able to successfully install the DPM client from DPM2 to HostServer1. When I create a new protection group to DPM2, and navigated down the protection options,
I can see the 4 virtuals running on HostServer1. Here's the weird thing:
I can ADD 3 of the 4 virtuals to the protection group without issue, and successfully back them up! However, ONE virtual, when I check the box throws this error:
"You have chosen to protect replicas on another DPM server (primary DPM server). We recommend that you protect the DPM database of the primary DPM server along with the replicas. Without protecting the DPM Database, you will not be able
to recover the replicas of the primary DPM server in case of a disaster where the DPM Database and the replicas are lost."
It then throws this error:
"One or more of the selected data sources are already configured for protection on the primary DPM server. When you switch back protection, the replicas of these data sources will be protected from the primary DPN server. (ID: 31162)"
If I continue through the PG setup wizard, I see that under the PG game, the DPM1 server name listed, and then this one virtual listed underneath it and the replica shows "unable to configure protection."
I have found numerous threads with this error, but the solutions (ranging from running PS scripts using Attatch-ProductionServer.ps1, to Remove-ProductionServer.ps1 from the primary DPM1 box, etc.) all have failed. Some of these threads are similar
it seems, to my issue, but most of the threads seem to be with an issue when the DPM client is on a protected server, instead of a Hyper-V box running off of a Hyper-V Host, as in my case.
I am either barking up the wrong tree, or not implementing these available DPM PS scripts properly. Can anyone assist me in pointing out what I might be doing wrong, or if that's not the issue, point me in the right direction?
The odd thing here is that 3 of the 4 virtuals work fine when I moved them to DPM2. Only one virtual (which doesn't have a DPM agent on it) throws this error. Somehow, it's as if this particular .vhd has something tagged on it that's making DPM2
think that it's being protected somehow, by DPM1, which is not, or no longer, the case. If it was a DPMDB issue, why are 3 of the 4 other virtuals working fine?
There may be missing information here that's causing this confusing; I'm not entirely sure all 4 were originally backed up by DPM1; but I *BELIEVE* they were. it could be just the troublesome virtual was, not %100 certain of that.
There has to be some way to clear out the reference to DPM1 from this HostServer1, virtual, or DPMDB right? Wherever the issue lies? I would think it's in one of those.
We are not interested in having a Primary or Secondary server any longer, so if the fix somehow lies in clearing out all references the 2 DPM servers of "Primary vs. Secondary", that's fine too. We want 2 separate DPM servers protection two
different sets of Hyper-V hosts, unaware of each other.
Any assistance would be much appreciated!Hi,
See DPM 2012 content: Unsupported Scenarios for DPM under heading "Moving protected servers with DPM
secondary servers"
With that said, if you call support have the DPM engineer reference ID 2507990- they can assist in cleaning up the DPM2 database so VM's can be protected.
Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. Regards, Mike J. [MSFT] This
posting is provided "AS IS" with no warranties, and confers no rights. -
Trying to restore a database with RMAN in new server
Hello,
Database: Oracle 10gR2
O/S: Windows Server 2003
My RMAN backuppieces are stored in a network drive:
\\old_location\FULL
and
\\old_location\INC
I'm trying to restore a whole database with RMAN in another server from my FULL backup.
For that, I copy all backuppieces files
from: \\old_location\FULL
to new server: D:\new_location\
Also I created the relevant folder hierarchy under <ORACLE_BASE> directory, as follows:
a. Create BDUMP, CDUMP, and UDUMP directories under '<ORACLE_ BASE>\admin' directory
b. Create <DATABASE_NAME> directory under '<ORACLE_BASE>\oradata' directory
c. pfile.ora and controlfile (CTL_MTDPROD_2308_20120401_1.CTL) are backup from original database and they are in D:\new_location\
d. I copied pfile.ora and controlfile to folder: C:\oracle\product\10.2.0\db_1\database\
I started creating an instance in new server from scratch:
C:\>oradim -new -sid MTDPROD -intpwd mtdprod
C:\> SET ORACLE_SID=MTDPROD
C:\> rman
RMAN> connect target sys
RMAN> SET DBID=21692876873
RMAN> STARTUP force nomount PFILE=C:\oracle\product\10.2.0\db_1\database\init_mtdprod.ora
RMAN> restore controlfile from 'C:\oracle\product\10.2.0\db_1\database\CTL_MTDPROD_2308_20120401_1.CTL';
RMAN> alter database mount;
#Since I want to read my backuppieces from D:\new_location and not from \\old_location\FULL then I catalog and restore like:
RMAN> catalog start with 'D:\new_location\';
RMAN> restore database;
Starting recover at 25/04/12
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=541 devtype=DISK
channel ORA_DISK_1: starting incremental datafile backupset restore
channel ORA_DISK_1: specifying datafile copies to recover
recovering datafile copy fno=00003 name=D:\BD_MTDPROD\CONTROLFILES\SYSAUX01.DBF
recovering datafile copy fno=00004 name=D:\BD_MTDPROD\CONTROLFILES\USERS01.DBF
recovering datafile copy fno=00007 name=D:\BD_MTDPROD\DATAFILES_DATA\MSE.ORA
recovering datafile copy fno=00010 name=D:\BD_MTDPROD\DATAFILES_DATA\EXPEDIENTES2.ORA
channel ORA_DISK_1: reading from backup piece \\old_location\FULL\FULL_MTDPROD_20120401_2304_1.BAK
channel ORA_DISK_1: restored backup piece 1
channel ORA_DISK_1: failover to piece handle=D:\new_location\FULL\FULL_MTDPROD_20120401_2304_1.BAK tag=TAG20120401T190004
.....(continues)
Questions:
1. RMAN still reads from old_location. The only way to avoid that would be deleting all files from \\old_location\FULL ?
2. The message "failover to piece handle=D:\new_location\...." indicates that that file is not usefull? I just copy them from old_location to new_location... how can they get useless?
I suspect there is something in controlfile that redirects to \\old_location\FULL\ and doesn't let to read from D:\new_location\
Please, advice.user521219 wrote:
Questions:
1. RMAN still reads from old_location. The only way to avoid that would be deleting all files from \\old_location\FULL ?
2. The message "failover to piece handle=D:\new_location\...." indicates that that file is not usefull? I just copy them from old_location to new_location... how can they get useless?
I suspect there is something in controlfile that redirects to \\old_location\FULL\ and doesn't let to read from D:\new_location\Is this a cold backup? Did you change the location of control file in your PFILE or is it still pointing to old location?
You may want to check the output of RESTORE DATABASE PREVIEW command, which will just report which backup files it uses without actually restoring thhe DB. -
How to import whole database (with data) from remote server?
I am using oracle sql developer 2.1. Our main database server is in USA, we use this from Bangladesh. We also a local copy here time to time updataed.
Is there any way copy or migrate the whole database with data from usa server to our local serve using sql developer 2.1?
we use windows server 2003 service pack 2 in local server.I replied to you in Import Data wizard not found and stand by my suggestions.
Regards,
K. -
How to keep same database with two different names in SharePoint 2013 for two different applications
Hi All,
I have very strange situation.
I had SP2010 production database(wss_content_contoso) migrated to SP13 few months back to migrate one site collection only while I have 15 site collections stored in this database and created a site contoso.com
Now, I want to migrate same(wss_content_contoso) SP2010 database to SP13 and want to create contoso2.com.
I changed database name from wss_content_contoso to wss_content_contoso2 and assigned newID during mount process.
After this exercise, I don't see any site for contoso2.com and issue seems to be the same database.
My question is!!!!
How I can keep both databases(actually same database with different names) and run both application simultaneously?
Any help appreciated!!
Thank you,
AM
AM Senior SharePoint ConsultantYou need to run Backup-SPSite/Restore-SPSite on each Site Collection you want to 'duplicate'. You cannot restore the same Content Database to the same farm as the Site Collections have the same GUID, which is stored globally for the farm.
Trevor Seward
Follow or contact me at...
  
This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs. -
Deploying a copy of existing database with a different name on the same server
I am a developer(an inexperienced one) trying to understand what is the best way to deploy a brand new database with
the exact same schema as an existing DB on the same server, but with a different name. I want to preserve the data in all reference tables which I can do by having the relevant post-deployment scripts run after the deployment.
What I can't understand is how the project should be set up to deploy database Customer_2 if database Customer_1 exists on
this server - the Visual Studio project contains DB Customer and I need to find a way to be able to deploy Customer_N (but without creating N identical DB's in the project). I checked a ton of articles and blogs, and feel dumb asking this question but haven't
been able to understand it yet. Any help would be appreciated.Hello,
Maybe the TargetDatabase and the DeployToDatabase properties can help you.
http://www.asp.net/web-forms/tutorials/deployment/web-deployment-in-the-enterprise/deploying-database-projects
You can deploy multiples databases from one project if you want, as explained on the following
post:
http://stackoverflow.com/questions/1544966/gdr-deploying-multiple-database-targets-with-one-project
Hope this helps.
Regards,
Alberto Morillo
SQLCoffee.com -
Backing up remote databases with RMAN?
Hi there
Implementing RMAN (10g) for the first time, and have a few general questions.
We want to use RMAN to backup a number of remote instances.
1. What would be the architecture for this? Would i have a single, central RMAN instance ie a blank database with only a rec cat installed, and from there have all the target databases connecting in?
2. How would these remote target dbs communicate with the RMAN instance? TNS? dblinks?
I know they have to be registered with the RMAN instance, but how would they be recognised to begin with?
3. If i'm backing up to storage, does the storage need to be connected to the RMAN server, or the target database server?
I know these are probably really basic, but i've read through the manuals and these questions aren't adequately answered.
Thanks in advance to all who answer!
Rup1. Its always a good idea to have seperate recovery catalog database, in case of a database loss, you have your backup information on other database.
2. you can connect rman to target database as
connect target /
or
connect target user/pass@mylink
connect catalog catuser/catuser@catdblink
when connecting for backup, you have to connect to target (which you want to backup) and then to catalog database , so RMAN knows which is to backed up and where to catalog
3. in all cases, rman will generate backup sets on target database server, you will have to nfs mount your storage to that server, if using tape library, then configure media manager for that target
null -
I did something incredibly stupid. I plugged my iPhone into my computer, and when iTunes asked if I wanted to back it up, I said yes. It asked if I would like to back it up as a new iPhone or from an older backup the computer had saved. This is an old iPhone (4S) so I clicked on an older backup. I assumed it would just add on to the current iPhone's contacts and photos but it replaced all of them with old contacts and photos.
I have completely lost all contacts and photos and videos and they have been replaced with contacts from a different phone owned by someone in my household. Is there any way at all to undo this backup and get my old phone back?Just restore you phone with the correct backup if you have it
-
Can I have a primary database and standby database with a different windows version?
Hi
I need your help.
We need to increase the memory in the server where is the standby database , but first, we need to upgrade the windows version.
The actual version is windows 2003 standard edition 64 bits
The new version will be windows 2003 enterprise edition 64 bits
This difference in windows version between primary and standby servers can cause a problem in the synchronization between primary and standby databases ??
What do you recommend? Have both servers in the same windows version?
The databases are in SQL SERVER 2005.
Thanks.
LoreinnThis difference in windows version between primary and standby servers can cause a problem in the synchronization between primary
and standby databases ??<o:p></o:p>
There is no issue with database synchronization as long as SQL Server is of same version.<o:p></o:p>
What do you recommend? Have both servers in the same windows version?<o:p></o:p>
OS(Windows version) has no restriction for using SQL server 2005 database mirroring/log shipping. You can go with upgrade without any worries on SQL
database side.<o:p></o:p> -
HT4436 backing up two iphones with two different apple ids
The guy at the AT&T store setup my two iphones, I want to back them up to two different apple ids and cannot figure out how to disconnect them.
They backup to one account.
Is there an easy step by step to follow.
thanks for any help!!!Welcome to the Apple Community.
You need to create a new account for one of the phones.
In order to change your Apple ID or password for your iCloud account on your iOS device, you need to delete the account from your iOS device first, then add it back using your updated details. (Settings > iCloud, scroll down and hit "Delete Account") -
Creating a database with Sun Java Application Server 9
I am using a slightly outdated reference book on J2EE programming. It gives 2 methods of creating a database used in its casestudies. The first is an ANT script that gives the following output:
D:\original\CaseStudy-2-5\CaseStudy\Day02\exercise>asant database
Buildfile: build.xml
env-user:
prop-user:
set-user:
env-password:
prop-password:
read-password:
set-password:
set-j2ee:
create-jdbc:
set-j2ee:
asadmin:
[echo] asadmin.bat create-jdbc-resource user admin password password --
connectionpoolid PointBasePool --enabled=true jdbc/Agency
[exec] Usage: create-jdbc-resource [--terse=false] [--echo=false] [--intera
ctive=true] [--host localhost] [--port 4848|4849] [--secure | -s] [--user admin_
user] [--passwordfile file_name] --connectionpoolid id [--enabled=true] [--descr
iption text] [--target target(Default server)] jndi_name
[exec] CLI193 Password option "password" is not allowed on the command line
. Please use --passwordfile option or asadmin login command.
set-j2ee:
asadmin:
[echo] asadmin.bat list-jdbc-resources user admin password password
[exec] Usage: list-jdbc-resources [--terse=false] [--echo=false] [--interac
tive=true] [--host localhost] [--port 4848|4849] [--secure | -s] [--user admin_u
ser] [--passwordfile file_name] [target (Default server)]
[exec] CLI193 Password option "password" is not allowed on the command line
. Please use --passwordfile option or asadmin login command.
set-dbpath:
BUILD FAILED
D:\original\CaseStudy-2-5\CaseStudy\common\targets.xml:87: D:\Sun\SDK\pointbase\
lib not found.
Total time: 2 seconds
D:\original\CaseStudy-2-5\CaseStudy\Day02\exercise>
I've checked and there is no Sun\SDK\pointbase folder. The book was written for SDK 1.4 and I believe another application server. There is also a Java program that attempts to create it with jdbc. Its output looks like this :
D:\original\CaseStudy-2-5\CaseStudy\Day02\exercise\classes>java CreateAgency
java.lang.ClassNotFoundException: com.pointbase.jdbc.jdbcUniversalDriver
java.lang.ClassNotFoundException: com.pointbase.jdbc.jdbcUniversalDriver
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:169)
at CreateAgency.main(Unknown Source)
D:\original\CaseStudy-2-5\CaseStudy\Day02\exercise\classes>
I am not conversant enough to discuss the corrections for the ANT script but I'm reasonably certain the Java program could work if I had the right strings in these lines.
// PointBase
private static final String driver = "com.pointbase.jdbc.jdbcUniversalDriver";
private static final String protocol = "jdbc:pointbase:server://localhost/sun-appserv-samples,new";
private static final String user = "pbPublic";
private static final String password = "pbPublic";
Can anyone help me with the correct driver and protocol?
I am using the latest download version SDK JavaEE5
the entire java program looks like this:
import java.sql.*;
public class CreateAgency {
// Cloudscape
//private static final String driver = "COM.cloudscape.core.RmiJdbcDriver";
//private static final String protocol = "jdbc:cloudscape:rmi:Agency;create=true";
//private static final String user = "";
//private static final String password = "";
// PointBase
private static final String driver = "com.pointbase.jdbc.jdbcUniversalDriver";
private static final String protocol = "jdbc:pointbase:server://localhost/sun-appserv-samples,new";
private static final String user = "pbPublic";
private static final String password = "pbPublic";
public static void main(String[] args) {
Connection conn=null;
Statement s=null;
try {
Class.forName(driver);
System.out.println("Loaded driver: "+driver);
conn = DriverManager.getConnection(protocol,user,password);
System.out.println("Connected to: "+protocol);
conn.setAutoCommit(false);
s = conn.createStatement();
System.out.println("Dropping exisiting BMP tables...");
try {s.execute("drop table ApplicantSkill");} catch (SQLException ex){}
try {s.execute("drop table Applicant");} catch (SQLException ex){}
try {s.execute("drop table JobSkill");} catch (SQLException ex){}
try {s.execute("drop table Job");} catch (SQLException ex){}
try {s.execute("drop table Matched");} catch (SQLException ex){}
try {s.execute("drop table Customer");} catch (SQLException ex){}
try {s.execute("drop table Location");} catch (SQLException ex){}
try {s.execute("drop table Skill");} catch (SQLException ex){}
System.out.println("Dropped tables");
System.out.println("Creating new tables...");
s.execute("create table Skill(name varchar(16) CONSTRAINT pk_skill PRIMARY KEY (name), description varchar(64))");
s.execute("create table Location(name varchar(16)CONSTRAINT pk_location PRIMARY KEY (name), description varchar(64))");
s.execute("create table Applicant(login varchar(16) CONSTRAINT pk_applicant PRIMARY KEY (login), name varchar(64), email varchar(64), summary varchar(512), location varchar(16), CONSTRAINT fk_location FOREIGN KEY (location) REFERENCES Location(name))");
s.execute("create table ApplicantSkill(applicant varchar(16), skill varchar(16), CONSTRAINT fk_applicant FOREIGN KEY (applicant) REFERENCES Applicant(login), CONSTRAINT fk_skill FOREIGN KEY (skill) REFERENCES Skill(name))");
s.execute("create table Customer(login varchar(16) CONSTRAINT pk_customer PRIMARY KEY (login), name varchar(64), email varchar(64), address1 varchar(64), address2 varchar(64))");
s.execute("create table Job(ref varchar(16), customer varchar(16), description varchar(512), location varchar(16), CONSTRAINT pk_job PRIMARY KEY (ref,customer), CONSTRAINT fk_customer FOREIGN KEY (customer) REFERENCES Customer(login), CONSTRAINT fk_location FOREIGN KEY (location) REFERENCES Location(name))");
s.execute("create table JobSkill(job varchar(16), customer varchar(16), skill varchar(16), CONSTRAINT fk_job FOREIGN KEY (job,customer) REFERENCES Job(ref,customer), CONSTRAINT fk_skill FOREIGN KEY (skill) REFERENCES Skill(name))");
s.execute("create table Matched(applicant varchar(16), job varchar(16), customer varchar(16), exact boolean, CONSTRAINT fk_job FOREIGN KEY (job,customer) REFERENCES Job(ref,customer), CONSTRAINT fk_applicant FOREIGN KEY (applicant) REFERENCES Applicant(login))");
System.out.println("Created tables");
System.out.println("Inserting table records...");
s.execute("insert into Location values ('London','London UK')");
s.execute("insert into Location values ('Washington','Washington DC, USA')");
s.execute("insert into Location values ('Verona','Verona, Renaissance Italy')");
s.execute("insert into Location values ('Wessex','Wessex, Kingdom of England')");
s.execute("insert into Skill values ('Tree Surgeon','Tree Surgeon')");
s.execute("insert into Skill values ('Cigar Maker','Cigar Maker')");
s.execute("insert into Skill values ('Bodyguard','Bodyguard')");
s.execute("insert into Skill values ('Cook','Cook')");
s.execute("insert into Skill values ('Lawyer','Lawyer')");
s.execute("insert into Skill values ('Critic','Critic')");
s.execute("insert into Applicant values ('juliet','Juliet Capulet', 'juliet@localhost' , 'Dutiful daughter', 'London' )");
s.execute("insert into Applicant values ('romeo','Romeo Montague', 'romeo@localhost' , 'Dutiful son', 'Wessex' )");
s.execute("insert into Applicant values ('julius','Julius Caesar', 'julias@localhost' , 'Roman Emperor', 'Washington' )");
s.execute("insert into Applicant values ('brutus','Marcus Brutus', 'marcus@localhost' , 'Roman Senator', 'Washington' )");
s.execute("insert into Applicant values ('proteus','Proteus', 'proteus@localhost' , 'Gentleman', 'Verona' )");
s.execute("insert into Applicant values ('valentine','Valentine', 'valentine@localhost' , 'Gentleman', 'Verona' )");
s.execute("insert into ApplicantSkill values ('juliet', 'Cook')");
s.execute("insert into ApplicantSkill values ('romeo', 'Cook')");
s.execute("insert into ApplicantSkill values ('romeo', 'Bodyguard')");
s.execute("insert into ApplicantSkill values ('julius', 'Tree Surgeon' )");
s.execute("insert into ApplicantSkill values ('julius', 'Tree Surgeon' )");
s.execute("insert into ApplicantSkill values ('brutus', 'Critic' )");
s.execute("insert into ApplicantSkill values ('brutus', 'Lawyer' )");
s.execute("insert into ApplicantSkill values ('proteus', 'Lawyer' )");
s.execute("insert into ApplicantSkill values ('proteus', 'Critic' )");
s.execute("insert into ApplicantSkill values ('valentine', 'Critic' )");
s.execute("insert into ApplicantSkill values ('valentine', 'Cigar Maker' )");
s.execute("insert into Customer values ('george','George Washington', 'george@localhost', 'White House', 'Washington')");
s.execute("insert into Customer values ('winston','Winston S Churchill', 'winston@localhost', '10 Downing Street', 'London')");
s.execute("insert into Customer values ('abraham','Abraham Lincoln', 'abe@localhost', 'Springfield', 'Illinois')");
s.execute("insert into Customer values ('alfred','Alfred the Great', 'alf@localhost', 'Wessex', 'England')");
s.execute("insert into Job values ('Tree pruner', 'george', 'Must be honest', 'Washington')");
s.execute("insert into Job values ('Cigar trimmer', 'winston', 'Must like to talk and smoke', 'London')");
s.execute("insert into Job values ('Theatre goer', 'abraham', 'Should be intelligent and articulate', 'Washington')");
s.execute("insert into Job values ('Cake maker', 'alfred', 'Should have a good sense of smell', 'Wessex')");
s.execute("insert into JobSkill values ('Tree pruner','george','Tree Surgeon')");
s.execute("insert into JobSkill values ('Cigar trimmer', 'winston', 'Cigar Maker')");
s.execute("insert into JobSkill values ('Cigar trimmer', 'winston', 'Critic')");
s.execute("insert into JobSkill values ('Theatre goer', 'abraham', 'Bodyguard')");
s.execute("insert into JobSkill values ('Theatre goer', 'abraham', 'Lawyer')");
s.execute("insert into JobSkill values ('Theatre goer', 'abraham', 'Critic')");
s.execute("insert into JobSkill values ('Cake maker', 'alfred', 'Cook')");
System.out.println("Inserted records");
conn.commit();
System.out.println("Committed transactions");
catch (SQLException ex) {
System.out.println("SQL Exception thrown: "+ex);
ex.printStackTrace();
try { conn.rollback(); } catch (Exception e) {}
catch (ClassNotFoundException ex) {
System.out.println(ex);
ex.printStackTrace();
finally {
try { s.close(); } catch (Exception ex) {}
try { conn.close(); } catch (Exception ex) {}
}JavaEE Tutorial has a chapter on security:
http://java.sun.com/javaee/5/docs/tutorial/doc/
Usually a no-arg InitialContext() is used, rather than InitialContext(props). For more info, see
Glassfish EJB FAQ:
https://glassfish.dev.java.net/javaee5/ejb/EJB_FAQ.html
-cheng -
Create 10g Database with ASM on Windows Server 2003 x64
I am running Windows 2003 Server Enterprise x64 on a Dell server and wish to install Oracle 10g 10.2 with ASM.
First, I performed a software only install. Then, I created several raw partitions on each of two SATA2 disks, and created a disk group - DGROUP1 - using two partitions from each disk. So far so good.
Next, I tried to use DBCA to create a general purpose database using ASM, and that is where the problem arose. I can use sqlplus to stop and start the ASM instance, but when I use DBCA to select ASM for storage I am asked for the SYS password for ASM. I enter it and get a message "Passwords cannot be verified because: Io exception: The network adapter could not establish the connection". If I ignore this I can go on to select my DGROUP1, but the installation ultimately fails due to "insufficient privileges".
Can anyone please help?Hi Martin
Thanks for the reply. I used ASMTOOLG to stamp the disks and then used DBCA and followed the description hereo create the disk group DGROUP1:
http://www.databasejournal.com/features/oracle/article.php/3571371
At one point, DBCA prompted me to run "localconfig add", which I did.
If it is a missing password file that is the problem, is it possible to create one to put things right?
Charles -
Spamassasin and users database with sun java messaging server
Does anybody has managed to deploy spam scanning using personal databases (bayesian filters databases), i mean using spamassasin with user databases.
Thanks,
Andr�s.Yea, i do the same thing, but i see that some people want to receive mail that other people don't want.
Can i ask you another question? How do you deploy sa-learn?
I use this scripts:
learn_nospam.sh
dir_nospam='/mail_store/*/*/*/\=no_spam/*/*.msg'
for i in $dir_nospam
do
echo $i
sa-learn no-sync ham $dir_nospam
done
sa-learn --sync
learn_spam.sh
dir_spam='/mail_store/*/*/*/\=spam/*/*.msg'
for i in $dir_spam
do
echo $i
sa-learn no-sync spam $dir_spam
done
sa-learn --sync
That 's works but it too slow, do you know some other ways.
Thank you very much,
Andr�s. -
How to move CR 2008 CMS database to a different SQL Server
I am trying to figure out how best to do this..all of the help articles discuss moving from XI to server 2008.. I already have 2008 running with a CMS database.. but I need to move the database to a new SQL box. I have looked at the import wizard and the database migration, but wasn't sure those were the right tools.
If anyone has done this... would appreciate some help. If it is as simple as changing the DSN on CR Server.. already hanging my head in shame..
To clarify.. I know how to restored the SQL database on the new server.. unclear how to make CR Server aware of the change
Edited by: Vicki Texeira on Aug 10, 2011 11:23 PMHi,
As i understand you want to change the cms database.
You can do this by going to
CCM>Select SIA>Stop SIA>Properties>Configuration>click the specify tab next toCMS System database configuration>update data sourse settings.
From there you can create a database using any connection.
let me know if this was helpfull.
Regards
Prithvi -
ISV embedding database with one instance per server limitation
Hi All,
As an ISV, it would be nice for Oracle to provide a better embedding solution than a silent install then having to script the creation of, or restore the database. Not because it's too complicated for an ISV to script, but purely for speed reasons. It's much faster to copy pre-loaded data files onto a machine than to create empty data files, load the data in, perform an analyze and any other scripts on the database. Dems just my thoughts.
However, my real issue is regarding the 'one instance per server' install limitation. As an ISV, if I choose to embed Oracle XE in my application - how can I 'guarantee' that my product can be installed on any given server. Picture this:
- We submit a proposal/ tender for a license to our software.
- Client, in conjunction with their IT dept adds internal costs, identifying servers that will run on, responsibilities, project plans (the whole works) etc.
- Client gets signoff from their management and pays for license.
- Client goes to install our software using Oracle XE just to find that another ISV has their software with Oracle XE embedded installed on the server.
- Client either has to find/ buy another server, or we lose the license. Either way, client is unhappy.
Am I missing something here? Is anyone else anticipating this problem?
BradHi Florin,
Thanks for the response.. a good suggestion and our schema would be < 1GB so size would hopefully not be a problem. However, as soon as we plug into another appliation's Oracle XE implementation - we've potentially lost control of the database and it loses it's "embedded" nature. Probably not a huge problem if it's an application independant implementation of Oracle XE by an IT person, but if it's another ISVs embedded database - the dramas could start.
We effectively put our user's database within the control of another application who may not have considered the possibility of our data residing there. eg. They could do a 'drop-all' and we lose our database. Or tune the database right down and our application suffers. Or the user uninstalls that application and it decides to automatically remove Oracle XE (after all, that ISV thought it was an embedded application, right?). Do you see the potential issues?
Perhaps Oracle XE isn't as attractive for ISVs as first thought... I guess at the heart of the issue is the fact that Oracle XE isn't really an embedded database. It's just a database you can [silently] install with your application and then becomes a general db on the machine.
Maybe you are looking for
-
Mapping between the info cube fields and fields in the data source in sap r
In Bi7.0 in which database did the mapping between the Infocube objects and the datasource object will be store Here i have used the r3 system
-
the text of my incoming emails is not showing when I tap the message. I probably changed some setting by mistake but I don't know what i did. would like to be able to read my emails on the screen. the 2 line starting area shows fine.
-
A beginner in desperate need of help :D!
Hi all! First time posting on these forums, but I have been a lurker for a long time. I'm making a website for someone who specifically requested using Flash, and I know how to do everything...well almost everything. I've attached the entire site wit
-
Can I listen to an audiobook while I run?
I just purchased an audiobook for $25 and then I found out that I can't listen to an audiobook while in the Nike+iPod mode. Anyone figure out how to do this yet? Thanks, Beth. Windows XP
-
What is the use implemention of work flow
Hi guis, can u plz tell me what is the uses, u implement a workflow, and also please give the one scenrio on purchase order or invoice or anything, one scenrio explain me.