Using nzsql commands in aginity - netezza

I'm working with Netezza on Aginity workbench on my windows computer. I'm wondering how I can use nzsql commands such as \l to get a list of databases as shows on this site: http://netezzaonline.blogspot.com/2013/10/netezza-cheat-sheets.html near the bottom of the page.
I would also like to use the nzload command for getting data into the Netezza appliance.
How can I use these commands on Aginity? Is there a built in terminal that understands these commands? I've been looking everywhere for this. Any help is greatly appreciated! Thanks.

To you first question, the short answer is: No
The Nzsql is a command-shell for Netezza that enables the execution of sql and lets you run other Pre-build commands against the appliance.
Aginity is a GUI on top of the appliance with many of the same capabilities and more, but accessed through a mouse and some menus.
You can say that command-shells are the predecessors of GUI clients, but they still play a great part in automation.
That being said, just do a ‘select * from _v_database’ as a replacement of \l
To your second question the answer is No as well, but you are fully compensated by the external table syntax:
https://www.ibm.com/support/knowledgecenter/en/SSULQD_7.2.1/com.ibm.nz.load.doc/c_load_transient_external_tables.html

Related

Steps to generate a windows script to create user concurrency?

Question, what would the steps to write/create a windows (bash?) script that will allow me to create user concurrency of 3 or 4? Would I need to write a script that modifies the "config" file in the .snowsql folder and then run it from snowsql? Any guidance or high level steps would be helpful. Thank you!
Each independent invocation of snowsql will create its own connection, so you can certainly fire them up in parallel CMD or PowerShell windows. If you also want to change the user or other aspects of each connection created, snowsql accepts command-line parameters as overrides (such as --username) instead of only relying on the config file.
If your goal is to perform a load test of concurrency, a common approach is to use Apache JMeter with a DB Test Plan using Snowflake's JDBC Driver. Alternatively, you can also use a multi-threaded Python script like the one presented in this concurrency/scaling testing article.

ClusterPoint dump and export tools for command-line

I am using ClusterPoint database and I really like web interface, but for automation I need to import some data from command-line.
Is there a generic tool available which would allow to import arbitrary XML file into my database from UNIX-style operating system? And is there also a dump utility?
Thanks in advance.
Last time I talked to people from Clusterpoint I was told that there are no CLI tools. Which is strange. But also opens up doors for some interesting contributions from community (if only there would be one :D ).

There is a PL/pgSQL free environment to develop for PostgreSQL?

I want to know if there is a free environment to develop in PL/pgSQL.
Writing the code in Notepad++, replacing the function and running it turns the process slow. I'm using pgAdmin(only to replace and run the procedure) at the moment, but this is not what I want.
I know that there is one similar question here, but this is not duplicated. All the tools to develop are paid, I want to know if there is one free.
I am very happy with following environment.
I use a programmer editor like geany or similar and I edit a file with functions - I put related functions to one file - this is similar to modules from other environments.
I don't use a copy to pgAdmin - it is terrible work - and I don't think so pgAdmin is good tool for editing and maintaining more functions - it is good for ad hoc changes. The editor is not strong - it is simply, and you can't use a usual tools like git, cvs, .. More - you cannot to organize a related functions to one entity.
If I have a one or two files, then I have a opened console, and just import a file to postgres via \i command. If I have a more larger and complex project I use a makefiles - so it automatically import only modified and depended files. This is very good and very effective when you have a project with more then one hundred functions.
If you are looking for a debugger, check http://pgfoundry.org/projects/edb-debugger/ that can be included in pgAdmin. I have never seen any other tool that can debug plpgsql, only pgAdmin.
I had similar question and guys recommended me Toad Extension for Eclipse. You can see the discussion here: Development oriented PostgreSQL IDE

Zend Framework: Getting started using SQLite

Sorry if this is overly simplistic.
I've decided that I want to use an SQLite database instead of a MySQL database. I'm trying to wrap my head around how simple SQLite is and would like a simple, one answer tutorial on how to use SQLite with the Zend Framework, where to put my SQLite database in my directory structure, how to create the database, etc.
#tuinstoel is correct, attaching to an SQLite database implicitly creates it if it does not exist.
SQLite also supports a command-line client that is more or less like MySQL's command shell, allowing you to issue ad hoc commands or run SQL scripts. See documentation here: http://www.sqlite.org/sqlite.html
Of course you need to change the Zend_Db adapter in your ZF application. ZF supports only an adapter to the PDO SQLite extension. SQLite doesn't support user/password credentials. Also since SQLite is an embedded database instead of client/server, the "host" parameter is meaningless.
$db = Zend_Db::factory("pdo_sqlite", array("dbname"=>"/path/to/mydatabase.db"));
One more caveat: when you get query results in associative-array format, some versions of SQLite insist on using "tablename.columnname" as the keys in the array, whereas other brands of database return keys as simply "columnname". There's an outstanding bug in ZF about this, to try to compensate and make SQLite behave consistently with the other adapters, but the bug is unresolved.
If you make a connection to a not existing database, a database is created on the fly. (You can turn this behavour off)
This is now covered in the Zend Framework quickstart tutorial (version 1.9.5 as of this writing). Just make a new project (with zf command line tool. look here for a great tutorial on setting it up), add these lines to your config.ini file and you're good to go:
; application/configs/application.ini
[production]
resources.db.adapter = "PDO_SQLITE"
resources.db.params.dbname = APPLICATION_PATH "/../data/db/databaseName.db"
Now when you ask for your default database adapter, it will use this one. I would also recommend downloading the quickstart tutorial source code and making use of the load.sqlite.php script. You can create a schema and data file and load the database with these tables/columns/values. It's very helpful! Just check out the tutorial. It's all in there.
This answer was moved out of the question into a CW answer to disavow ownership over the content.

Transfering User Names from One Forum to Another?

How do I transfer the users of a vBulletin forum to a new installation of IceBB?
Presumably, they both have a database back-end of some sort, right? SQL dump, followed by patching stuff up in your favorite scripting language, followed by SQL load, seems do-able.
There is a tool called ImpEx for vBulletin to do exactly this. It imports and exports users and data. Doing the SQL yourself can be error prone and difficult compared to using ImpEx.

Resources