Sharing DBA experience to all -- Oracle,MS SQL, DB2 , Netezza DBA,postgreSQL,AWS Redshift,MySQL,oracle SAP
Wednesday, February 12, 2020
How To Load data from AWS S3 bucket to Redshift database?
Here is the steps to Load data from AWS S3 bucket to Redshift database:
pre-request:
1)we need user created with privilege to access AWS redshift +S3 bucket
2)we need access_key_ID & secret_access_key for the user
COPY utility used to load data from S3 bukcet to AWS redshift database tables ,if the file is CSV or any delimeter format
pre-request:
1)we need user created with privilege to access AWS redshift +S3 bucket
2)we need access_key_ID & secret_access_key for the user
COPY utility used to load data from S3 bukcet to AWS redshift database tables ,if the file is CSV or any delimeter format
Friday, January 31, 2020
How to unlock the admin user in Netezza Database?
Issue:
we had faced issue where we unfortunately locked the admin user on Netezza and unable to conenct to NZSQL,NZADMIN and even aginity work bench.
User wrongly updated the system table .
update _t_user set uselocked=TRUE where usename='ADMIN';
because of the above admin user locked out and its throwing the error "access denied".
SYSTEM.ADMIN(ADMIN)=> select uselocked from _t_user where USEname='ADMIN1';
USELOCKED
-----------
t
(1 row)
Solution:
we have special command to reset the admin user and it worked.
nzsql -admin -c "alter user admin reset account" ;
SYSTEM.ADMIN(ADMIN)=> select uselocked from _t_user where USEname='ADMIN1';
USELOCKED
-----------
f
(1 row)
we had faced issue where we unfortunately locked the admin user on Netezza and unable to conenct to NZSQL,NZADMIN and even aginity work bench.
User wrongly updated the system table .
update _t_user set uselocked=TRUE where usename='ADMIN';
because of the above admin user locked out and its throwing the error "access denied".
SYSTEM.ADMIN(ADMIN)=> select uselocked from _t_user where USEname='ADMIN1';
USELOCKED
-----------
t
(1 row)
Solution:
we have special command to reset the admin user and it worked.
nzsql -admin -c "alter user admin reset account" ;
SYSTEM.ADMIN(ADMIN)=> select uselocked from _t_user where USEname='ADMIN1';
USELOCKED
-----------
f
(1 row)
Monday, January 27, 2020
what are the features of AWS Redshift database?
Features of AWS Redshift database
- Columnar data storage instead Row
- Data compression
- Cloud based Data-warehouse
- Massive Parallel Processing
- Easily scalable
- Result caching
- Fault tolerant
Subscribe to:
Posts (Atom)