AWX UI - create multiple hosts entries in the inventory file in one shot - ansible-2.x

I am using AWX 17.1.0 installed on Ubuntu server. I need to create the host inventory file which has more than 25 host entries in a single shot. How to create those server lists in the inventory file? Any suggestions on this?
[server-grp]
prdserver[01:30].domain.corp.com

Related

Database Link to ATP/ADW

I am having challenges in creating a database link from an ORACLE DBCS to an ORACLE ATP.
I am creating a database link from an ORACLE DBCS (PAAS) to an ORACLE ATP (Autonomous Transaction Processing) database. I can't seem to get the proper connection set-up for this. Anyone who has successfully been able to?
My connection to the ORACLE ATP with SQLDeveloper is a zipped Wallet.
CREATE DATABASE LINK TARGET_DB
CONNECT TO admin IDENTIFIED BY "Myp#ssword123!"
USING
'(DESCRIPTION=
(ADDRESS=
(PROTOCOL=tcps)
(HOST=99.99.99.99)
(PORT=1522))
(CONNECT_DATA=
(service_name=eoakbwd540pwkbi_myuseratp_high.atp.oraclecloud.com)))';
-- ip address and service names are fake
When I test the DB link using SQLDeveloper I get the ORA-28788 error code.
0. Setup
You start out with two instances:
DBCS - in my case Enterprise Edition/12.2 with port 1521 opened in the security lists
ATP Instance
Download the wallet zip-file from the ATP instance containing a tnsnames.ora, sqlnet.ora and some wallet files.
Then upload the unzipped files to your DBCS instance.
1. Wallet Configuration
On DBCS: Replace the sqlnet.ora and tnsnames.ora in the $ORACLE_HOME/network/admin folder with the ones from the zip file (might need to merge them if you have existing entries that are still needed).
Replace the WALLET_LOCATION in the sqlnet.ora file with the actual location of your wallet files (specifically the cwallet.sso and ewallet.p12). Make certain the permission are open for the oracle user.
2. Database Link
You have two options for the database link (that I know of). First get the service names (e.g. randomatp_high) from your tnsnames.ora file.
Using the username/password of your ATP admin user in the database link connection command
create database link <DBLinkName> connect to ADMIN identified by "<ATPpassword>" using '<ATPServiceName>';
Create two users with the same username and the same password in DBCS and ATP, connect to DBCS as that user and then:
create database link <DBLinkName> using '<ATPServiceName>';
You might need to use alter session set global_names=false; to help with ORA-02085 saying the database link is connected to a different DB.
3. Test
Test the database link with e.g.:
select banner from v$version#<DBLinkName>;

How do I move 2 csv files from my local machine to a remote machine (both are windows machines) ?

I'm looking for a one click solution like a vbs or batch file which would copy 2 csv files from my local machine to a remote server on a particular location. This is primarily what I'm looking for.
Also, I would like to know if the same is possible if my account is not added into the server users list (I don't have access). Is there some way by which just that particular location will be shared?
You can try and share the specific folder on the server with your network. After that go to your client and open up the explorer. navigate to 'computer' and on the bottom you should find your network ressources. right click and add the server with his IP address. If done correctly you should have access to the servers folder as if it was one of your client. So you should now be able to create a desktop shortcut to the servers folder and be able to add files to the folder by drag & drop. Of course now you could write a simple batch file that copies all the contents of one of your folders to the servers folder.

ASA database when moved/copied data dissapears

Good Day.
I'm having a funny scenario when when I relocate a ASA database file then data goes missing. I run a PB9 application connecting to a ASA8 database via ODBC. The database contans approx 30 tables. Below are 2 actual scenario's:
I create a db file for a customer. I populate the database (via the app) with specific customer setup data (ABC). I then install the app and database on the customers machine. After a week the customer has added some extra data (XYZ). He then has a problem with something. I ask him to zip up the db file and email it to me. On my side I reinstate his database and find only dataset ABC. XYZ gone. I'm 100% sure I'm not confusing the old and new db files.
Similar scenario as above... except that I relocate his db file remotely via TeamViewer from folder A to folder B on the same machine. Upon reconnection (ODBC) to the relocated db, only data ABC exsits. XYZ is gone.
Both instances the connection to the db is made via default login dba/sql.
Anyone know whats going on or where to look to resolve this?
Thanks and kind regards
Alex

How to distribute FDSN to other users or machines?

I am using a File DSN to connect to a SQL Server database in a linked tables project with MS Access as front end.
When I open the created .dsn file, it looks like this:
[ODBC]
DRIVER=SQL Server
UID=XXX
DATABASE=XXXX
WSID=XXXXXX
APP=Microsoft Office 2010
Trusted_Connection=Yes
SERVER=XXXX,XXX
Description=XXX
Here, it is showing my workstation's host name and my user id as I have created the DSN
If I want to share the app along with DSN , do I have to change any details in the DSN file ?
What is procedure to be followed to distribute this FDSN to multiple machines? Or simply sharing the file would suffice
We prefer to avoid System DSN as it causes difficulty in deploying the app to multiple users in production
Any thoughts on this ?
Eliminate the DSN and use DSN-less connections. Here are some links
http://www.accessmvp.com/djsteele/DSNLessLinks.html
http://www.databasejournal.com/features/mssql/article.php/1491011/ODBC-DSN-Less-Connection-Tutorial.htm
https://support.microsoft.com/en-us/kb/147875/en-us?wa=wsignin1.0

How to Create a Dynamic view in ClearCase 8 on Machine where I dont have ClearCase Server installed?

I need to create a Dynamic view on a machine where I have installed only ClearCase 8.0 client. I have ClearCase 8.0 server installed on another machine and my requirement is to have dynamic view on both server and client to be in sync. on Server i have already created the Dynamic view but not able to create the same(may be with same name) on Client machine.
This is basically required to execute the lsactivity command using the cleartool command to get the list of files associated with the specific activity and then I need to fetch only those files from the server repository to my snapshot view which is on client machine.
but not able to create the same(may be with same name) on Client machine.
This is normal: the view registry contains is based on the name of the views as id.
You should be able to start your dynamic view on the client if the view storage is accessible from said client (and you are on a LAN, not WAN).
If not, the easiest way to go forward is to create a second dynamic view, with a different name but with the same config spec.
As they are both dynamic views, they will be in sync.

Resources