BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
Key123
Fluorite | Level 6

Is it possible to browse through the PostGre tables on the SASWebInfrastructurePlatformDataServer configuration?. I have a requirement to provide the table and sample data being stored in these tables and I am unable to login to this database using

 

$SASHOME/SASWebInfrastructurePlatformDataServer/9.4/bin/psql

1 ACCEPTED SOLUTION

Accepted Solutions
gwootton
SAS Super FREQ
The SAS Web Infrastructure Platform Data Server is a postgres database, so you can use any postgres client to connect to it.

From your description, it is not clear what issue you are encountering when trying to use the psql client. However to be able to use the psql CLI in that path, you'd need to set some environment variables as well as some options to that command line.

You could run this to set the environment variables necessary to run psql:
# Set a variable to store the base path for the psql client.
PGHOME=$SASHOME/SASWebInfrastructurePlatformDataServer/9.4
# Put the bin subdir into PATH
PATH=$PATH:$PGHOME/bin
# Put the lib subdir into LD_LIBRARY_PATH
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$PGHOME/lib

This will allow you to run "psql" without specifying the full path.

Then run psql with the options:
-p 9432 (the default postgres port is 5432, WIP Data Server runs on 9432 by default)
-U dbmsowner (the database user)
-d SharedServices (the database name)

This will prompt you for the password for the dbmsowner user, so you will need to know that.
--
Greg Wootton | Principal Systems Technical Support Engineer

View solution in original post

1 REPLY 1
gwootton
SAS Super FREQ
The SAS Web Infrastructure Platform Data Server is a postgres database, so you can use any postgres client to connect to it.

From your description, it is not clear what issue you are encountering when trying to use the psql client. However to be able to use the psql CLI in that path, you'd need to set some environment variables as well as some options to that command line.

You could run this to set the environment variables necessary to run psql:
# Set a variable to store the base path for the psql client.
PGHOME=$SASHOME/SASWebInfrastructurePlatformDataServer/9.4
# Put the bin subdir into PATH
PATH=$PATH:$PGHOME/bin
# Put the lib subdir into LD_LIBRARY_PATH
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$PGHOME/lib

This will allow you to run "psql" without specifying the full path.

Then run psql with the options:
-p 9432 (the default postgres port is 5432, WIP Data Server runs on 9432 by default)
-U dbmsowner (the database user)
-d SharedServices (the database name)

This will prompt you for the password for the dbmsowner user, so you will need to know that.
--
Greg Wootton | Principal Systems Technical Support Engineer

suga badge.PNGThe SAS Users Group for Administrators (SUGA) is open to all SAS administrators and architects who install, update, manage or maintain a SAS deployment. 

Join SUGA 

Get Started with SAS Information Catalog in SAS Viya

SAS technical trainer Erin Winters shows you how to explore assets, create new data discovery agents, schedule data discovery agents, and much more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 1 reply
  • 675 views
  • 0 likes
  • 2 in conversation