Intalling Postgresql in solaris 10

I have downloaded the postgresql package from
www.postgresql.org/download/bittorent
i have unziped the files. i dont know how to continue with the installation.

Here is some documentation to get you started......It available online.
Author : Chris Drawater
Date
: May 2005
Version : 1.2
PostgreSQL 8.0.02 for J2EE applications on Solaris 10
Abstract
Advance planning enables PostgreSQL 8 and its associated JDBC driver to be quickly deployed in a
basic but resilient and IO efficient manner.
Minimal change is required to switch JDBC applications from Oracle to PostgreSQL.
Document Status
This document is Copyright � 2005 by Chris Drawater.
This document is freely distributable under the license terms of the GNU Free Documentation License
(http://www.gnu.org/copyleft/fdl.html). It is provided for educational purposes only and is NOT
supported.
Introduction
This paper documents how to deploy PostgreSQL 8 and its associated JDBC driver in a basic but both
resilient and IO efficient manner. Guidance for switching from Oracle to PostgreSQL is also provided.
It is based upon experience with the following configurations =>
PostgreSQL 8.0.2 on Solaris 10
PostgreSQL JDBC driver on Windows 2000
using the PostgreSQL distributions =>
postgresql-base-8.0.2.tar.gz
postgresql-8.0-311.jdbc3.jar
� Chris Drawater, 2005
PostgreSQL 8.0.2 on Solaris, v1.2
p1/10
Page 2
Background for Oracle DBAs
For DBAs coming from an Oracle background, PostgreSQL has a number of familiar concepts including
Checkpoints
Tablespaces
MVCC concurrency model
Write ahead log (WAL)+ PITR
Background DB writer
Statistics based optimizer
Recovery = Backup + archived WALs + current WALs
However , whereas 1 Oracle instance (set of processes) services 1 physical database, PostgreSQL differs in
that
1 PostgreSQL �cluster� services n * physical DBs
1 cluster has tablespaces (accessible to all DBs)
1 cluster = 1 PostgreSQL instance = set of server processes etc ( for all DBs) + 1 tuning config +
1 WAL
User accts are cluster wide by default
There is no undo or BI file � so to support MVCC, the �consistent read� data is held in the tables
themselves and once obsolete needs to be cleansed out using the �vacuum� utility.
The basic PostgreSQL deployment guidelines for Oracle aware DBAs are to =>
Create only 1 DB per cluster
Have 1 superuser per cluster
Let only the superuser create the database
Have one user to create/own the DB objects + n* endusers with appropriate read/write access
Use only ANSI SQL datatypes and DDL.
Wherever possible avoid DB specific SQL extensions to ensure cross-database portability
IO distribution & disc layouts
It is far better to start out with good disc layouts rather than reto-fix for a production database.
As with any DBMS, for resilience, the recovery components ( eg. backups , WAL, archived WAL logs)
should kept on devices separate from the actual data.
So the basic rules for resilience are as follows.
For non disc array or JBOD systems =>
keep recovery components separate from data on dedicated discs etc
keep WAL and data on separate disc controllers
mirror WAL across discs ( preferably across controllers) for protection against WAL spindle loss
For SAN based disc arrays (eg HP XP12000) =>
keep recovery components separate from data on dedicated LUNs etc
use Host Adapter Multipathing drivers (such as mpxio) with 2 or more HBAs for access to SAN .
Deploy application data on mirrored/striped (ie RAID 1+0) or write-cache fronted RAID 5 storage.
The WAL log IO should be configured to be osync for resilience (see basic tuning in later section).
Ensure that every PostgreSQL component on disc is resilient (duplexed) !
Recovery can be very stressful�
Moving onto IO performance, it is worth noting that WAL IO and general data IO access have different IO
characteristics.
� Chris Drawater, 2005
PostgreSQL 8.0.2 on Solaris, v1.2
p2/10
Page 3
WAL sequential access (write mostly)
Data sequential scan, random access write/read
The basic rules for good IO performance �.
use tablespaces to distribute data and thus IO across spindles or disc array LUNs
keep WAL on dedicated spindles/LUNs (mirror/stripe in preference to RAID 5)
keep WAL and arch WAL on separate spindles to reduce IO on WAL spindles.
RAID or stripe data across discs/LUNs in 1 Mb chunks/units if unsure as what chunk size to use.
For manageability, keep the software distr and binaries separate from the database objects.
Likewise, keep the system catalogs and non-application data separate from the application specific data.
5 distinct storage requirements can be identified =>
Software tree (Binaries, Source, distr)
Shared PG sys data
WAL logs
Arch WAL logs
Application data
For the purposes of this document , the following minimal set of FS are suggested =>
/opt/postgresql/8.0.2
# default 4 Gb for software tree
/var/opt/postgresql
# default 100 Mb
/var/opt/postgresql/CLUST/sys
# default size 1Gb for shared sys data
/var/opt/postgresql/CLUST/wal
# WAL location # mirrored/striped
/var/opt/postgresql/CLUST/archwal
# archived WALs
/var/opt/postgresql/CLUST/data
# application data + DB sys catalogs # RAID 5
where CLUST is your chosen name for the Postgres DB cluster
For enhanced IO distribution , a number of �/data FS (eg data01, data02 etc) could be deployed.
Pre-requisites !
The GNU compiler and make software utilities (available on the Solaris 10 installation CDs) =>
gcc (compiler) ( $ gcc --version => 3.4.3 )
gmake (GNU make)
are required and should be found in
/usr/sfw/bin
Create the Unix acct
postgres
in group dba
with a home directory of say /export/home/postgresql
using
$ useradd utility
or hack
/etc/group then /etc/passwd then run pwconv and then passwd postgres
Assuming the following FS have been created =>
� Chris Drawater, 2005
PostgreSQL 8.0.2 on Solaris, v1.2
p3/10
Page 4
/opt/postgresql/8.0.2
# default 4 Gb for the PostgreSQL software tree
/var/opt/postgresql
# default 100 Mb
create directories
/opt/postgresql/8.0.2/source
# source code
/opt/postgresql/8.0.2/distr
# downloaded distribution
all owned by user postgres:dba with 700 permissions
To ensure, there are enough IPC resources to use PostgreSQL, edit /etc/system and add the following lines
=>
set shmsys:shminfo_shmmax=1300000000
set shmsys:shminfo_shmmin=1
set shmsys:shminfo_shmmni=200
set shmsys:shminfo_shmseg=20
set semsys:seminfo_semmns=800
set semsys:seminfo_semmni=70
set semsys:seminfo_semmsl=270 # defaults to 25
set rlim_fd_cur=1024
# per process file descriptor soft limit
set rlim_fd_max=4096
# per process file descriptor hard limit
Thenn on the console (log in as root) =>
$ init 0
{a} ok boot -r
Download Source
Download the source codes from http://www.postgresql.org (and if downloaded via Windows, remember
to ftp in binary mode) =>
Distributions often available include =>
postgresql-XXX.tar.gz => full source distribution.
postgresql-base-XXX.tar.gz => Server and the essential client interfaces
postgresql-opt-XXX.tar.gz => C++, JDBC, ODBC, Perl, Python, and Tcl interfaces, as well as multibyte
support
postgresql-docs-XXX.tar.gz => html docs
postgresql-test-XXX.tar.gz => regression test
For a working, basic PostgreSQL installation supporting JDBC applications, simply use the �base�
distribution.
Create Binaries
Unpack Source =>
$ cd /opt/postgresql/8.0.2/distr
$ gunzip postgresql-base-8.0.2.tar.gz
$ cd /opt/postgresql/8.0.2/source
$ tar -xvof /opt/postgresql/8.0.2/distr/postgresql-base-8.0.2.tar
� Chris Drawater, 2005
PostgreSQL 8.0.2 on Solaris, v1.2
p4/10
Page 5
Set Unix environment =>
TMPDIR=/tmp
PATH=/usr/bin:/usr/ucb:/etc:.:/usr/sfw/bin:usr/local/bin:n:/usr/ccs/bin:$PATH
export PATH TMPDIR
Configure the build options =>
$ cd /opt/postgresql/8.0.2/source/postgresql-8.0.2
$ ./configure prefix=/opt/postgresql/8.0.2 with-pgport=5432 --without-readline
CC=/usr/sfw/bin/gcc
Note => --enable-thread-safety option failed
And build =>
$ gmake
$ gmake install
On an Ultra 5 workstation, this gives 32 bit executables
Setup Unix environment
Add to environment =>
LD_LIBRARY_PATH=/opt/postgresql/8.0.2/lib
PATH=/opt/postgresql/8.0.2/bin:$PATH
export PATH LD_LIBRARY_PATH
Create Database(Catalog) Cluster
Add to Unix environment =>
PGDATA=/var/opt/postgresql/CLUST/sys
# PG sys data , used by all DBs
export PGDATA
Assuming the following FS has been created =>
/var/opt/postgresql/CLUST/sys
# default size 1Gb
where CLUST is your chosen name for the Postgres DB cluster,
initialize database storage area, create shared catalogs and template database template1 =>
$ initdb -E UNICODE -A password
-W
# DBs have default Unicode char set, user basic passwords, prompt for super user password
Startup, Shutdown and basic tuning of servers
Check servers start/shutdown =>
$ pg_ctl start -l /tmp/logfile
$ pg_ctl stop
Next, tune the PostgreSQL instance by editing the configuration file $PGDATA/postgresql.conf .
� Chris Drawater, 2005
PostgreSQL 8.0.2 on Solaris, v1.2
p5/10
Page 6
First take a safety copy =>
$ cd $PGDATA
$ cp postgresql.conf postgresql.conf.orig
then make the following (or similar changes) to postgresql.conf =>
# listener
listen_addresses = 'localhost'
port = 5432
# data buffer cache
shared_buffers = 10000
# each 8Kb so depends upon memory available
#checkpoints
checkpoint_segments = 3
# default
checkpoint_timeout = 300
# default
checkpoint_warning = 30
# default � logs warning if ckpt interval < 30s
# log related
fsync = true
# resilience
wal_sync_method = open_sync
# resilience
commit_delay = 10
# group commit if works
archive_command = 'cp "%p" /var/opt/postgresql/CLUST/archwal/"%f"'
# server error log
log_line_prefix = '%t :'
# timestamp
log_min_duration_statement = 1000
# log any SQL taking more than 1000ms
log_min_messages = info
#transaction/locks
default_transaction_isolation = 'read committed'
Restart the servers =>
$ pg_ctl start -l /tmp/logfile
Create the Database
This requires the FS =>
/var/opt/postgresql/CLUST/wal
# WAL location
/var/opt/postgresql/CLUST/archwal
# archived WALs
/var/opt/postgresql/CLUST/data
# application data + DB sys catalogs
plus maybe also =>
/var/opt/postgresql/CLUST/backup
# optional for data and config files etc as staging
area for tape
Create the clusterwide tablespaces (in this example, a single tablespace named �appdata�) =>
$ psql template1
� Chris Drawater, 2005
PostgreSQL 8.0.2 on Solaris, v1.2
p6/10
Page 7
template1=# CREATE TABLESPACE appdata LOCATION '/var/opt/postgresql/CLUST/data';
template1=# SELECT spcname FROM pg_tablespace;
spcname
pg_default
pg_global
appdata
(3 rows)
and add to the server config =>
default_tablespace = 'appdata'
Next, create the database itself (eg name = db9, unicode char set) =>
$ createdb -D appdata -E UNICODE -e db9
# appdata = default TABLESPACE
$ createlang -d db9 plpgsql
# install 'Oracle PL/SQL like' language
WAL logs are stored in the directory pg_xlog under the data directory. Shut the server down & move the
directory pg_xlog to /var/opt/postgresql/CLUST/wal and create a symbolic link from the original location in
the main data directory to the new path.
$ pg_ctl stop
$ cd $PGDATA
$ mv pg_xlog /var/opt/postgresql/CLUST/wal
$ ls /var/opt/postgresql/CLUST/wal
$ ln -s /var/opt/postgresql/CLUST/wal/pg_xlog $PGDATA/pg_xlog
# soft link as across FS
$ pg_ctl start -l /tmp/logfile
Assuming all is now working OK, shutdown PostgreSQL & backup up all the PostgreSQL related FS
above� just in case�!
� Chris Drawater, 2005
PostgreSQL 8.0.2 on Solaris, v1.2
p7/10
Page 8
User Accounts
Create 1 * power user to create/own/control the tables (using psql) =>
$ pgsql template1
create user cxd with password 'abc';
grant create on tablespace appdata to cxd;
Do not create any more superusers or users that can create databases!
Now create n* enduser accts to work against the data =>
$pgsql template1
CREATE GROUP endusers;
create user enduser1 with password 'xyz';
ALTER GROUP endusers ADD USER enduser1;
$ psql db9 cxd
grant select. on <table>. to group endusers;
JDBC driver
A pure Java (Type 4) JDBC driver implementation can be downloaded from
http://jdbc.postgresql.org/
Assuming the use of the SDK 1.4 or 1.5, download
postgresql-8.0-311.jdbc3.jar
and include this in your application CLASSPATH.
(If moving JAR files between different hardware types, always ftp in BIN mode).
Configure PostgreSQL to accept JDBC Connections
To allow the postmaster listener to accept TCP/IP connections from client nodes running the JDBC
applications, edit the server configuration file and change
listen_addresses = '*'
# * = any IP interface
Alternatively, this parameter can specify only selected IP interfaces ( see documentation).
In addition, the client authetication file will need to edited to allow access to our database server.
First take a backup of the file =>
$ cp pg_hba.conf pg_hba.conf.orig
Add the following line =>
host db9
cxd
0.0.0.0/0
password
where , for this example, database db9, user cxd, auth password
� Chris Drawater, 2005
PostgreSQL 8.0.2 on Solaris, v1.2
p8/10
Page 9
Switching JDBC applications from Oracle to PostgreSQL
The URL used to connect to the PostgreSQL server should be of the form
jdbc:postgresql://host:port/database
If used, replace the line (used to load the JDBC driver)
Class.forName ("oracle.jdbc.driver.OracleDriver");
with
Class.forName("org.postgresql.Driver");
Remove any Oracle JDBC extensions, such as
((OracleConnection)con2).setDefaultRowPrefetch(50);
Instead, the row pre-fetch must be specified at an individual Statement level =>
eg.
PreparedStatement pi = con1.prepareStatement(�select�.�);
pi.setFetchSize(50);
If not set, the default fetch size = 0;
Likewise, any non ANSI SQL extensions will need changing.
For example sequence numbers
Oracle => online_id.nextval
should be replaced by
PostgreSQL => nextval('online_id')
Oracle �hints� embedded within SQL statements are ignored by PostgreSQL.
Now test your application!
Concluding Remarks
At this stage, you should now have a working PostgreSQL database fronted by a JDBC based application,
and the foundations will have been laid for :
A reasonably level of resilience (recoverability)
A good starting IO distribution
The next step is to tune the system under load� and that�s another doc�
Chris Drawater has been working with RDBMSs since 1987 and the JDBC API since late 1996, and can
be contacted at [email protected] or [email protected] .
� Chris Drawater, 2005
PostgreSQL 8.0.2 on Solaris, v1.2
p9/10
Page 10
Appendix 1 � Example .profile
TMPDIR=/tmp
export TMPDIR
PATH=/usr/bin:/usr/ucb:/etc:.:/usr/sfw/bin:usr/local/bin:n:/usr/ccs/bin:$PATH
export PATH
# PostgreSQL 802 runtime
LD_LIBRARY_PATH=/opt/postgresql/8.0.2/lib
PATH=/opt/postgresql/8.0.2/bin:$PATH
export PATH LD_LIBRARY_PATH
PGDATA=/var/opt/postgresql/CLUST/sys
export PGDATA
� Chris Drawater, 2005
PostgreSQL 8.0.2 on Solaris, v1.2
p10/10

Similar Messages

  • Configuration of PostgreSQL in Solaris 10

    I really having problems in configuring postgreSQL in my desktop...
    When i execute the initdb command it display this error:
    The user must own the server process.
    thanx

    you have to be user postgres to use that command. if you are your regular user or root it won't work.
    so become root and type:
    su - postgres
    then type your command initdb (with whatever appropriate arguments) and it should work and initialize your database cluster.

  • Intalling qlogic on solaris 10 x86

    Hi,
    Does anyone knows where could I find the drivers for SAN Foundation for X86 enviroment? I only have been able to find the Sparc ones.
    Regards
    JJ

    Hi,
    Does anyone knows where could I find the drivers for SAN Foundation for X86 enviroment? I only have been able to find the Sparc ones.
    Regards
    JJ

  • Will Postgresql be supported?

    I noticed with interest that Sun will be bundling Postgresql with Solaris 10. Does that mean Sun Message Queue will support Postgresql for plug-in persistence? If so, when?

    at this point we have no specific date or release to support postgresql however in each release we re-evaluate which sql databases we are able to test and support

  • During Postgresql configuration initdb freezes on solaris 10 x86

    Hi,
    I’ve installed Solaris 10 10/08 x86 in a VMware environment. The install went successfully, but when I tried to configure postgresql 8.2 to run the OS freezes when I run initdb.
    I followed the instructions from the man pages, created all the environment variables and configured all the necessary permissions. Below is the output when I run initdb in debug mode.
    initdb -d
    Running in debug mode.
    VERSION=8.2.9
    PGDATA=/var/postgres/8.1/data
    share_path=/usr/postgres/8.2/share
    PGPATH=/usr/postgres/8.2/bin
    POSTGRES_SUPERUSERNAME=postgres
    POSTGRES_BKI=/usr/postgres/8.2/share/postgres.bki
    POSTGRES_DESCR=/usr/postgres/8.2/share/postgres.description
    POSTGRES_SHDESCR=/usr/postgres/8.2/share/postgres.shdescription
    POSTGRESQL_CONF_SAMPLE=/usr/postgres/8.2/share/postgresql.conf.sample
    PG_HBA_SAMPLE=/usr/postgres/8.2/share/pg_hba.conf.sample
    PG_IDENT_SAMPLE=/usr/postgres/8.2/share/pg_ident.conf.sample
    The files belonging to this database system will be owned by user "postgres".
    This user must also own the server process.
    The database cluster will be initialized with locale C.
    creating directory /var/postgres/8.1/data ... ok
    creating subdirectories ... ok
    selecting default max_connections ...
    It always run to the “selecting default max_connections ...” line and locks up the OS. I can’t do anything after that. I have to restart the VM. Has anyone experience this issue before? Any help would be greatly appreciated.

    Hi,
    Based on feedback from another site, and some more research it seems that this is a bug. You can view more information at http://bugs.opensolaris.org/view_bug.do?bug_id=6579274. It looks like this bug has been resolve and will be in the next Solaris update. I'm not sure if it was fixed in the current patch set, as I don't have a support account. From the patch report (http://sunsolve.sun.com/patchRedirnew.do?type=report&item=10_x86_patch_report), it seems that the related bug, 6529185, was fixed.
    So, if you have a support account then you can download the latest patches and see if it was patched. I wanted to try Solaris 10 out before purchasing a support account, so I've resolved to use a release earlier than 10/08. I hope this helps
    Regards

  • Building Postgresql 8.2.4 64bit binary on Solaris 10 6/06

    Attempted build of PostgreSQL 8.2.4 on Solaris 10 6/06 using Studio 11 with patches 120759-11.zip, 121018-07.zip, 121616-03.zip, 122143-02.zip, 121020-01.zip and 122136-02.zip
    The make install completes, however when when attempting to run /opt/postgresql-8.2.4/bin/initdb -D /db/data2 gives the following error
    $ /opt/postgresql-8.2.4/bin/initdb -D /db/data2
    ld.so.1: initdb: fatal: relocation error: R_AMD64_32: file /opt/postgresql-8.2.4/lib/libpq.so.5: symbol (unknown): value 0xfffffd7fff000000 does not fit
    Killed
    After posting on the [email protected] a suggestion of changing the -xmodel, so tried -xmodel=medium and -xmodel=kernel, performing a make distclean between builds, the same error occurred irrespective of memory model.
    Build paramaters
    $ CC=cc CFLAGS="-xarch=amd64 -xmodel=small" CPPFLAGS=-I/opt/gnu64/include
    LDFLAGS=-R/opt/gnu64/lib ./configure prefix=/opt/postgresql-8.2.4 enable-integer-datetimes with-tcl with-tclconfig=/opt/gnu64/lib with-pam with-openssl

    Omitting --openssl allows a sucessful 64bit build, the problem is linked to an unresolved symbol in SUBSYS.o relating to SSL_                                                                                                                                                                                                                                                           

  • Postgresql service 8.2 on Solaris 10 Update 4

    Hi
    I have solaris 10 update 4 installed. PostgreSQL with SMF is shipped with Solaris 10 update 4.
    I could see two services installed on the OS.
    svcs postgresql
    disabled 14:58:36 svc:/application/database/postgresql:version_81
    maintenance 15:40:42 svc:/application/database/postgresql:version_82
    I followed the steps to start postgres service given on Sun website...
    PostgreSQL 8.2:
    1. As root, su to postgres:
    # su - postgres
    2. Create PostgreSQL DB cluster:
    $ /usr/postgres/8.2/bin/initdb -D /var/postgres/8.2/data
    3. As root, use the SMF's svcadm command to start PostgreSQL:
    # /usr/sbin/svcadm enable postgresql:version_82
    now I could see one serive enabled.
    svcs postgresql
    disabled 14:58:36 svc:/application/database/postgresql:version_81
    online 15:40:42 svc:/application/database/postgresql:version_82
    But, when I disabled the service & restarted it using...
    svcadm disable svc:/application/database/postgresql:version_82
    svcadm enable svc:/application/database/postgresql:version_82
    I see the serivce in the maintenance mode.
    disabled 14:58:36 svc:/application/database/postgresql:version_81
    maintenance 15:40:42 svc:/application/database/postgresql:version_82
    Server.log shows following error:-
    FATAL: syntax error in file "/var/postgres/8.2/data/postgresql.conf" line 104, near token "MB"
    Can anyone help me know the reason?
    Thanx in advance
    Niraj

    Hi
    I have solaris 10 update 4 installed. PostgreSQL with SMF is shipped with Solaris 10 update 4.
    I could see two services installed on the OS.
    svcs postgresql
    disabled 14:58:36 svc:/application/database/postgresql:version_81
    maintenance 15:40:42 svc:/application/database/postgresql:version_82
    I followed the steps to start postgres service given on Sun website...
    PostgreSQL 8.2:
    1. As root, su to postgres:
    # su - postgres
    2. Create PostgreSQL DB cluster:
    $ /usr/postgres/8.2/bin/initdb -D /var/postgres/8.2/data
    3. As root, use the SMF's svcadm command to start PostgreSQL:
    # /usr/sbin/svcadm enable postgresql:version_82
    now I could see one serive enabled.
    svcs postgresql
    disabled 14:58:36 svc:/application/database/postgresql:version_81
    online 15:40:42 svc:/application/database/postgresql:version_82
    But, when I disabled the service & restarted it using...
    svcadm disable svc:/application/database/postgresql:version_82
    svcadm enable svc:/application/database/postgresql:version_82
    I see the serivce in the maintenance mode.
    disabled 14:58:36 svc:/application/database/postgresql:version_81
    maintenance 15:40:42 svc:/application/database/postgresql:version_82
    Server.log shows following error:-
    FATAL: syntax error in file "/var/postgres/8.2/data/postgresql.conf" line 104, near token "MB"
    Can anyone help me know the reason?
    Thanx in advance
    Niraj

  • Intall Solaris 8 on Toshiba Portege 3440CT fail

    I want to install Solaris 8 intel on Toshiba Portege 3440CT. it has one USB floppy drive and one PCMCIA CD-ROM.
    When I use Solais 8 boot disk to boot the system. it just only show "SunOS..." on the top left hand conner and have no response. Should anyone know what happen to it?
    If it is related to USB device or fail to startup PCMCIA CD-ROM, can I create a Install server on another PC to use network installation?
    If the laptop PC is not possible to install Solaris, how I can verify it? Since Solaris 8 Hardware compatilable List do not have Laptop section, Did sun provide a PC utility to test whether my laptop is Solaris compatiable?

    Hi,
    Problem with PERC RAID controller card.
    You try to install the driver for AIC 7899 and Dell PERC RAID controller card. In dell computers, they have dell PERC RAID controller driver for Solaris 7 version. They don't have the driver for solaris 8 version.
    You can download driver for SCSI AIC 7899 from this URL:
    http://www.adaptec.com/worldwide/support/driverdetail.html?cat=/Product/ASC-39160&filekey=u160_slrs_v121_dd.img.Z
    Then you check with your local dell support provider for PERC RAID controller driver for solaris 7 and solaris 8.
    Thanks.
    revert back.
    regards,
    Senthilkumar
    SUN - DTS

  • Intall X3270 Terminal emulator on Solaris 10 x86

    Hi! I'm trying to install IBM 3270 Terminal Emulator from source code on solaris 10 x86. I had some problems when I run ./configure but was PATH's configuration. Now I'm trying to run make but at certain moment the folowing erro return:
    makeconv -d . -p icudt3l ibm-837_P100-2000.ucm
    sh: makeconv: not found
    *** Error code 1
    make: Fatal error: Command failed for target `icudt3l_ibm-837_P100-2000.cnv'
    I tried to find this 'makeconv' but I haven't found. Does anybody have some esperience with the instalation of X3270? Thank's a lot.

    problem 1 is that it's looking for ../../s0.. Which I
    managed to
    fake out by creating the dir in the same mount
    point.
    Problem 2 is that it can't find .tmp_proto, which I
    must
    concur with. I can't find that on any of the b72 cd
    images.
    So, the setup_install_server fails.This seems to be the problem when you try to setup an install
    server on a Solaris SPARC system for Solaris x86 clients, using
    the Solaris 9 or Solaris 10/Express CD media.
    There's a Solaris x86 UFS filesystem on slice 0 on the CD media,
    and it's supposed to be mounted on the "s0" mount point,
    otherwise setup_install_server won't work. On a Solaris x86 box,
    vold mounts it automatically for you: /cdrom/cdrom0/s2 is the
    mount point for the platform independant ISO9660 part of the CD
    media, /cdrom/cdrom0/s0 is the UFS root filesystem.
    Problem is that Solaris SPARC:
    - does not understand Solaris x86 disk labels
    - does not allow mounting x86 UFS filesystems
    (and vice versa).
    AFAIK, Solaris 9 DVD media does not have this problem. I
    guess the same will be true when Solaris 10 DVD media is
    available in a few months. On the DVD media there's enough
    free space to include an extra copy of the files in the ISO9660
    filesystem.

  • Doubts intalling Oracle 10G in Solaris 10.

    Hi Buddies;
    I'm installing Oracle 10g, in Solaris 10, first I uncompressed this file 10gr2_db_sol.cpio. Now, when I execute runInstaller I got this message:
    Checking operating system version: must be 5.8, 5.9 or 5.10. Actual 5.10 Passed
    Checking Temp space: must be greater than 250 MB. Actual 13289 MB Passed
    Checking swap space: must be greater than 500 MB. Actual 13492 MB Passed
    Checking monitor: must be configured to display at least 256 colors
    >>> Could not execute auto check for display colors using command /usr/openwin/bin/xdpyinfo. Ch eck if the DISPLAY variable is set. Failed <<<<
    Some requirement checks failed. You must fulfill these requirements before
    continuing with the installation,at which time they will be rechecked.
    What I supposed to do? Thanks for your help.
    Al

    Hi,
    look at:
    Re: Problem in adding database
    maybe it helps. It that thread I showed how I usually manage X11 window. Another way is to do everything silent with scripts as shown here:
    http://www.oratoolkit.ch/knowledge/howto/installation/eeSrv-10g-R2-on-Solaris-10-sparc.php
    That's my open source swiss army knife.
    Cheers,
    David
    OCP 9i / 10g / 11g

  • New to Solaris administration - Need some help with some issues

    Hello all,
    I am a new to Solaris administration and need some assistance with a few things. I was going to make separate posts but decided it would be easy to keep track of in one. I really do not know much about the OS but I do have a little Linux background so that might help me out. I am going to number my problems to keep them sorted, so here we go.
    The machine:
    Sunfire V880
    4x 73GB HDs
    PCI dual fiber channel host adapter
    Attached RAID array:
    Sun StorEdge T3 Array with 9x 73GB HDs
    Sun DDS4 Tape Drive in a Unipack
    OS: Solaris 5.10
    Updates: Updated everything except 2 patches (Updating is a real pain isn't it? At least it seems that way to me.)
    1. So I might as well start with the update issues! These 2 updates will not install:
    -PostgreSQL 8.2 source code, (137004-02)
    Utility used to install the update failed with exit code {0}.
    -Patch for mediaLib in solaris, (121620-03)
    Install of update failed. Utility used to install the update is not able to save files. Utility used to install the update failed with exit code 4.
    No idea why the PostgreSQL update is not working, but the medialib patch seems to not have enough hard drive space.
    2. Where are all the drives? I don't know how to find the RAID box or the other 3 internal hard drives. When I installed the OS, I think I installed it on only one hard drive and that might be part of the reason why the medialibe update above says that I don't have enough space.
    3. I probably need more space for the OS and updates, is there a way to "add" space onto the hard drive that currently is running the OS?
    3. Once I see the other hard drives I wish to combine them to make a RAID 0 and RAID 5 array, how do I go about doing that?
    4. How can I find/see the tape drive?
    5. Does my swap space really need to be 64GB? I know the book I have read suggests it, but I only made it 5GB because it didn't seem to make sense to make it 64GB.
    Thank you in advance for the help. I know these are a lot of questions to ask but please go easy on me :)
    rjbanker
    Edited by: rjbanker on Mar 7, 2008 8:21 AM

    SolarisSAinPA*
    1.
    -PostgreSQL 8.2 source code, (137004-02)
    Utility used to install the update failed with exit code {0}.
    Exit code 0 means there were no errors. When you run showrev -p 137004-02, does your system show that the patch is installed? You can check the log for a particular patch add attempt in /var/sadm/patch/+patch_num_rev+1- A bunch of stuff shows up, here is a portion (I am not entirely sure what it means, there must be a least a page of stuff like this):
    Patch: 121081-08 Obsoletes: Requires: 121453-02 Incompatibles: Packages: SUNWc cccrr, SUNWccccr, SUNWccfw, SUNWccsign, SUNWcctpx, SUNWccinv, SUNWccccfg, SUNWcc fwctrl
    Patch: 122231-01 Obsoletes: Requires: 121453-02 Incompatibles: Packages: SUNWc ctpx
    Patch: 120932-01 Obsoletes: Requires: Incompatibles: Packages: SUNWcctpx
    Patch: 123123-02 Obsoletes: Requires: Incompatibles: Packages: SUNWccinv
    Patch: 121118-12 Obsoletes: Requires: 121453-02 Incompatibles: Packages: SUNWc smauth, SUNWppror, SUNWpprou, SUNWupdatemgru, SUNWupdatemgrr, SUNWppro-plugin-su nos-base
    2.
    Where are all the drives? I don't know how to find the RAID box or the other 3 internal hard drives. When I >installed the OS, I think I installed it on only one hard drive and that might be part of the reason why the >medialibe update above says that I don't have enough space.
    When you run format command, how many drives are listed? Identify your root drive (compare with output of df command you ran earlier) Please post here.2. Output of df-hk, looks like I ran out of room. Should I just go ahead and reinstall the OS?
    Filesystem size used avail capacity Mounted on
    /dev/dsk/c1t0d0s0 5.9G 5.4G 378M 94% /
    /devices 0K 0K 0K 0% /devices
    ctfs 0K 0K 0K 0% /system/contract
    proc 0K 0K 0K 0% /proc
    mnttab 0K 0K 0K 0% /etc/mnttab
    swap 42G 1.3M 42G 1% /etc/svc/volatile
    objfs 0K 0K 0K 0% /system/object
    /platform/sun4u-us3/lib/libc_psr/libc_psr_hwcap1.so.1
    5.9G 5.4G 378M 94% /platform/sun4u-us3/lib/libc_psr.so.1
    /platform/sun4u-us3/lib/sparcv9/libc_psr/libc_psr_hwcap1.so.1
    5.9G 5.4G 378M 94% /platform/sun4u-us3/lib/sparcv9/libc_psr.so.1
    fd 0K 0K 0K 0% /dev/fd
    swap 42G 1.1M 42G 1% /tmp
    swap 42G 32K 42G 1% /var/run
    /dev/dsk/c1t0d0s7 46G 47M 46G 1% /export/home
    3. So I guess the general consensus is to reinstall the OS, is that correct?
    4. There is nothing in \dev\rmt, and unfortunately I don't have a tape to test it with!
    5. I guess 5GB will be ok for what we do.
    Alan.pae*
    1. I think the above text might explain why it failed, although I don't know how to correct it.
    2. Output of format:
    # mount
    / on /dev/dsk/c1t0d0s0 read/write/setuid/devices/intr/largefiles/logging/xattr/onerror=panic/dev=1d80008 on Mon Mar 10 10:56:51 2008
    /devices on /devices read/write/setuid/devices/dev=4dc0000 on Mon Mar 10 10:56:19 2008
    /system/contract on ctfs read/write/setuid/devices/dev=4e00001 on Mon Mar 10 10:56:19 2008
    /proc on proc read/write/setuid/devices/dev=4e40000 on Mon Mar 10 10:56:19 2008
    /etc/mnttab on mnttab read/write/setuid/devices/dev=4e80001 on Mon Mar 10 10:56:19 2008
    /etc/svc/volatile on swap read/write/setuid/devices/xattr/dev=4ec0001 on Mon Mar 10 10:56:19 2008
    /system/object on objfs read/write/setuid/devices/dev=4f00001 on Mon Mar 10 10:56:19 2008
    /platform/sun4u-us3/lib/libc_psr.so.1 on /platform/sun4u-us3/lib/libc_psr/libc_psr_hwcap1.so.1 read/write/setuid/devices/dev=1d80008 on Mon Mar 10 10:56:50 2008
    /platform/sun4u-us3/lib/sparcv9/libc_psr.so.1 on /platform/sun4u-us3/lib/sparcv9/libc_psr/libc_psr_hwcap1.so.1 read/write/setuid/devices/dev=1d80008 on Mon Mar 10 10:56:50 2008
    /dev/fd on fd read/write/setuid/devices/dev=50c0001 on Mon Mar 10 10:56:51 2008
    /tmp on swap read/write/setuid/devices/xattr/dev=4ec0002 on Mon Mar 10 10:56:52 2008
    /var/run on swap read/write/setuid/devices/xattr/dev=4ec0003 on Mon Mar 10 10:56:52 2008
    /export/home on /dev/dsk/c1t0d0s7 read/write/setuid/devices/intr/largefiles/logging/xattr/onerror=panic/dev=1d8000f on Mon Mar 10 10:56:57 2008
    3. Judging by the above text I will be doing a reinstall huh?
    4. Actually I am not familiar with tape backups let alone solaris backup apps! Any suggestions? (Preferably free, have to cut down on costs.)
    5. No comment
    Thanks for the help, hope to hear from you again!
    rjbanker

  • Unable to install SUN SMC  on solaris 10

    Hi,
    I am trying to install SMC on solaris 10. es-guisetup is giving errors as given below:
    smcdatabase service is always in maintenance mode.
    I am running postgres on 5433 port.
    Please help me in this regard.
    Here is the log file:
    # cat core-db-setup_rtisifldhdesk.100929090636.6642
    Started /var/opt/SUNWsymon/install/guibased-setup.1285765588453.sh at Wed Sep 29 09:06:36 EDT 2010.
    Running on SunOS rtisifldhdesk 5.10 Generic_142900-03 sun4u sparc SUNW,Sun-Fire-V210.
    -sh: initdb: not found
    bash-3.00# cat gui_setup_rtisifldhdesk.100929090557
    The system memory to be compared has mapped to : 8192
    Skipping the Disable SNMP panel as a port other than 161 is specified as the agent port
    The web server organization is given as : ADP
    The web server location is given as : njjjjj
    The Setup script will be executed as : /var/opt/SUNWsymon/install/guibased-setup.1285765588453.sh
    stty: : Invalid argument
    /var/opt/SUNWsymon/install/guibased-setup.1285765588453.sh: /var/opt/SUNWsymon/db/data/SunMC/pg_hba.conf: cannot create
    /var/opt/SUNWsymon/install/guibased-setup.1285765588453.sh: /var/opt/SUNWsymon/db/data/SunMC/postgresql.conf: cannot create
    SYMON_JAVAHOME is set to: /usr/java
    JDK version is: "1.5.0_22-b03"
    This script will help you to setup Sun Management Center 4.0.
    Following layer[s] are installed:SERVER,AGENT
    None of the layers is setup.
    Following layer[s] will get setup: SERVER,AGENT
    Database will be setup.
    Following Addon[s] are installed:
    Advanced System Monitoring,ELP Config-Reader Monitoring,Desktop,Service Availability Manager,Sun Fire Entry-Level Midrange System,Netra,DomMonit SPARC Enterprise Mx000,Dom DR SPARC Enterprise Mx000,PltAdmin SPARC Enterprise Mx000,Performance Reporting Manager,Solaris Container Manager,Sun Fire Midrange Systems Domain Administration,Dynamic Reconfiguration for Sun Fire High-End and Midrange Systems,Sun Fire Midrange Systems Platform Administration,Starfire Monitoring,Sun Fire High-End Systems Monitoring,Sun Enterprise 6500-3500 Servers/sun4d DR,Sun Enterprise 6500-3500 Servers/sun4d Config Reader,System Reliability Manager,Workgroup Server,Generic X86/X64 Config Reader.
    Checking memory available...
    Configuring Sun Management Center DB...
    The Port 5433 for Sun Management Center DB has already been used.
    Enter another port for Sun Management Center DB listener : : 2521
    Initializing SunMC database.
    disabled sunmcdatabase service from maintenance state during setup
    check the smf database service log to know the reason
    Failed to enable service sunmc-database
    Database setup failed : db-start failed
    Updating registry...
    None of the base layers are setup.
    No Addon is setup.
    Following Addons are not yet setup: Advanced System Monitoring,ELP Config-Reader Monitoring,Desktop,Service Availability Manager,Sun Fire Entry-Level Midrange System,Netra,DomMonit SPARC Enterprise Mx000,Dom DR SPARC Enterprise Mx000,PltAdmin SPARC Enterprise Mx000,Performance Reporting Manager,Solaris Container Manager,Sun Fire Midrange Systems Domain Administration,Dynamic Reconfiguration for Sun Fire High-End and Midrange Systems,Sun Fire Midrange Systems Platform Administration,Starfire Monitoring,Sun Fire High-End Systems Monitoring,Sun Enterprise 6500-3500 Servers/sun4d DR,Sun Enterprise 6500-3500 Servers/sun4d Config Reader,System Reliability Manager,Workgroup Server,Generic X86/X64 Config Reader
    Could not finish requested task.
    Thanks
    Sugunakar

    Hi Sugunakar,
    There are a few small things I can think of checking:
    I am trying to install SMC on solaris 10What version of Solaris 10 are you using? You need 11/06 (aka "Update 3") or later. Also, it looks like this is on a V210: how much memory and swap do you have ([requirements here|http://docs.sun.com/app/docs/doc/820-2215/deployment-72?l=en&a=view])? And have you [edited your /etc/project file|http://docs.sun.com/app/docs/doc/820-2216/chapter2-1000?l=en&a=view] to adjust the shared memory settings?
    Have you applied any of the [patch sets|http://forums.halcyoninc.com/showthread.php?t=104]?
    smcdatabase service is always in maintenance mode.It would be interesting to see what that service log says. Look in /var/svc/log/application-management-sunmcdatabase:default.log for clues.
    /var/opt/SUNWsymon/install/guibased-setup.1285765588453.sh: /var/opt/SUNWsymon/db/data/SunMC/pg_hba.conf: cannot createIs there any reason why SunMC may not be able to write to /var (or /var/opt/SUNWsymon)? Maybe portions of /var are read-only (shared from a global zone, or over NFS)?
    I've done a lot of SunMC pilot projects over the years: if you could use some help speeding up your eval just send me an email.
    Regards,
    [email protected]

  • Performance problems when running PostgreSQL on ZFS and tomcat

    Hi all,
    I need help with some analysis and problem solution related to the below case.
    The long story:
    I'm running into some massive performance problems on two 8-way HP ProLiant DL385 G5 severs with 14 GB ram and a ZFS storage pool in raidz configuration. The servers are running Solaris 10 x86 10/09.
    The configuration between the two is pretty much the same and the problem therefore seems generic for the setup.
    Within a non-global zone I’m running a tomcat application (an institutional repository) connecting via localhost to a Postgresql database (the OS provided version). The processor load is typically not very high as seen below:
    NPROC USERNAME  SWAP   RSS MEMORY      TIME  CPU                            
        49 postgres  749M  669M   4,7%   7:14:38  13%
         1 jboss    2519M 2536M    18%  50:36:40 5,9%We are not 100% sure why we run into performance problems, but when it happens we experience that the application slows down and swaps out (according to below). When it settles everything seems to turn back to normal. When the problem is acute the application is totally unresponsive.
    NPROC USERNAME  SWAP   RSS MEMORY      TIME  CPU
        1 jboss    3104M  913M   6,4%   0:22:48 0,1%
    #sar -g 5 5
    SunOS vbn-back 5.10 Generic_142901-03 i86pc    05/28/2010
    07:49:08  pgout/s ppgout/s pgfree/s pgscan/s %ufs_ipf
    07:49:13    27.67   316.01   318.58 14854.15     0.00
    07:49:18    61.58   664.75   668.51 43377.43     0.00
    07:49:23   122.02  1214.09  1222.22 32618.65     0.00
    07:49:28   121.19  1052.28  1065.94  5000.59     0.00
    07:49:33    54.37   572.82   583.33  2553.77     0.00
    Average     77.34   763.71   771.43 19680.67     0.00Making more memory available to tomcat seemed to worsen the problem or at least didn’t prove to have any positive effect.
    My suspicion is currently focused on PostgreSQL. Turning off fsync boosted performance and made the problem less often to appear.
    An unofficial performance evaluation on the database with “vacuum analyze” took 19 minutes on the server and only 1 minute on a desktop pc. This is horrific when taking the hardware into consideration.
    The short story:
    I’m trying different steps but running out of ideas. We’ve read that the database block size and file system block size should match. PostgreSQL is 8 Kb and ZFS is 128 Kb. I didn’t find much information on the matter so if any can help please recommend how to make this change…
    Any other recommendations and ideas we could follow? We know from other installations that the above setup runs without a single problem on Linux on much smaller hardware without specific tuning. What makes Solaris in this configuration so darn slow?
    Any help appreciated and I will try to provide additional information on request if needed…
    Thanks in advance,
    Kasper

    raidz isnt a good match for databases. Databases tend to require good write performance for which mirroring works better.
    Adding a pair of SSD's as a ZIL would probably also help, but chances are its not an option for you..
    You can change the record size by "zfs set recordsize=8k <dataset>"
    It will only take effect for newly written data. Not existing data.

  • Error while installing SOA suite on solaris server

    Hi Experts,
    I am trying to install SOA on solaris box:
    SOA: 11.1.1.3.0, i am getting the below error while intalling:
    *./runInstaller -jreLoc /users/oim/jrockit/jre*
    Starting Oracle Universal Installer...+
    Checking if CPU speed is above 300 MHz.    Actual 1164 MHz    Passed+
    Checking Temp space: must be greater than 150 MB.   Actual 426 MB    Passed+
    Checking swap space: must be greater than 512 MB.   Actual 8192 MB    Passed+
    Checking monitor: must be configured to display at least 256 colors+
    *>>> Could not execute auto check for display colors using command /usr/openwin/bin/xdpyinfo. Check if the DISPLAY variable is set.    Failed <<<<*
    Some requirement checks failed. You must fulfill these requirements before+
    continuing with the installation,+
    *Continue? (y/n) [n] y*+
    *>>> Ignoring required pre-requisite failures. Continuing...*
    Preparing to launch Oracle Universal Installer from /tmp/OraInstall2012-09-03_09-41-13PM. Please wait ...iamoimdev-z1> Exception in thread "Main Thread" java.lang.InternalError: Can't connect to X11 window server using '10.68.74.83:0.0' as the value of the DISPLAY variable.+
    at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)+
    at sun.awt.X11GraphicsEnvironment.access$100(X11GraphicsEnvironment.java:52)+
    at sun.awt.X11GraphicsEnvironment$1.run(X11GraphicsEnvironment.java:155)+
    at sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:131)+
    at java.lang.Class.forName0(Native Method)+
    at java.lang.Class.forName(Class.java:169)+
    at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:68)+
    at sun.awt.X11.XToolkit.<clinit>(XToolkit.java:89)+
    at java.lang.Class.forName0(Native Method)+
    at java.lang.Class.forName(Class.java:169)+
    at java.awt.Toolkit$2.run(Toolkit.java:834)+
    at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:826)+
    at com.jgoodies.looks.LookUtils.isLowResolution(Unknown Source)+
    at com.jgoodies.looks.LookUtils.<clinit>(Unknown Source)+
    at com.jgoodies.looks.plastic.PlasticLookAndFeel.<clinit>(PlasticLookAndFeel.java:122)+
    at oracle.as.install.engine.modules.presentation.ui.common.dialogs.SpecifyInventoryDirectoryDialog.showDialog(SpecifyInventoryDirectoryDialog.java:702)+
    at oracle.sysman.oio.oioc.OiocOneClickInstaller.main(OiocOneClickInstaller.java:555)+

    Ketan, I am logging into the system as restricted user, and then switching to admin use using
    psh su - admin command and providing password
    can i check who is the root user? IS there a method to check this out? thanks in advance.
    Edited by: 955130 on Sep 4, 2012 4:05 AM

  • Install device conflict for Solaris 9 on V60X

    Can anyone help
    Getting the following message when installing Solaris 9 on v60x using raid 1 ...
    Warning: Resource Conflict - both devices are added
    NON-ACPI device: ISY0050
    Port:3F0-3F5, 3F7, IRQ: 6; DMA: 2
    ACPI device: ISY0050
    Port:3F2-3F3, 3F4-3F5, 3F7; IRQ: 6; DMA: 2

    Cool, so i ignore the device conflict warning message and carry on, it gets thru the webstart dialogs to the welcome wizard, display a progress bar which get to 25% and then the wizard disapears, I click 'send kiosk to background', but the wizard has vanished, maybe it went of the visible screen area?
    What i have achived tho is to stripe the disk for raid-1 and re-install the service partition, and the partial webstart intall as above.
    My problem however is that it wont boot up, giving message
    'no bootable partition'. The webstart doco says it creates the required fdisk partitions etc
    There is a note in the 'solaris 9 install guide' that says ...
    'if you restored the service partition before starting the install, you might not be able to upgrade to the Sun OE' .
    Thanks for that Sun. Any ideas guys, perhaps its only a warning message.

Maybe you are looking for

  • File Adapter with Content Conversion

    Hi - I am trying to convert a Flat file which has data as firstnamelastnamecompanyName Now i have created a message type which has a root name as Contact and its children are FirstName,LastName,Company. And in the configurator i have created a file a

  • Vendor in Limit Order SC Template won't stay changed when creating PO.

    We are currently using SRM 4.0 in an extended classic Scenario.  The problem we have experience is as follows: User creates a SC with a Limit Order template that has a vendor already assigned.  Once the template is selected the vendor is then changed

  • Loop movie twice then stop

    I want to play my Flash movie twice then stop at the final frame. The stop() action script does not allow a set number of loops. What action script do I use?

  • Please critque Function that produces the nextval

    Hello, I realize that this is not a SQL/PLSQL workshop, but I am in need of some assistance with the following code. I am sure it is something that I overlooked or 'just don't understand.' These 2 functions compiles just fine (scroll down). CREATE OR

  • Apex on linux - when and how to install http server

    1. I installed 10g Release 2 Enterprise Edition on Vmware Linux on my laptop, 2. I pathced database to 10.2.03, 3. then I downloaded and installed Apex 3.0.1 on them. I thought Http Server will be coming with Apex 3 installation, but I understand tha