Video Screencast Help

Oracle Backup/Restore

Created: 13 Mar 2013 | 18 comments

Trying to perform backups and restores on a Linux Server which has Oracle. My Netbackup Master Server is Windows 2008. My laptop is a Mac

I was able to successfully backup the Oracle DBs (I used the hot_database_backup.bch script) but my issue is now restoring the DBs. Reading the Oracle Admin Guide I see a few different options

1) From Master Server I open Backup, Archive, Restore Window and I can see a "Oracle" icon but no history or ability to expand the selection so this doesn't seem to be any help in performing a restore

2) From client "/usr/openv/netbackup/bin/jbpSA &" but when I run this it gives me an error regarding about a X11 display. I spoke with a Mac guy in my office as I just switched to a Mac laptop and he wasn't able to help in regard to displaying the JAVA applet on my Mac. Any suggestions?

Any suggestions of how I can review backup history and select a backup to use for a restore? 

Comments 18 CommentsJump to latest comment

Tim O'Brien 2's picture

I forgot to mention I am trying to restore it back to orginal server.

Will Restore's picture

You need X client on your laptop.  (This is not supplied by Symantec)

Not sure if Macs have this by default or you need to download & set it up. 

Will Restore -- where there is a Will there is a way

Tim O'Brien 2's picture

I installed XQuartz. When I run the /usr/openv/netbackup/bin/jbpSA & command I am getting Error 526 and when trying to fix the problem it seems relevant to this link http://www.symantec.com/business/support/index?page=content&id=HOWTO51761

The PBX Service is running but I have no idea how to check the java/gui properties, I don't see a nbj.conf file? Is this file on my Mac or the target server? I assume it is on the target server. 

Tim O'Brien 2's picture

 

Not sure if this log helps
 
cat jbp.root.jbpSA.26084.log 
 
DISPLAY environment variable is set to: localhost:10.0
Console was started on:
        Linux v-inf-optmz-01.synygy.net 2.6.18-238.el5 #1 SMP Tue Jan 4 15:41:11 EST 2011 x86_64 x86_64 x86_64 GNU/Linux
 
Command line options were:
        /usr/openv/netbackup/bin/jbpSA
 
Starting user console version 7.5.
 
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=
 
java version "1.6.0_29"
Java(TM) SE Runtime Environment (build 1.6.0_29-b11)
Java HotSpot(TM) 64-Bit Server VM (build 20.4-b02, mixed mode)
 
ServerInterface:setDebugLevel:262144
BpjavaLoginModule:Setting ServerRequest debug:262144
BpjavaLoginModule:connectServer:[root][<users_pw>][v-inf-optmz-01.synygy.net][0]
Connecting to vnetd service over PBX port = 1556
ServerInterface:Logon:Exception encountered null
ServerInterface:Logon - Initial host:null, Current host:v-inf-optmz-01.synygy.net, PBX port:1556
Can not connect to the NB-Java authentication service on v-inf-optmz-01.synygy.net on port 1556.  Exception:
vrts.common.server.CantConnectToAuthServViaVNETDException
 
Will Restore's picture

Your log looks just like this recent post; see Mark's solution here:

https://www-secure.symantec.com/connect/forums/unable-log-netbackup-gui-status-526#comment-8300231

 

 

Will Restore -- where there is a Will there is a way

Tim O&#039;Brien 2's picture

I cycled the Netbackup Services and Stop/Started the pbx_exchange server.

I also accessed the sshd_config file and changed the X11Forwarding yes

Still receiving the following error.

 

java.awt.HeadlessException: 
No X11 DISPLAY variable was set, but this program performed an operation which requires it.
        at java.awt.GraphicsEnvironment.checkHeadless(Unknown Source)
        at java.awt.Window.<init>(Unknown Source)
        at java.awt.Frame.<init>(Unknown Source)
        at javax.swing.JFrame.<init>(Unknown Source)
        at vrts.common.utilities.CommonFrame.<init>(CommonFrame.java:75)
        at vrts.common.utilities.CommonFrame.<init>(CommonFrame.java:70)
        at vrts.nbe.BaseNBEFrame.<init>(BaseNBEFrame.java:83)
        at vrts.nbe.LoginFrame.<init>(LoginFrame.java:228)
        at vrts.nbe.JavaPresentationLayer.initiateLogin(JavaPresentationLayer.java:150)
        at vrts.nbe.UserConsole.main(UserConsole.java:69)
 
Andy Welburn's picture

Tim, not sure how you're doing this, but

No X11 DISPLAY variable was set, but this program performed an operation which requires it.

 

Did you not set the DISPLAY variable this time around?

Marianne's picture

Find yourself a Windows desktop with Java console, or simply use 'normal' rman commands/scripts on the client.

Supporting Storage Foundation and VCS on Unix and Windows as well as NetBackup on Unix and Windows
Handy NBU Links

Tim O&#039;Brien 2's picture

Marianne: Unfortunately using a Windows Machine is not an option

Andy:

Do I set the display variable from that same file sshd_file? 

I ran a command from my Mac : export DISPLAY=:0.0 before and that didn't help

 

 

Andy Welburn's picture

Not sure how you're doing this nor your environment per se (& currently on 'phone with someone!) but I telnet to master server, set environment variable within shell to my PCs IP address & export then run the jnbSA

e.g. DISPLAY=10.20.30.40:0.0 ; export DISPLAY

 

[[Editted a couple of times for typos - can't talk about one subject & type about another at the same time!]]

Tim O&#039;Brien 2's picture

I am trying to open the Netbackup Java Applet of the Linux Client using XQuartz

My Laptop is a Mac

Client is Linux

Using XQuartz as the X-Client App

Do I run that DISPLAY command from the terminal console on my Mac? 

I just tried the command from Mac

P90X-MBA:Desktop obrient$ DISPLAY=10.100.27.254:0.0 ; export DISPLAY

 
 
Still getting the Headless Exception Error
Will Restore's picture

export has to be run on the Linux host to redirect display to your laptop

Will Restore -- where there is a Will there is a way

Tim O&#039;Brien 2's picture

 

Now receiving this error: 

 

java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11.XToolkit
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Unknown Source)
        at java.awt.Toolkit$2.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.awt.Toolkit.getDefaultToolkit(Unknown Source)
        at vrts.common.utilities.Util.getImage(Util.java:546)
        at vrts.nbu.client.JBP.LocalizedConstants.<clinit>(LocalizedConstants.java:2073)
        at vrts.nbe.UserConsole.getLoginTitle(UserConsole.java:168)
        at vrts.nbe.JavaPresentationLayer.initiateLogin(JavaPresentationLayer.java:150)
        at vrts.nbe.UserConsole.main(UserConsole.java:69)
 
Andy Welburn's picture

Looks like the guys went thru' something similar a few months back:

https://www-secure.symantec.com/connect/forums/cou...

-> is the x-server/application running on your laptop?

..... but this still isn't getting to your original issue yet!

Tim O&#039;Brien 2's picture

yeah I found that link when trying to fix this newest issue. 

Thanks for your feedback with my issue. 

Will Restore's picture

see the XQuartz FAQ for ssh X forwarding

"http://xquartz.macosforge.org/trac/wiki/X11-UsersFAQ#"

Will Restore -- where there is a Will there is a way

Tim O&#039;Brien 2's picture

I think I need to change the following to make X Windows work.

 

Need to set the following: java -Djava.awt.headless=true

But the don't know where to make this change, I opened up jbpsa file and thought I would set it there but I don't see any referring to this.

Anyone have any thoughts of where this setting needs to be done? 

 

Will Restore's picture

Suppose you could add this to jnbSA script but I fail to see why you would need it -- we never have.

Marianne might be right - simpler to set up a Windows workstation if you are not familiar with unix.

 

Will Restore -- where there is a Will there is a way