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

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 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:
Starting user console version 7.5.
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)
BpjavaLoginModule:Setting ServerRequest debug:262144
Connecting to vnetd service over PBX port = 1556
ServerInterface:Logon:Exception encountered null
ServerInterface:Logon - Initial host:null, Current, PBX port:1556
Can not connect to the NB-Java authentication service on on port 1556.  Exception:
Will Restore's picture

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

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.

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>(
        at vrts.common.utilities.CommonFrame.<init>(
        at vrts.nbe.BaseNBEFrame.<init>(
        at vrts.nbe.LoginFrame.<init>(
        at vrts.nbe.JavaPresentationLayer.initiateLogin(
        at vrts.nbe.UserConsole.main(
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


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= ; 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= ; 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$ Source)
        at Method)
        at java.awt.Toolkit.getDefaultToolkit(Unknown Source)
        at vrts.common.utilities.Util.getImage(
        at vrts.nbu.client.JBP.LocalizedConstants.<clinit>(
        at vrts.nbe.UserConsole.getLoginTitle(
        at vrts.nbe.JavaPresentationLayer.initiateLogin(
        at vrts.nbe.UserConsole.main(
Andy Welburn's picture

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

-> 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


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