I am trying to get the definition of table in teradata and I am using following command
show table DatabaseName.TableName;
This works fine for small tables but for large table it's not showing the full definition.
Is there any other way for this.
I am running this query on teradata sql assistant version 13.0
please help.
Your're running a quite old version of SQL Assistant and probably a quite old version of ODBC, too.
There was a bug truncating the result of a SHOW TABLE, but it was fixed years ago.
Try to get a newer release of ODBC and/or SQL Assistant (or switch to the .NET provider)
http://downloads.teradata.com/download
Related
I'm unable to utilize SQLite window functions (e.g. LAG, LEAD). After some investigation it seems that this is due to the fact that SQLite database version is below 3.25.0, after which window functions were made available.
Database created using SQLite 3.30.1 version
However version 3.24.0 version displayed on this 'test' database
When queries which include window functions are tested, such as the ones provided on sqlitetutorial site: the following errors are displayed
Could you please advise how to resolve this. I would much appreciate your support on this.
SELECT CustomerId, Year, Total,
LAG (Total, 1, 0) OVER (ORDER BY Year) PreviousYearTotal
FROM CustomerInvoices
WHERE CustomerId = 4;
Had this same issue. It looks like you're using SQLiteStudio, the latest version is 3.21 from December 2019. While your database was made in SQLite 3.30 (and your software is probably using 3.30), the version of SQLiteStudio you are using is based on 3.24.
There is an outstanding feature request to implement window functions in SQLiteStudio. Until then, the best you can do is replace the sqlite3.dll in the SQLiteStudio program directory with a newer version (3.30 , 32-bit works). Window functions will show as a syntax error, but the queries will still execute.
I have a problem in reports 11g that when working on a report if I try to copy/past any field (text, data even a line) reports crashes, is it a common problem or there's a problem with the installation.
Thanks
There is a MetaLink document - ID 1395965.1 - regarding this problem which states that the fix is to make sure that you install the 32-bit versions of the Oracle Fussion Middleware software rather than the 64-bit ones, even on 64-bit platform.
For more knowledge about the problem you can visit the following link.
https://pitss.com/us/2015/01/19/copyingpasting-in-reports-builders-layout-editor-causes-reports-builder-to-freeze/
I recently dug up a very old SQL Anywhere database. I have it installed and it kind of works, its only the distributed side of the data, so everything's running via dbeng50 and ODBC.
I would like to migrate this data to MySQL. Is there a way to do this? I attempted to view the data using an ODBC tool but I kept getting error messages saying the ODBC driver doesn't support the version of ODBC behavior.
I guess the database is too old (it's from 1997) - that put's at it SQL Anywhere version 5.
Its also difficult to find the old SQL tools that would help me access these.
Is it possible to use the .db file with a newer version?
Any help or guidance at all would be appreciated.
I am having problems reflecting tables in Oracle using cx_Oracle version 5.1 (autoload=True). Everything works fine under cx_Oracle version 5.0.4. Here's the error I get:
DatabaseError: (DatabaseError) ORA-01460: unimplemented or unreasonable conversion requested
Somehow, the query sent to oracle is not substituting the tablename and schema correctly. Has anybody seen anything like this and have a solution? I'd like to avoid to define columns manually for all the tables. I also want to use the latest versions if possible.
I just submitted a patch that fixes this issue for me. Support for Unicode was added to cx_Oracle and then later removed. There are a few lines in SQLAlchemy's cx_oracle.py that check the version of the cx_Oracle module. The patch updates these version checks to take into account the reverted Unicode support.
I think that it was your question that helped me get SQLAlchemy working with cx_Oracle for the first time a few weeks ago, so thanks for asking! :-D
As discussed in the thread for the patch of Alex, a solution is to set the NLS_LANG environment variable, so that cx_oracle can use the right converter. For example:
import os
os.environ["NLS_LANG"] = ".UTF8"
I just have some issues regarding the usage of the latest oracle ODP.NET client , and using it to connect with ASP.NET 2008 and C# to an old Oracle 9i database. As stated in the ODP.NET instalation instructuins it should work, but I'm a little bit rusty when it comes to configure oracle.
The old 9i client has issues for .NET, it simply doesn't work it does the ORA-01036: illegal variable name/number' , is it needs updating. so I've installed the 11g one, runned the SQL scripts that come with the installer, now , the tricky part which I don't quite understand, is the files that go on Network/ADMIN the tnsnames.ora, sqlnet.ora , I just copied them from the 9i restarted and , it seems that by making a new connection on Servers on VS 2008 it works, then made a SQlDataConnection runed a query , tested it , I could see the retrieved rows using Oracle.DataAccess.Client.
When it comes to retrieve the same data in a grid for example, the page never loads, and it timeouts, something doesn't work ... added the reference to Oracle.DataAccess, tried even to make some code with a connection and a command , and it gives me the Data provider internal error(-3000) [System.String] using the same connection string i used in servers...
I'm sure that something is related with configuring the 11g client to work with my existing 9i database.
Note: the 9i client still exists on the system ,
The Microsoft .net Oracle provider doesn't work at all, and i would preffer not to use it , so I want to stick with ODP.net and the framework 2.0 for which is intended to work with.
I'm just curios what am I doing wrong, or how can I debug and find out what Oracle is complaining about.But it's like I said I'm no pro in Oracle , I just used it with preconfigured things, and used to work with MS SQL or MySQL which in this case they seem to work fine.
just an update on my progress. It seems that doesn't matter which vers. of ODP.net you install it will always have problems with SQLDataSource, it simly doesn't work, so if you try any other DataSource like ObjectDataSource with DataSet or other implementation, it's working and parametrized too but remember to use :PARAM , instead of #PARAM .
Jusst a piece of advice: remember to condifure your Network/Admin .ora files properly otherwise it won't work.
The way i did it was to install the v10 over the 9 then the 11g , then configure it. And this time it worked , no Data provider internal error(-3000) , but still with ORA-01036: illegal variable name/number' on SQLDataSource, so my advice don't uset it , never, just for demos, for a real project , think different.
Anyone has a different oppinion on how to do things with oracle differently ?