- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: help on Package Building Swpackage/swinstall
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2008 12:00 AM
11-04-2008 12:00 AM
I am working for client in a outsourcing project. I was planning to automate the packaging and deploying activity. As i have know swinstall/swpackage of HP UX. i started preparaing psf file,etc.
I dont have super user password and i cant get superuser password; as i am developer.
As per my knowledge swinstall/swpackage needs root login for executon.
I have a question is there any other user through which i can execute above commands. Or is there any specific privelges i will get for my dev user so that i can run above commands.
Can anyone help on this....
Thanks
Bhushan
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2008 12:34 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2008 09:16 PM
11-04-2008 09:16 PM
Re: help on Package Building Swpackage/swinstall
I am to create package and install it succesfully with -x run_as_superuser=false
I am using following lines for packaging and installing.
swpackage -vv -x run_as_superuser=false -x media_type=tape -s packaging.psf @ SDK_AUTO_DEMO.depot
swinstall -x run_as_superuser=false -s /home/opsman/Bhushan/packaging/SDK_AUTO_DEMO.depot SDK_AUTO_DEMO
But when i am trying to reomve with following line i am getting an error
swremove -p -v -x run_as_superuser=false -d SDK_AUTO_DEMO.Binaries @ /home/opsman/Bhushan/packaging/SDK_AUTO_DEMO.depot
ERROR: "hwbbsb05:/home/opsman/Bhushan/packaging/SDK_AUTO_DEMO.depot":
Cannot establish a lock on this target because of an external
error (for example, the lock file could not be created).
* Target connection failed for
"hwbbsb05:/home/opsman/Bhushan/packaging/SDK_AUTO_DEMO.depot".
ERROR: More information may be found in the daemon logfile on this
target (default location is
hwbbsb05:/var/adm/sw/swagentd.log).
* Selection had errors.
Can anyone please help in resolving the above error.
Thanks in advance.
Bhushan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2008 10:02 PM
11-04-2008 10:02 PM
Re: help on Package Building Swpackage/swinstall
swremove -p -v -x run_as_superuser=false -d SDK_AUTO_DEMO.Binaries @ /home/opsman/Bhushan/packaging/SDK_AUTO_DEMO.depot
Why are you using -p?
You don't use -d nor @ if you installed it in / like you did above.
What does "swlist -l fileset x run_as_superuser=false SDK_AUTO_DEMO" show?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2008 10:03 PM
11-04-2008 10:03 PM
Re: help on Package Building Swpackage/swinstall
swlist -l fileset -x run_as_superuser=false SDK_AUTO_DEMO
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2008 10:09 PM
11-04-2008 10:09 PM
Re: help on Package Building Swpackage/swinstall
# Initializing...
# Contacting target "hwbbsb05"...
# Installed software catalog: /var/home/opsman/sw/products
#
# Target: hwbbsb05:/
#
# SDK_AUTO_DEMO 1.0 HP OpenView Software Distributor
SDK_AUTO_DEMO.Binaries
Can you please help in how swremove statement looks like.
Thanks
Bhushan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2008 10:14 PM
11-04-2008 10:14 PM
Re: help on Package Building Swpackage/swinstall
swremove -v -x run_as_superuser=false SDK_AUTO_DEMO.Binaries
This works..
Thanks for ur help
Bhushan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2008 01:11 AM
11-05-2008 01:11 AM
Re: help on Package Building Swpackage/swinstall
If you are happy with the answers you have gotten, please read the following about assigning points:
http://forums.itrc.hp.com/service/forums/helptips.do?#33
http://forums.itrc.hp.com/service/forums/pageList.do?userId=WW147055&listType=unassigned&forumId=1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2008 02:16 AM
11-05-2008 02:16 AM
Re: help on Package Building Swpackage/swinstall
Still i am facing few issues.
I need compile/run the sql file in post installation while deploying the [package.
it always give me error/warning in post-installation. i tried with keeping sql statament in shell script sqlplus / @
exit
But above statement gives warning.
Is i am missing something while packaging or we cant run sql scrips or oracle package while installation.
Thanks
Bhushan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2008 02:29 AM
11-05-2008 02:29 AM
Re: help on Package Building Swpackage/swinstall
What is the message?
>Am I missing something while packaging or we cant run sql scrips or oracle package while installation.
If you need to reboot, you would have problems. But if you don't, you would need to make sure you have all of your PATH and other variables set in your control script.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2008 10:48 PM
11-05-2008 10:48 PM
Re: help on Package Building Swpackage/swinstall
In my post installation script i have following command
sqlplus -s rcrp/rcrp
Initiall it gives an error sqlplus not found. Then I have done user ORACLE_HOME.
/dboracle/orabase/product/9.2.0.6/bin/sqlplus -s rcrp/rcrp
Then i am getting following error
SP2-0750: You may need to set ORACLE_HOME to your Oracle software directory
As u mention we need to declare all env varibale in control scripts. I have tried few ways but still giving an error. Can you please mentiopn how to do that.
Thanks
Bhushan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-06-2008 02:14 AM
11-06-2008 02:14 AM
Re: help on Package Building Swpackage/swinstall
ORACLE_HOME=/dboracle/orabase/product/9.2.0.6
ORACLE_SID=cisa2
LD_LIBRARY_PATH=/dboracle/orabase/product/9.2.0.6
PATH=$PATH:/dboracle/orabase/product/9.2.0.6/bin
echo $PATH
echo $ORACLE_HOME
$ORACLE_HOME/bin/sqlplus ncdb/ncdb @/home/opsman/Bhushan/packaging/demo.sql
Getting following error::::
+ /dboracle/orabase/product/9.2.0.6/bin/sqlplus ncdb/ncdb @/home/opsman/Bhushan/packaging/demo.sql
Error 6 initializing SQL*Plus
Message file sp1
SP2-0750: You may need to set ORACLE_HOME to your Oracle software directory
ERROR: The "postinstall" script for "SDK_AUTO_DEMO" failed (exit code
"1"). The script location was
"/var/tmp/BAAa20562/catalog/SDK_AUTO_DEMO/pfiles/postinstall".
Need Help!!!!!!!!!!!11
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-06-2008 03:37 AM
11-06-2008 03:37 AM
Re: help on Package Building Swpackage/swinstall
It seems this thread is also getting that problem:
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1285631
>we need to declare all env variable in control scripts.
And env variable is a shell variable that is exported. So you need:
export ORACLE_HOME=/dboracle/orabase/product/9.2.0.6
export ORACLE_SID=cisa2
export LD_LIBRARY_PATH=/dboracle/orabase/product/9.2.0.6
export PATH=$PATH:/dboracle/orabase/product/9.2.0.6/bin
(You probably don't need it for PATH since already exported.)