Hierarchy Table not shown
Hi MDMTechies,
I am facing a very absurd problem.
The XSD that I have created is showing me the hierarchy table.
But when I connect it to the syndicator through the destination properties, it is not showing me any of the hierarchy tables in the destination items.Rest all tables - flats as well as qualified are there.
Has anybody come across the same problem??
Thanks,
Minaz
Hi Aishwarya,
The blackberry doesnt support a table with property "Grouped column" for its columns.
Please try the following to display table in BlackBerry.
1. Insert a table child ui element to your view.
2. In the context menu of your table ui element, choose "Insert Column". Add as many columns to the table as you need.
3. Now in the context menu of each column element, choose "Insert TableCellEditor - Text View".
4. Now for each column element, do the context binding.
Hope this solves your problem.
Regards,
Sunil
Similar Messages
-
Tables not shown in connections tree for DB2 databases
Hi!
I often use SQL Developer to connect to our DB2 databases. However, when I expand the desired schema in a DB2 database, the Tables node is empty, although it should not be. There are tables in that schema and I can select data from them, so security is not an issue:
For example:
select tabschema, tabname from syscat.tables where tabschema not like 'SYS%' order by 1,2;
returns many schema names and table names is those schemas. Let's pick one, i.e table name METER_TYPE in schema METER ( there are 4 tables in schema METER)
select count(*) from meter.meter_type
returns: 38
However, the Tables node shows no tables. Tese tables are not Aliases (DB2 slang for synonyms) or views, however, those 2 nodes are also empty when they should not be - we have schemas with aliases and views, which are also NOT shown. The Index node is populated most frequently, but not completely (there are indexes missing).
Here are my details (don't be fooled by java 1.7, the behaviour is the same with 1.6):
DB2 jdbc driver version: 3.57.82
About
Oracle SQL Developer 3.0.04
Version 3.0.04
Build MAIN-04.34
Copyright © 2005, 2011 Oracle. All Rights Reserved.
IDE Version: 11.1.1.4.37.59.31
Product ID: oracle.sqldeveloper
Product Version: 11.1.2.04.34
Version
Component Version
========= =======
Java(TM) Platform 1.7.0
Oracle IDE 3.0.04.34
Versioning Support 3.0.04.34
Properties
Name Value
==== =====
awt.toolkit sun.awt.X11.XToolkit
class.load.environment oracle.ide.boot.IdeClassLoadEnvironment
class.load.log.level CONFIG
class.transfer delegate
file.encoding UTF-8
file.encoding.pkg sun.io
file.separator /
http.nonProxyHosts localhost|localhost.localdomain|127.0.0.1|::1|localhost|alex.localdomain
ice.browser.forcegc false
ice.pilots.html4.ignoreNonGenericFonts true
ice.pilots.html4.tileOptThreshold 0
ide.AssertTracingDisabled true
ide.bootstrap.start 5367470843749639
ide.build MAIN-04.34
ide.conf /home/alex/prg/oracle/sqldeveloper300434/sqldeveloper/sqldeveloper/bin/sqldeveloper.conf
ide.config_pathname /home/alex/prg/oracle/sqldeveloper300434/sqldeveloper/sqldeveloper/bin/sqldeveloper.conf
ide.debugbuild false
ide.devbuild false
ide.extension.search.path sqldeveloper/extensions:jdev/extensions:ide/extensions
ide.firstrun true
ide.java.minversion 1.6.0_04
ide.main.class oracle.ide.boot.IdeLauncher
ide.patches.dir ide/lib/patches
ide.pref.dir /home/alex/.sqldeveloper
ide.product oracle.sqldeveloper
ide.splash.screen splash.gif
ide.startingcwd "/home/alex/prg/oracle/sqldeveloper300434/sqldeveloper/sqldeveloper/bin"
ide.user.dir /home/alex/.sqldeveloper
ide.user.dir.var IDE_USER_DIR
ide.vcs.noapplications true
ide.work.dir /home/alex/sqldeveloper
ilog.propagatesPropertyEditors false
java.awt.graphicsenv sun.awt.X11GraphicsEnvironment
java.awt.printerjob sun.print.PSPrinterJob
java.class.path ../../ide/lib/ide-boot.jar
java.class.version 51.0
java.endorsed.dirs /home/alex/prg/jdk1.7.0/jre/lib/endorsed
java.ext.dirs /home/alex/prg/jdk1.7.0/jre/lib/ext:/usr/java/packages/lib/ext
java.home /home/alex/prg/jdk1.7.0/jre
java.io.tmpdir /tmp
java.library.path /home/alex/prg/oracle/instantclient_11_2::/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
java.naming.factory.initial oracle.javatools.jndi.LocalInitialContextFactory
java.protocol.handler.pkgs oracle.jdevimpl.handler
java.runtime.name Java(TM) SE Runtime Environment
java.runtime.version 1.7.0-b147
java.specification.name Java Platform API Specification
java.specification.vendor Oracle Corporation
java.specification.version 1.7
java.util.logging.config.file logging.conf
java.vendor Oracle Corporation
java.vendor.url http://java.oracle.com/
java.vendor.url.bug http://bugreport.sun.com/bugreport/
java.version 1.7.0
java.vm.info mixed mode
java.vm.name Java HotSpot(TM) 64-Bit Server VM
java.vm.specification.name Java Virtual Machine Specification
java.vm.specification.vendor Oracle Corporation
java.vm.specification.version 1.7
java.vm.vendor Oracle Corporation
java.vm.version 21.0-b17
jdbc.library /home/alex/prg/oracle/sqldeveloper300434/sqldeveloper/jdbc/lib/ojdbc6.jar
line.separator \n
log.file.name /home/alex/prg/oracle/sqldeveloper300434/sqldeveloper/sqldeveloper/extensions/oracle.datamodeler/log/datamodeler.log
oracle.home /home/alex/prg/oracle/sqldeveloper300434/sqldeveloper
oracle.ide.util.AddinPolicyUtils.OVERRIDE_FLAG true
oracle.jdbc.mapDateToTimestamp false
oracle.net.tns_admin /home/alex/prg/oracle/sqldeveloper300434/sqldeveloper/network/admin
oracle.translated.locales de,es,fr,it,ja,ko,pt_BR,zh_CN,zh_TW
oracle.xdkjava.compatibility.version 9.0.4
orai18n.library /home/alex/prg/oracle/sqldeveloper300434/sqldeveloper/jlib/orai18n.jar
os.arch amd64
os.name Linux
os.version 2.6.30.10-105.2.23.fc11.x86_64
path.separator :
reserved_filenames con,aux,prn,lpt1,lpt2,lpt3,lpt4,lpt5,lpt6,lpt7,lpt8,lpt9,com1,com2,com3,com4,com5,com6,com7,com8,com9,conin$,conout,conout$
sqldev.debug false
sun.arch.data.model 64
sun.awt.enableExtraMouseButtons true
sun.boot.class.path /home/alex/prg/jdk1.7.0/jre/lib/resources.jar:/home/alex/prg/jdk1.7.0/jre/lib/rt.jar:/home/alex/prg/jdk1.7.0/jre/lib/sunrsasign.jar:/home/alex/prg/jdk1.7.0/jre/lib/jsse.jar:/home/alex/prg/jdk1.7.0/jre/lib/jce.jar:/home/alex/prg/jdk1.7.0/jre/lib/charsets.jar:/home/alex/prg/jdk1.7.0/jre/classes
sun.boot.library.path /home/alex/prg/jdk1.7.0/jre/lib/amd64
sun.cpu.endian little
sun.cpu.isalist
sun.desktop gnome
sun.io.unicode.encoding UnicodeLittle
sun.java.command oracle.ide.boot.Launcher
sun.java.launcher SUN_STANDARD
sun.java2d.ddoffscreen false
sun.java2d.pmoffscreen false
sun.jnu.encoding UTF-8
sun.management.compiler HotSpot 64-Bit Tiered Compilers
sun.os.patch.level unknown
svnkit.sax.useDefault true
user.country US
user.dir /home/alex/prg/oracle/sqldeveloper300434/sqldeveloper/sqldeveloper/bin
user.home /home/alex
user.language en
user.name alex
user.timezone CET
windows.shell.font.languages
Extensions
Name Identifier Version Status
==== ========== ======= ======
Check For Updates oracle.ide.webupdate 11.1.1.4.37.59.31 Loaded
Code Editor oracle.ide.ceditor 11.1.1.4.37.59.31 Loaded
Component Palette oracle.ide.palette1 11.1.1.4.37.59.31 Loaded
Data Miner oracle.dmt.dataminer 11.2.0.1.10.109 Loaded
Database Connection Support oracle.jdeveloper.db.connection 11.1.1.4.37.59.31 Loaded
Database Object Explorers oracle.ide.db.explorer 11.1.1.4.37.59.31 Loaded
Database UI oracle.ide.db 11.1.1.4.37.59.31 Loaded
Diagram Framework oracle.diagram 11.1.1.4.37.59.31 Loaded
Diagram Javadoc Extension oracle.diagram.javadoc 11.1.1.4.37.59.31 Loaded
Diagram Thumbnail oracle.diagram.thumbnail 11.1.1.4.37.59.31 Loaded
Diff/Merge oracle.ide.diffmerge 11.1.1.4.37.59.31 Loaded
Extended IDE Platform oracle.javacore 11.1.1.4.37.59.31 Loaded
External Tools oracle.ide.externaltools 11.1.1.4.37.59.31 Loaded
File Support oracle.ide.files 11.1.1.4.37.59.31 Loaded
Help System oracle.ide.help 11.1.1.4.37.59.31 Loaded
History Support oracle.jdeveloper.history 11.1.1.4.37.59.31 Loaded
Import/Export Support oracle.ide.importexport 11.1.1.4.37.59.31 Loaded
Index Migrator support oracle.ideimpl.indexing-migrator 11.1.1.4.37.59.31 Loaded
JDeveloper Runner oracle.jdeveloper.runner 11.1.1.4.37.59.31 Loaded
JViews Registration Addin oracle.diagram.registration 11.1.1.4.37.59.31 Loaded
Log Window oracle.ide.log 11.1.1.4.37.59.31 Loaded
Mac OS X Adapter oracle.ideimpl.apple 11.1.1.4.37.59.31 Loaded
Navigator oracle.ide.navigator 11.1.1.4.37.59.31 Loaded
Object Gallery oracle.ide.gallery 11.1.1.4.37.59.31 Loaded
Oracle IDE oracle.ide 11.1.1.4.37.59.31 Loaded
Oracle SQL Developer oracle.sqldeveloper 11.1.2.04.34 Loaded
Oracle SQL Developer - 3rd Party Database Browsers oracle.sqldeveloper.thirdparty.browsers 11.1.1.04.34 Loaded
Oracle SQL Developer - DBA Navigator oracle.sqldeveloper.dbanavigator 11.1.1.04.34 Loaded
Oracle SQL Developer - Extras oracle.sqldeveloper.extras 1.1.1.04.34 Loaded
Oracle SQL Developer - File Navigator oracle.sqldeveloper.filenavigator 11.1.1.04.34 Loaded
Oracle SQL Developer - Migrations Antlr3 Translator oracle.sqldeveloper.migration.translation.core_antlr3 11.1.1.04.34 Loaded
Oracle SQL Developer - Migrations Application Migration oracle.sqldeveloper.migration.application 11.1.1.04.34 Loaded
Oracle SQL Developer - Migrations Core oracle.sqldeveloper.migration 11.1.1.04.34 Loaded
Oracle SQL Developer - Migrations DB2 oracle.sqldeveloper.migration.db2 11.1.1.04.34 Loaded
Oracle SQL Developer - Migrations DB2 Translator oracle.sqldeveloper.migration.translation.db2 11.1.1.04.34 Loaded
Oracle SQL Developer - Migrations Microsoft Access oracle.sqldeveloper.migration.msaccess 11.1.1.04.34 Loaded
Oracle SQL Developer - Migrations Microsoft SQL Server oracle.sqldeveloper.migration.sqlserver 11.1.1.04.34 Loaded
Oracle SQL Developer - Migrations MySQL oracle.sqldeveloper.migration.mysql 11.1.1.04.34 Loaded
Oracle SQL Developer - Migrations Sybase Adaptive Server oracle.sqldeveloper.migration.sybase 11.1.1.04.34 Loaded
Oracle SQL Developer - Migrations T-SQL Translator oracle.sqldeveloper.migration.translation.core 11.1.1.04.34 Loaded
Oracle SQL Developer - Migrations Teradata oracle.sqldeveloper.migration.teradata 11.1.1.04.34 Loaded
Oracle SQL Developer - Migrations Translation UI oracle.sqldeveloper.migration.translation.gui 11.1.1.04.34 Loaded
Oracle SQL Developer - Object Viewer oracle.sqldeveloper.oviewer 11.1.1.04.34 Loaded
Oracle SQL Developer - Real Time SQL Monitoring oracle.sqldeveloper.sqlmonitor 11.1.1.04.34 Loaded
Oracle SQL Developer - Reports oracle.sqldeveloper.report 11.1.1.04.34 Loaded
Oracle SQL Developer - Scheduler oracle.sqldeveloper.scheduler 11.1.1.04.34 Loaded
Oracle SQL Developer - Schema Browser oracle.sqldeveloper.schemabrowser 11.1.1.04.34 Loaded
Oracle SQL Developer - SearchBar oracle.sqldeveloper.searchbar 11.1.1.04.34 Loaded
Oracle SQL Developer - Snippet oracle.sqldeveloper.snippet 11.1.1.04.34 Loaded
Oracle SQL Developer - Spatial oracle.sqldeveloper.spatial 11.1.1.04.34 Loaded
Oracle SQL Developer - TimesTen oracle.sqldeveloper.timesten 2.0.0.04.34 Loaded
Oracle SQL Developer - Tuning oracle.sqldeveloper.tuning 11.1.1.04.34 Loaded
Oracle SQL Developer - Unit Test oracle.sqldeveloper.unit_test 11.1.1.04.34 Loaded
Oracle SQL Developer - User Extensions Support oracle.sqldeveloper.userextensions 11.1.1.04.34 Loaded
Oracle SQL Developer - Worksheet v2 oracle.sqldeveloper.worksheet 11.1.1.04.34 Loaded
Oracle SQL Developer - XML Schema oracle.sqldeveloper.xmlschema 11.1.1.04.34 Loaded
Oracle SQL Developer Data Modeler oracle.datamodeler 3.0.0.665.2 Loaded
Oracle SQL Developer Data Modeler - Reports oracle.sqldeveloper.datamodeler_reports 11.1.1.04.34 Loaded
PROBE Debugger oracle.jdeveloper.db.debug.probe 11.1.1.4.37.59.31 Loaded
Peek oracle.ide.peek 11.1.1.4.37.59.31 Loaded
Persistent Storage oracle.ide.persistence 11.1.1.4.37.59.31 Loaded
Property Inspector oracle.ide.inspector 11.1.1.4.37.59.31 Loaded
QuickDiff oracle.ide.quickdiff 11.1.1.4.37.59.31 Loaded
Replace With oracle.ide.replace 11.1.1.4.37.59.31 Loaded
Runner oracle.ide.runner 11.1.1.4.37.59.31 Loaded
SQL Developer Patch oracle.sqldeveloper.patch 11.1.2.04.39 Loaded
VHV oracle.ide.vhv 11.1.1.4.37.59.31 Loaded
Versioning Support oracle.jdeveloper.vcs 11.1.1.4.37.59.31 Loaded
Versioning Support for Subversion oracle.jdeveloper.subversion 11.1.1.4.37.59.31 Loaded
Virtual File System oracle.ide.vfs 11.1.1.4.37.59.31 Loaded
Web Browser and Proxy oracle.ide.webbrowser 11.1.1.4.37.59.31 Loaded
XML Editing Framework IDE Extension oracle.ide.xmlef 11.1.1.4.37.59.31 Loaded
audit oracle.ide.audit 11.1.1.4.37.59.31 Loaded
classpath: protocol handler extension oracle.jdeveloper.classpath 11.1.1.0.0 Loaded
jdukshare oracle.bm.jdukshare 11.1.1.4.37.59.31 Loaded
mof-xmi oracle.mof.xmi 11.1.1.4.37.59.31 Loaded
oracle.ide.dependency oracle.ide.dependency 11.1.1.4.37.59.31 Loaded
oracle.ide.indexing oracle.ide.indexing 11.1.1.4.37.59.31 Loaded
palette2 oracle.ide.palette2 11.1.1.4.37.59.31 Loaded
status oracle.ide.status 11.1.1.4.37.59.31 LoadedIt doesn't sound like this is the answer in your case, but here is a problem I had with tree icons in 6i which took me a while to figure out.
For some unknown and probably pointless reason, forms converts the tree query to uppercase before executing it. This can cause problems if the sql contains any hardcoded strings. In my case I was doing something like
decode(status,1,'red',2,'green')||icon_name
this resulted in REDicon when my icon was actually redicon.gif -
Tables (not shown or hidden)
Hi Experts,
Is there a way of showing tables that are hidden or not shown in the query wizard listing when you tab to see the table list.
I have had a couple of instances where when trying too write the query and struggled. But when I have spoken to our BP Channel Partner they have given me a table name not shown in the wizard and I have got the query information.
For example CSHS does not show in the wizard as a named table but if you ignore and cancel the blank selection list carry on and select all. Data fields are shown and you can return data.
Thanks.
Regards
JimJim,
It's not possible to display those tables in SAP but I have a list of all the existing ones, I've sent it to your e-mail address.
Regards,
Nat -
Help! Table not shown in browser!!!!!!
I never had this problem. The JTable is not shown at all!!! The JTable is embedded in an applet. I had similar program done (posted the code here) for another dataset and it works perfectly well. I'm suspecting the renderers. Here is the relevant code if anyone can please help me sort this mystery out.
if (k==0) /* sysname column */
renderer=new DefaultTableCellRenderer();
JComboBox combo= new JComboBox(sys_names);
combo.setRequestFocusEnabled(false);
combo.setBackground(Color.yellow);
combo.setEditable(false);
combo.getEditor().getEditorComponent().setBackground(Color.blue)
editor=new DefaultCellEditor(combo);
} else if (k==1) /* sys-ecp-dcs*/
renderer=new DefaultTableCellRenderer();
editor=new DefaultCellEditor(combo);
JComboBox combo= new JComboBox(sys_ecp_dcs_list);
combo.setRequestFocusEnabled(false);
combo.setBackground(Color.yellow);
combo.setEditable(false);
combo.getEditor().getEditorComponent().setBackground(Color.blue);
} else {
renderer = new cbhtol_TextAreaCellRenderer (); // NEW
editor = new cbhtol_TextAreaCellEditor (this,m_table, m_data);
TableColumn column = new TableColumn (k,
cbhtol_TrunkReportData.m_columns[k].m_width,
renderer, editor);
column.setHeaderRenderer(createDefaultRenderer());
m_table.addColumn (column); And the renderers:
protected TableCellRenderer createDefaultRenderer() {
DefaultTableCellRenderer label = new DefaultTableCellRenderer()
public Component getTableCellRendererComponent(JTable table, Object valu
e, boolean isSelected, boolean hasFocus, int row, int column) {
if (table != null) {
JTableHeader header = table.getTableHeader();
if (header != null) {
//setForeground(header.getForeground());
setForeground(Color.white);
Color bg=new Color(200,100,30);
//setBackground(header.getBackground());
setBackground(bg);
setFont(header.getFont());
setText((value == null) ? "" : value.toString()) ;
setBorder(UIManager.getBorder("TableHeader.cellBorder"));
return this;
label.setHorizontalAlignment(JLabel.CENTER);
return label;
} //table cell renderer
class cbhtol_TextAreaCellRenderer extends JTextArea implements TableCellRenderer
protected static Border m_noFocusBorder = new
EmptyBorder (1, 1, 1, 1);
protected static Border m_focusBorder =
UIManager.getBorder("Table.focusCellHighlightBorder");
public
cbhtol_TextAreaCellRenderer
setEditable
(false);
setLineWrap
(true);
setWrapStyleWord
(true);
setBorder
(m_noFocusBorder);
public Component
getTableCellRendererComponent
(JTable table,
Object value,
boolean
isSelected,
boolean
hasFocus,
int nRow, int nCol)
Color fg=new Color(255,0,0);
setForeground(Color.green);
if (value instanceof String)
setText ((String) value);
else if (value instanceof Integer)
setText((String)value.toString());
setBackground
(isSelected && !hasFocus ? table.getSelectionBackground() : table.
getBackground ());
setFont (table.getFont ());
setBorder (hasFocus ? m_focusBorder : m_noFocusBorder);
causes looping and stops rendering the components surrounding
the cells
int rowHeight = getPreferredSize().height;
if (table.getRowHeight(nRow) < rowHeight)
table.setRowHeight (nRow, rowHeight);
return this;}
// To fix JDK bug
public String getToolTipText (MouseEvent event)
return null;
} //class text area cell renderer
public Component
getTableCellRendererComponent
(JTable table,
Object value,
boolean
isSelected,
boolean
hasFocus,
int nRow, int nCol)
Color fg=new Color(255,0,0);
//ColorData cvalue = new ColorData(value);
if (table.getModel().getValueAt(nRow, 11).toString().trim().equals("Lucent")
setForeground(fg);
else if (table.getModel().getValueAt(nRow, 11).toString().trim().equals("Nor
tel"))
setForeground(Color.blue);
else
setForeground(Color.green);
setBackground
(isSelected && !hasFocus ? table.getSelectionBackground() : table.
getBackground ());
//setForeground (isSelected && !hasFocus ?
// table.getSelectionForeground() : table.getForeground ());
setFont (table.getFont ());
//setBorder (hasFocus ? m_focusBorder : m_noFocusBorder);
int rowHeight = getPreferredSize().height;
if (table.getRowHeight(nRow) < rowHeight)
table.setRowHeight (nRow, rowHeight);
return this;
public String getToolTipText (MouseEvent event)
return null;
} //class ComboCellRendererPLZ HELP!Nothing wrong with the renderers! Silly coding mistake!!
-
Hierarchy leaf not shown while data exists
Hi experts,
We have the following issue regarding the (in)visibility of hierarchy leafs:
We know that transactional data exists for a particular item in the hierarchy (total value is zero). This item is not shown by default in the report output (while zero suppression has been turned off). There are a few ways to make the item visible, e.g:
1. Deactivate the hierarchical display
2. Filter on the item
3. Filter on another characteristic value for which the transaction data doesn't add up to zero.
4. .........
However, we would like to show the item in any case, so even when the underlying transactional data sums up to zero.
Has anyone faced a similar problem before? Any idea how to solve the issue?
If necessary, I can send some screenshots with detailed information by email.
Thanks in advance !
Kind regards,
ReneHi,
We had a similiar issue in the Cost Element Hierarchy & got resolution.
I followed the below method an extract from SDN Forum reply.
You need to make the InfoObject an InfoProvider. Then you create a multiprovider with your InfoCube and the InfoObject. When you create a query, insert a new column that contains the key figure 0ROWCOUNT and a restriction on 0INFOPROV to your InfoObject.
When you right click on 0INFOPROV you now have the option to select Constant Selection. When you've turned it on you do a right click again and you're able to activate "Display non-posted values."
Finally hide the new column and execute the query.
Also we found out that for the nodes that were not appearing , the master data was incomplete. there was no source system assignment to those, we updated the field manually & with the above method the query worked.
Regards
Lalan -
Hi Guys,
when loading delta load(master data) it was showing Application log, when lokk in to log, the message was : Hierachy tables not found.
can any one give suggestion.
Thanks in ADVANCE.Hi Arun,
yes hierarchies r maintained for the infoobject 0bpartner.There are three tables:
/BI0/HBPARTNER,..>hierachy table
/BI0/KBPARTNER--->hierachy sid table
/BI0/IBPARTNER....?hirarchy/stru table
could u please let me know how to proceed..
thanks,
ram -
I am using Oracle SQL Developer 3.0.03. We are going through some security lock downs in Oracle (10g, 11g) and before we were able to use Oracle SQL Developer to see tables, when logged in as the schema owner. Now, after completing the Oracle lock down, we're not able to. The easiest thing is to revert everything back, however, we can't do that. Can someone tell me what Oracle SQL Developer needs in order to see a table list? When I click on Tables, to expand, I get o.d.db.DBUtil (Source) and Warning, unhandled exception: ORA-00942: table or view does not exist. Any help would be much appreciated
Looking at the logs, the query that is failing is this:
select * from
SELECT o.OBJECT_NAME,
o.OBJECT_ID,
'' short_name,
decode(bitand(t.property, 32), 32, 'YES', 'NO') partitioned,
decode(bitand(t.property, 64), 64, 'IOT',
decode(bitand(t.property, 512), 512, 'IOT_OVERFLOW',
decode(bitand(t.flags, 536870912), 536870912, 'IOT_MAPPING', null)
) iot_type,
o.OWNER OBJECT_OWNER,
o.CREATED,
o.LAST_DDL_TIME,
O.GENERATED,
O.TEMPORARY,
case when xt.obj# is null
then 'N'
else 'Y'
end EXTERNAL
FROM SYS.Dba_OBJECTS O,
sys.tab$ t, sys.external_tab$ xt
WHERE O.OWNER = :SCHEMA
and o.object_id = t.obj#(+)
and o.object_id = xt.obj#(+)
AND O.OBJECT_TYPE = 'TABLE'
union all
SELECT OBJECT_NAME, OBJECT_ID , syn.SYNONYM_NAME short_NAME, decode(bitand(t.property, 32), 32, 'YES', 'NO') partitioned,
decode(bitand(t.property, 64), 64, 'IOT',
decode(bitand(t.property, 512), 512, 'IOT_OVERFLOW',
decode(bitand(t.flags, 536870912), 536870912, 'IOT_MAPPING', null))) iot_type,
SYN.TABLE_OWNER OBJECT_OWNER, o.CREATED, o.LAST_DDL_TIME, O.GENERATED, O.TEMPORARY, case when xt.obj# is null then 'N' else 'Y' end EXTERNAL
FROM SYS.Dba_OBJECTS O, sys.user_synonyms syn,sys.tab$ t, sys.external_tab$ xt
WHERE syn.table_owner = o.owner
and syn.TABLE_NAME = o.object_NAME
and o.object_id = t.obj#
and o.object_id = xt.obj#(+)
and o.object_type = 'TABLE'
and :INCLUDE_SYNS = 1
) -
i have logon to the ORACLE SQL. when i write the query ,
select * from emp
ORA-00942: table or view does not exist
what is the problem with it? what i have to doCopy the below code into a text editor like notepad or something else. Save it like demo.sql or anything in any of your familiar folders which SQL*Plus recognizes. You can always run the file as I mentioned earlier.
@your_path\demo.sql
Here goes the code.
-- echo Building Oracle demonstration tables. Please wait.
DROP TABLE EMP;
DROP TABLE DEPT;
DROP TABLE BONUS;
DROP TABLE SALGRADE;
DROP TABLE DUMMY;
DROP TABLE ITEM;
DROP TABLE PRICE;
DROP TABLE PRODUCT;
DROP TABLE ORD;
DROP TABLE CUSTOMER;
DROP VIEW SALES;
DROP SEQUENCE ORDID;
DROP SEQUENCE CUSTID;
DROP SEQUENCE PRODID;
CREATE TABLE DEPT (
DEPTNO NUMBER(2) NOT NULL,
DNAME CHAR(14),
LOC CHAR(13),
CONSTRAINT DEPT_PRIMARY_KEY PRIMARY KEY (DEPTNO));
INSERT INTO DEPT VALUES (10,'ACCOUNTING','NEW YORK');
INSERT INTO DEPT VALUES (20,'RESEARCH','DALLAS');
INSERT INTO DEPT VALUES (30,'SALES','CHICAGO');
INSERT INTO DEPT VALUES (40,'OPERATIONS','BOSTON');
CREATE TABLE EMP (
EMPNO NUMBER(4) NOT NULL,
ENAME CHAR(10),
JOB CHAR(9),
MGR NUMBER(4) CONSTRAINT EMP_SELF_KEY REFERENCES EMP (EMPNO),
HIREDATE DATE,
SAL NUMBER(7,2),
COMM NUMBER(7,2),
DEPTNO NUMBER(2) NOT NULL,
CONSTRAINT EMP_FOREIGN_KEY FOREIGN KEY (DEPTNO) REFERENCES DEPT (DEPTNO),
CONSTRAINT EMP_PRIMARY_KEY PRIMARY KEY (EMPNO));
INSERT INTO EMP VALUES (7839,'KING','PRESIDENT',NULL,'17-NOV-81',5000,NULL,10);
INSERT INTO EMP VALUES (7698,'BLAKE','MANAGER',7839,'1-MAY-81',2850,NULL,30);
INSERT INTO EMP VALUES (7782,'CLARK','MANAGER',7839,'9-JUN-81',2450,NULL,10);
INSERT INTO EMP VALUES (7566,'JONES','MANAGER',7839,'2-APR-81',2975,NULL,20);
INSERT INTO EMP VALUES (7654,'MARTIN','SALESMAN',7698,'28-SEP-81',1250,1400,30);
INSERT INTO EMP VALUES (7499,'ALLEN','SALESMAN',7698,'20-FEB-81',1600,300,30);
INSERT INTO EMP VALUES (7844,'TURNER','SALESMAN',7698,'8-SEP-81',1500,0,30);
INSERT INTO EMP VALUES (7900,'JAMES','CLERK',7698,'3-DEC-81',950,NULL,30);
INSERT INTO EMP VALUES (7521,'WARD','SALESMAN',7698,'22-FEB-81',1250,500,30);
INSERT INTO EMP VALUES (7902,'FORD','ANALYST',7566,'3-DEC-81',3000,NULL,20);
INSERT INTO EMP VALUES (7369,'SMITH','CLERK',7902,'17-DEC-80',800,NULL,20);
INSERT INTO EMP VALUES (7788,'SCOTT','ANALYST',7566,'09-DEC-82',3000,NULL,20);
INSERT INTO EMP VALUES (7876,'ADAMS','CLERK',7788,'12-JAN-83',1100,NULL,20);
INSERT INTO EMP VALUES (7934,'MILLER','CLERK',7782,'23-JAN-82',1300,NULL,10);
CREATE TABLE BONUS (
ENAME CHAR(10),
JOB CHAR(9),
SAL NUMBER,
COMM NUMBER);
CREATE TABLE SALGRADE (
GRADE NUMBER,
LOSAL NUMBER,
HISAL NUMBER);
INSERT INTO SALGRADE VALUES (1,700,1200);
INSERT INTO SALGRADE VALUES (2,1201,1400);
INSERT INTO SALGRADE VALUES (3,1401,2000);
INSERT INTO SALGRADE VALUES (4,2001,3000);
INSERT INTO SALGRADE VALUES (5,3001,9999);
CREATE TABLE DUMMY (
DUMMY NUMBER );
INSERT INTO DUMMY VALUES (0);
CREATE TABLE CUSTOMER (
CUSTID NUMBER (6) NOT NULL,
NAME CHAR (45),
ADDRESS CHAR (40),
CITY CHAR (30),
STATE CHAR (2),
ZIP CHAR (9),
AREA NUMBER (3),
PHONE CHAR (9),
REPID NUMBER (4) NOT NULL,
CREDITLIMIT NUMBER (9,2),
COMMENTS LONG,
CONSTRAINT CUSTOMER_PRIMARY_KEY PRIMARY KEY (CUSTID),
CONSTRAINT CUSTID_ZERO CHECK (CUSTID > 0));
CREATE TABLE ORD (
ORDID NUMBER (4) NOT NULL,
ORDERDATE DATE,
COMMPLAN CHAR (1),
CUSTID NUMBER (6) NOT NULL,
SHIPDATE DATE,
TOTAL NUMBER (8,2) CONSTRAINT TOTAL_ZERO CHECK (TOTAL >= 0),
CONSTRAINT ORD_FOREIGN_KEY FOREIGN KEY (CUSTID) REFERENCES CUSTOMER (CUSTID),
CONSTRAINT ORD_PRIMARY_KEY PRIMARY KEY (ORDID));
CREATE TABLE ITEM (
ORDID NUMBER (4) NOT NULL,
ITEMID NUMBER (4) NOT NULL,
PRODID NUMBER (6),
ACTUALPRICE NUMBER (8,2),
QTY NUMBER (8),
ITEMTOT NUMBER (8,2),
CONSTRAINT ITEM_FOREIGN_KEY FOREIGN KEY (ORDID) REFERENCES ORD (ORDID),
CONSTRAINT ITEM_PRIMARY_KEY PRIMARY KEY (ORDID,ITEMID));
CREATE TABLE PRODUCT (
PRODID NUMBER (6) CONSTRAINT PRODUCT_PRIMARY_KEY PRIMARY KEY,
DESCRIP CHAR (30));
CREATE TABLE PRICE (
PRODID NUMBER (6) NOT NULL,
STDPRICE NUMBER (8,2),
MINPRICE NUMBER (8,2),
STARTDATE DATE,
ENDDATE DATE);
INSERT INTO CUSTOMER (ZIP, STATE, REPID, PHONE, NAME, CUSTID, CREDITLIMIT,
CITY, AREA, ADDRESS, COMMENTS)
VALUES ('96711', 'CA', '7844', '598-6609',
'JOCKSPORTS',
'100', '5000', 'BELMONT', '415', '345 VIEWRIDGE',
'Very friendly people to work with -- sales rep likes to be called Mike.');
INSERT INTO CUSTOMER (ZIP, STATE, REPID, PHONE, NAME, CUSTID, CREDITLIMIT,
CITY, AREA, ADDRESS, COMMENTS)
VALUES ('94061', 'CA', '7521', '368-1223',
'TKB SPORT SHOP',
'101', '10000', 'REDWOOD CITY', '415', '490 BOLI RD.',
'Rep called 5/8 about change in order - contact shipping.');
INSERT INTO CUSTOMER (ZIP, STATE, REPID, PHONE, NAME, CUSTID, CREDITLIMIT,
CITY, AREA, ADDRESS, COMMENTS)
VALUES ('95133', 'CA', '7654', '644-3341',
'VOLLYRITE',
'102', '7000', 'BURLINGAME', '415', '9722 HAMILTON',
'Company doing heavy promotion beginning 10/89. Prepare for large orders during
winter.');
INSERT INTO CUSTOMER (ZIP, STATE, REPID, PHONE, NAME, CUSTID, CREDITLIMIT,
CITY, AREA, ADDRESS, COMMENTS)
VALUES ('97544', 'CA', '7521', '677-9312',
'JUST TENNIS',
'103', '3000', 'BURLINGAME', '415', 'HILLVIEW MALL',
'Contact rep about new line of tennis rackets.');
INSERT INTO CUSTOMER (ZIP, STATE, REPID, PHONE, NAME, CUSTID, CREDITLIMIT,
CITY, AREA, ADDRESS, COMMENTS)
VALUES ('93301', 'CA', '7499', '996-2323',
'EVERY MOUNTAIN',
'104', '10000', 'CUPERTINO', '408', '574 SURRY RD.',
'Customer with high market share (23%) due to aggressive advertising.');
INSERT INTO CUSTOMER (ZIP, STATE, REPID, PHONE, NAME, CUSTID, CREDITLIMIT,
CITY, AREA, ADDRESS, COMMENTS)
VALUES ('91003', 'CA', '7844', '376-9966',
'K + T SPORTS',
'105', '5000', 'SANTA CLARA', '408', '3476 EL PASEO',
'Tends to order large amounts of merchandise at once. Accounting is considering
raising their credit limit. Usually pays on time.');
INSERT INTO CUSTOMER (ZIP, STATE, REPID, PHONE, NAME, CUSTID, CREDITLIMIT,
CITY, AREA, ADDRESS, COMMENTS)
VALUES ('94301', 'CA', '7521', '364-9777',
'SHAPE UP',
'106', '6000', 'PALO ALTO', '415', '908 SEQUOIA',
'Support intensive. Orders small amounts (< 800) of merchandise at a time.');
INSERT INTO CUSTOMER (ZIP, STATE, REPID, PHONE, NAME, CUSTID, CREDITLIMIT,
CITY, AREA, ADDRESS, COMMENTS)
VALUES ('93301', 'CA', '7499', '967-4398',
'WOMENS SPORTS',
'107', '10000', 'SUNNYVALE', '408', 'VALCO VILLAGE',
'First sporting goods store geared exclusively towards women. Unusual promotion
al style and very willing to take chances towards new products!');
INSERT INTO CUSTOMER (ZIP, STATE, REPID, PHONE, NAME, CUSTID, CREDITLIMIT,
CITY, AREA, ADDRESS, COMMENTS)
VALUES ('55649', 'MN', '7844', '566-9123',
'NORTH WOODS HEALTH AND FITNESS SUPPLY CENTER',
'108', '8000', 'HIBBING', '612', '98 LONE PINE WAY', '');
INSERT INTO ORD (TOTAL, SHIPDATE, ORDID, ORDERDATE, CUSTID, COMMPLAN)
VALUES ('101.4', '08-JAN-87', '610', '07-JAN-87', '101', 'A');
INSERT INTO ORD (TOTAL, SHIPDATE, ORDID, ORDERDATE, CUSTID, COMMPLAN)
VALUES ('45', '11-JAN-87', '611', '11-JAN-87', '102', 'B');
INSERT INTO ORD (TOTAL, SHIPDATE, ORDID, ORDERDATE, CUSTID, COMMPLAN)
VALUES ('5860', '20-JAN-87', '612', '15-JAN-87', '104', 'C');
INSERT INTO ORD (TOTAL, SHIPDATE, ORDID, ORDERDATE, CUSTID, COMMPLAN)
VALUES ('2.4', '30-MAY-86', '601', '01-MAY-86', '106', 'A');
INSERT INTO ORD (TOTAL, SHIPDATE, ORDID, ORDERDATE, CUSTID, COMMPLAN)
VALUES ('56', '20-JUN-86', '602', '05-JUN-86', '102', 'B');
INSERT INTO ORD (TOTAL, SHIPDATE, ORDID, ORDERDATE, CUSTID, COMMPLAN)
VALUES ('698', '30-JUN-86', '604', '15-JUN-86', '106', 'A');
INSERT INTO ORD (TOTAL, SHIPDATE, ORDID, ORDERDATE, CUSTID, COMMPLAN)
VALUES ('8324', '30-JUL-86', '605', '14-JUL-86', '106', 'A');
INSERT INTO ORD (TOTAL, SHIPDATE, ORDID, ORDERDATE, CUSTID, COMMPLAN)
VALUES ('3.4', '30-JUL-86', '606', '14-JUL-86', '100', 'A');
INSERT INTO ORD (TOTAL, SHIPDATE, ORDID, ORDERDATE, CUSTID, COMMPLAN)
VALUES ('97.5', '15-AUG-86', '609', '01-AUG-86', '100', 'B');
INSERT INTO ORD (TOTAL, SHIPDATE, ORDID, ORDERDATE, CUSTID, COMMPLAN)
VALUES ('5.6', '18-JUL-86', '607', '18-JUL-86', '104', 'C');
INSERT INTO ORD (TOTAL, SHIPDATE, ORDID, ORDERDATE, CUSTID, COMMPLAN)
VALUES ('35.2', '25-JUL-86', '608', '25-JUL-86', '104', 'C');
INSERT INTO ORD (TOTAL, SHIPDATE, ORDID, ORDERDATE, CUSTID, COMMPLAN)
VALUES ('224', '05-JUN-86', '603', '05-JUN-86', '102', '');
INSERT INTO ORD (TOTAL, SHIPDATE, ORDID, ORDERDATE, CUSTID, COMMPLAN)
VALUES ('4450', '12-MAR-87', '620', '12-MAR-87', '100', '');
INSERT INTO ORD (TOTAL, SHIPDATE, ORDID, ORDERDATE, CUSTID, COMMPLAN)
VALUES ('6400', '01-FEB-87', '613', '01-FEB-87', '108', '');
INSERT INTO ORD (TOTAL, SHIPDATE, ORDID, ORDERDATE, CUSTID, COMMPLAN)
VALUES ('23940', '05-FEB-87', '614', '01-FEB-87', '102', '');
INSERT INTO ORD (TOTAL, SHIPDATE, ORDID, ORDERDATE, CUSTID, COMMPLAN)
VALUES ('764', '10-FEB-87', '616', '03-FEB-87', '103', '');
INSERT INTO ORD (TOTAL, SHIPDATE, ORDID, ORDERDATE, CUSTID, COMMPLAN)
VALUES ('1260', '04-FEB-87', '619', '22-FEB-87', '104', '');
INSERT INTO ORD (TOTAL, SHIPDATE, ORDID, ORDERDATE, CUSTID, COMMPLAN)
VALUES ('46370', '03-MAR-87', '617', '05-FEB-87', '105', '');
INSERT INTO ORD (TOTAL, SHIPDATE, ORDID, ORDERDATE, CUSTID, COMMPLAN)
VALUES ('710', '06-FEB-87', '615', '01-FEB-87', '107', '');
INSERT INTO ORD (TOTAL, SHIPDATE, ORDID, ORDERDATE, CUSTID, COMMPLAN)
VALUES ('3510.5', '06-MAR-87', '618', '15-FEB-87', '102', 'A');
INSERT INTO ORD (TOTAL, SHIPDATE, ORDID, ORDERDATE, CUSTID, COMMPLAN)
VALUES ('730', '01-JAN-87', '621', '15-MAR-87', '100', 'A');
INSERT INTO ITEM (QTY, PRODID, ORDID, ITEMTOT, ITEMID, ACTUALPRICE)
VALUES ('1', '100890', '610', '58', '3', '58');
INSERT INTO ITEM ( QTY , PRODID , ORDID , ITEMTOT , ITEMID , ACTUALPRICE)
VALUES ( '1', '100861', '611', '45', '1', '45');
INSERT INTO ITEM ( QTY , PRODID , ORDID , ITEMTOT , ITEMID , ACTUALPRICE)
VALUES ( '100', '100860', '612', '3000', '1', '30');
INSERT INTO ITEM ( QTY , PRODID , ORDID , ITEMTOT , ITEMID , ACTUALPRICE)
VALUES ( '1', '200376', '601', '2.4', '1', '2.4');
INSERT INTO ITEM ( QTY , PRODID , ORDID , ITEMTOT , ITEMID , ACTUALPRICE)
VALUES ( '20', '100870', '602', '56', '1', '2.8');
INSERT INTO ITEM ( QTY , PRODID , ORDID , ITEMTOT , ITEMID , ACTUALPRICE)
VALUES ( '3', '100890', '604', '174', '1', '58');
INSERT INTO ITEM ( QTY , PRODID , ORDID , ITEMTOT , ITEMID , ACTUALPRICE)
VALUES ( '2', '100861', '604', '84', '2', '42');
INSERT INTO ITEM ( QTY , PRODID , ORDID , ITEMTOT , ITEMID , ACTUALPRICE)
VALUES ( '10', '100860', '604', '440', '3', '44');
INSERT INTO ITEM ( QTY , PRODID , ORDID , ITEMTOT , ITEMID , ACTUALPRICE)
VALUES ( '4', '100860', '603', '224', '2', '56');
INSERT INTO ITEM ( QTY , PRODID , ORDID , ITEMTOT , ITEMID , ACTUALPRICE)
VALUES ( '1', '100860', '610', '35', '1', '35');
INSERT INTO ITEM ( QTY , PRODID , ORDID , ITEMTOT , ITEMID , ACTUALPRICE)
VALUES ( '3', '100870', '610', '8.4', '2', '2.8');
INSERT INTO ITEM ( QTY , PRODID , ORDID , ITEMTOT , ITEMID , ACTUALPRICE)
VALUES ( '200', '200376', '613', '440', '4', '2.2');
INSERT INTO ITEM ( QTY , PRODID , ORDID , ITEMTOT , ITEMID , ACTUALPRICE)
VALUES ( '444', '100860', '614', '15540', '1', '35');
INSERT INTO ITEM ( QTY , PRODID , ORDID , ITEMTOT , ITEMID , ACTUALPRICE)
VALUES ( '1000', '100870', '614', '2800', '2', '2.8');
INSERT INTO ITEM ( QTY , PRODID , ORDID , ITEMTOT , ITEMID , ACTUALPRICE)
VALUES ( '20', '100861', '612', '810', '2', '40.5');
INSERT INTO ITEM ( QTY , PRODID , ORDID , ITEMTOT , ITEMID , ACTUALPRICE)
VALUES ('150', '101863', '612', '1500', '3', '10');
INSERT INTO ITEM ( QTY , PRODID , ORDID , ITEMTOT , ITEMID , ACTUALPRICE)
VALUES ('10', '100860', '620', '350', '1', '35');
INSERT INTO ITEM ( QTY , PRODID , ORDID , ITEMTOT , ITEMID , ACTUALPRICE)
VALUES ('1000', '200376', '620', '2400', '2', '2.4');
INSERT INTO ITEM ( QTY , PRODID , ORDID , ITEMTOT , ITEMID , ACTUALPRICE)
VALUES ('500', '102130', '620', '1700', '3', '3.4');
INSERT INTO ITEM ( QTY , PRODID , ORDID , ITEMTOT , ITEMID , ACTUALPRICE)
VALUES ( '100', '100871', '613', '560', '1', '5.6');
INSERT INTO ITEM ( QTY , PRODID , ORDID , ITEMTOT , ITEMID , ACTUALPRICE)
VALUES ('200', '101860', '613', '4800', '2', '24');
INSERT INTO ITEM ( QTY , PRODID , ORDID , ITEMTOT , ITEMID , ACTUALPRICE)
VALUES ('150', '200380', '613', '600', '3', '4');
INSERT INTO ITEM ( QTY , PRODID , ORDID , ITEMTOT , ITEMID , ACTUALPRICE)
VALUES ('100', '102130', '619', '340', '3', '3.4');
INSERT INTO ITEM ( QTY , PRODID , ORDID , ITEMTOT , ITEMID , ACTUALPRICE)
VALUES ('50', '100860', '617', '1750', '1', '35');
INSERT INTO ITEM ( QTY , PRODID , ORDID , ITEMTOT , ITEMID , ACTUALPRICE)
VALUES ('100', '100861', '617', '4500', '2', '45');
INSERT INTO ITEM ( QTY , PRODID , ORDID , ITEMTOT , ITEMID , ACTUALPRICE)
VALUES ('1000', '100871', '614', '5600', '3', '5.6');
INSERT INTO ITEM ( QTY , PRODID , ORDID , ITEMTOT , ITEMID , ACTUALPRICE)
VALUES ('10', '100861', '616', '450', '1', '45');
INSERT INTO ITEM ( QTY , PRODID , ORDID , ITEMTOT , ITEMID , ACTUALPRICE)
VALUES ('50', '100870', '616', '140', '2', '2.8');
INSERT INTO ITEM ( QTY , PRODID , ORDID , ITEMTOT , ITEMID , ACTUALPRICE)
VALUES ('2', '100890', '616', '116', '3', '58');
INSERT INTO ITEM ( QTY , PRODID , ORDID , ITEMTOT , ITEMID , ACTUALPRICE)
VALUES ('10', '102130', '616', '34', '4', '3.4');
INSERT INTO ITEM ( QTY , PRODID , ORDID , ITEMTOT , ITEMID , ACTUALPRICE)
VALUES ('10', '200376' , '616', '24', '5', '2.4');
INSERT INTO ITEM ( QTY , PRODID , ORDID , ITEMTOT , ITEMID , ACTUALPRICE)
VALUES ('100', '200380', '619', '400', '1', '4');
INSERT INTO ITEM ( QTY , PRODID , ORDID , ITEMTOT , ITEMID , ACTUALPRICE)
VALUES ('100', '200376', '619', '240', '2', '2.4');
INSERT INTO ITEM ( QTY , PRODID , ORDID , ITEMTOT , ITEMID , ACTUALPRICE)
VALUES ('4', '100861', '615', '180', '1', '45');
INSERT INTO ITEM ( QTY , PRODID , ORDID , ITEMTOT , ITEMID , ACTUALPRICE)
VALUES ('1', '100871', '607', '5.6', '1', '5.6');
INSERT INTO ITEM ( QTY , PRODID , ORDID , ITEMTOT , ITEMID , ACTUALPRICE)
VALUES ('100', '100870', '615', '280', '2', '2.8');
INSERT INTO ITEM ( QTY , PRODID , ORDID , ITEMTOT , ITEMID , ACTUALPRICE)
VALUES ('500', '100870', '617', '1400', '3', '2.8');
INSERT INTO ITEM ( QTY , PRODID , ORDID , ITEMTOT , ITEMID , ACTUALPRICE)
VALUES ('500', '100871', '617', '2800', '4', '5.6');
INSERT INTO ITEM ( QTY , PRODID , ORDID , ITEMTOT , ITEMID , ACTUALPRICE)
VALUES ('500', '100890', '617', '29000', '5', '58');
INSERT INTO ITEM ( QTY , PRODID , ORDID , ITEMTOT , ITEMID , ACTUALPRICE)
VALUES ('100', '101860', '617', '2400', '6', '24');
INSERT INTO ITEM ( QTY , PRODID , ORDID , ITEMTOT , ITEMID , ACTUALPRICE)
VALUES ('200', '101863', '617', '2500', '7', '12.5');
INSERT INTO ITEM ( QTY , PRODID , ORDID , ITEMTOT , ITEMID , ACTUALPRICE)
VALUES ('100', '102130', '617', '340', '8', '3.4');
INSERT INTO ITEM ( QTY , PRODID , ORDID , ITEMTOT , ITEMID , ACTUALPRICE)
VALUES ('200', '200376', '617', '480', '9', '2.4');
INSERT INTO ITEM ( QTY , PRODID , ORDID , ITEMTOT , ITEMID , ACTUALPRICE)
VALUES ('300', '200380', '617', '1200', '10', '4');
INSERT INTO ITEM ( QTY , PRODID , ORDID , ITEMTOT , ITEMID , ACTUALPRICE)
VALUES ('5', '100870', '609', '12.5', '2', '2.5');
INSERT INTO ITEM ( QTY , PRODID , ORDID , ITEMTOT , ITEMID , ACTUALPRICE)
VALUES ('1', '100890', '609', '50', '3', '50');
INSERT INTO ITEM ( QTY , PRODID , ORDID , ITEMTOT , ITEMID , ACTUALPRICE)
VALUES ('23', '100860', '618', '805', '1', '35');
INSERT INTO ITEM ( QTY , PRODID , ORDID , ITEMTOT , ITEMID , ACTUALPRICE)
VALUES ('50', '100861', '618', '2255.5', '2', '45.11');
INSERT INTO ITEM ( QTY , PRODID , ORDID , ITEMTOT , ITEMID , ACTUALPRICE)
VALUES ('10', '100870', '618', '450', '3', '45');
INSERT INTO ITEM ( QTY , PRODID , ORDID , ITEMTOT , ITEMID , ACTUALPRICE)
VALUES ('10', '100861', '621', '450', '1', '45');
INSERT INTO ITEM ( QTY , PRODID , ORDID , ITEMTOT , ITEMID , ACTUALPRICE)
VALUES ('100', '100870', '621', '280', '2', '2.8');
INSERT INTO ITEM ( QTY , PRODID , ORDID , ITEMTOT , ITEMID , ACTUALPRICE)
VALUES ('50', '100871', '615', '250', '3', '5');
INSERT INTO ITEM ( QTY , PRODID , ORDID , ITEMTOT , ITEMID , ACTUALPRICE)
VALUES ('1', '101860', '608', '24', '1', '24');
INSERT INTO ITEM ( QTY , PRODID , ORDID , ITEMTOT , ITEMID , ACTUALPRICE)
VALUES ('2', '100871', '608', '11.2', '2', '5.6');
INSERT INTO ITEM ( QTY , PRODID , ORDID , ITEMTOT , ITEMID , ACTUALPRICE)
VALUES ('1', '100861', '609', '35', '1', '35');
INSERT INTO ITEM ( QTY , PRODID , ORDID , ITEMTOT , ITEMID , ACTUALPRICE)
VALUES ('1', '102130', '606', '3.4', '1', '3.4');
INSERT INTO ITEM ( QTY , PRODID , ORDID , ITEMTOT , ITEMID , ACTUALPRICE)
VALUES ('100', '100861', '605', '4500', '1', '45');
INSERT INTO ITEM ( QTY , PRODID , ORDID , ITEMTOT , ITEMID , ACTUALPRICE)
VALUES ('500', '100870', '605', '1400', '2', '2.8');
INSERT INTO ITEM ( QTY , PRODID , ORDID , ITEMTOT , ITEMID , ACTUALPRICE)
VALUES ('5', '100890', '605', '290', '3', '58');
INSERT INTO ITEM ( QTY , PRODID , ORDID , ITEMTOT , ITEMID , ACTUALPRICE)
VALUES ('50', '101860', '605', '1200', '4', '24');
INSERT INTO ITEM ( QTY , PRODID , ORDID , ITEMTOT , ITEMID , ACTUALPRICE)
VALUES ('100', '101863', '605', '900', '5', '9');
INSERT INTO ITEM ( QTY , PRODID , ORDID , ITEMTOT , ITEMID , ACTUALPRICE)
VALUES ('10', '102130', '605', '34', '6', '3.4');
INSERT INTO ITEM ( QTY , PRODID , ORDID , ITEMTOT , ITEMID , ACTUALPRICE)
VALUES ('100', '100871', '612', '550', '4', '5.5');
INSERT INTO ITEM ( QTY , PRODID , ORDID , ITEMTOT , ITEMID , ACTUALPRICE)
VALUES ('50', '100871', '619', '280', '4', '5.6');
INSERT INTO PRICE (STDPRICE, STARTDATE, PRODID, MINPRICE, ENDDATE)
VALUES ('4.8', '01-JAN-85', '100871', '3.2', '01-DEC-85');
INSERT INTO PRICE (STDPRICE, STARTDATE, PRODID, MINPRICE, ENDDATE)
VALUES ('58', '01-JAN-85', '100890', '46.4', '');
INSERT INTO PRICE (STDPRICE, STARTDATE, PRODID, MINPRICE, ENDDATE)
VALUES ('54', '01-JUN-84', '100890', '40.5', '31-MAY-84');
INSERT INTO PRICE (STDPRICE, STARTDATE, PRODID, MINPRICE, ENDDATE)
VALUES ('35', '01-JUN-86', '100860', '28', '');
INSERT INTO PRICE (STDPRICE, STARTDATE, PRODID, MINPRICE, ENDDATE)
VALUES ('32', '01-JAN-86', '100860', '25.6', '31-MAY-86');
INSERT INTO PRICE (STDPRICE, STARTDATE, PRODID, MINPRICE, ENDDATE)
VALUES ('30', '01-JAN-85', '100860', '24', '31-DEC-85');
INSERT INTO PRICE (STDPRICE, STARTDATE, PRODID, MINPRICE, ENDDATE)
VALUES ('45', '01-JUN-86', '100861', '36', '');
INSERT INTO PRICE (STDPRICE, STARTDATE, PRODID, MINPRICE, ENDDATE)
VALUES ('42', '01-JAN-86', '100861', '33.6', '31-MAY-86');
INSERT INTO PRICE (STDPRICE, STARTDATE, PRODID, MINPRICE, ENDDATE)
VALUES ('39', '01-JAN-85', '100861', '31.2', '31-DEC-85');
INSERT INTO PRICE (STDPRICE, STARTDATE, PRODID, MINPRICE, ENDDATE)
VALUES ('2.8', '01-JAN-86', '100870', '2.4', '');
INSERT INTO PRICE (STDPRICE, STARTDATE, PRODID, MINPRICE, ENDDATE)
VALUES ('2.4', '01-JAN-85', '100870', '1.9', '01-DEC-85');
INSERT INTO PRICE (STDPRICE, STARTDATE, PRODID, MINPRICE, ENDDATE)
VALUES ('5.6', '01-JAN-86', '100871', '4.8', '');
INSERT INTO PRICE (STDPRICE, STARTDATE, PRODID, MINPRICE, ENDDATE)
VALUES ('24', '15-FEB-85', '101860', '18', '');
INSERT INTO PRICE (STDPRICE, STARTDATE, PRODID, MINPRICE, ENDDATE)
VALUES ('12.5', '15-FEB-85', '101863', '9.4', '');
INSERT INTO PRICE (STDPRICE, STARTDATE, PRODID, MINPRICE, ENDDATE)
VALUES ('3.4', '18-AUG-85', '102130', '2.8', '');
INSERT INTO PRICE (STDPRICE, STARTDATE, PRODID, MINPRICE, ENDDATE)
VALUES ('2.4', '15-NOV-86', '200376', '1.75', '');
INSERT INTO PRICE (STDPRICE, STARTDATE, PRODID, MINPRICE, ENDDATE)
VALUES ('4', '15-NOV-86', '200380', '3.2', '');
CREATE INDEX PRICE_INDEX ON PRICE(PRODID, STARTDATE);
INSERT INTO PRODUCT (PRODID, DESCRIP)
VALUES ('100860', 'ACE TENNIS RACKET I');
INSERT INTO PRODUCT (PRODID, DESCRIP)
VALUES ('100861', 'ACE TENNIS RACKET II');
INSERT INTO PRODUCT (PRODID, DESCRIP)
VALUES ('100870', 'ACE TENNIS BALLS-3 PACK');
INSERT INTO PRODUCT (PRODID, DESCRIP)
VALUES ('100871', 'ACE TENNIS BALLS-6 PACK');
INSERT INTO PRODUCT (PRODID, DESCRIP)
VALUES ('100890', 'ACE TENNIS NET');
INSERT INTO PRODUCT (PRODID, DESCRIP)
VALUES ('101860', 'SP TENNIS RACKET');
INSERT INTO PRODUCT (PRODID, DESCRIP)
VALUES ('101863', 'SP JUNIOR RACKET');
INSERT INTO PRODUCT (PRODID, DESCRIP)
VALUES ('102130', 'RH: "GUIDE TO TENNIS"');
INSERT INTO PRODUCT (PRODID, DESCRIP)
VALUES ('200376', 'SB ENERGY BAR-6 PACK');
INSERT INTO PRODUCT (PRODID, DESCRIP)
VALUES ('200380', 'SB VITA SNACK-6 PACK');
CREATE SEQUENCE ORDID
INCREMENT BY 1
START WITH 622
NOCACHE;
CREATE SEQUENCE PRODID
INCREMENT BY 1
START WITH 200381
NOCACHE;
CREATE SEQUENCE CUSTID
INCREMENT BY 1
START WITH 109
NOCACHE;
CREATE VIEW SALES AS
SELECT REPID, ORD.CUSTID, CUSTOMER.NAME CUSTNAME, PRODUCT.PRODID,
DESCRIP PRODNAME, SUM(ITEMTOT) AMOUNT
FROM ORD, ITEM, CUSTOMER, PRODUCT
WHERE ORD.ORDID = ITEM.ORDID
AND ORD.CUSTID = CUSTOMER.CUSTID
AND ITEM.PRODID = PRODUCT.PRODID
GROUP BY REPID, ORD.CUSTID, NAME, PRODUCT.PRODID, DESCRIP;Cheers
Sarma. -
HR SCHEMA FILES PRESENT BUT TABLES NOT SHOWN IN SQL DEVELOPER - PLS HELP
Dear DBA's,
I am studying towards the OCA and working through the SQL Fundamentals I Exam guide text book by John Watson and Roopesh Ramklass. I have a problem with accessing the HR Schema tables in SQL Developer. I can get connected to the HR schema but no information is available when i click on the + sign next to the "Tables (filtered)" link in SQL Developer under Human Resources - BTW (I've downloaded Oracle 11G)
Please help, I've tried the following already;
1. Downloaded the HR Schema sample scripts again
2. Resetting the Sample schema with this syntax in SQL PLUS - @?/demo/schema/mksample systempwd syspwd hrpwd oepwd pmpwd ixpwd shpwd bipwd default_tablespace temp_tablespace log_file_directory/
3. I have no Master script file so I cant recreate the sample scripts
I've been reading forums and trying to Google but I am too new at this and just can't get the HR schema to display all the information in SQL Developer. Please help as I really badly need to practice the exercises in the text book.
Any help to resolve this will be greatly appreciated.
Ali
Edited by: 942730 on Jun 26, 2012 1:15 AM942730 wrote:
Dear DBA's,
I am studying towards the OCA and working through the SQL Fundamentals I Exam guide text book by John Watson and Roopesh Ramklass. I have a problem with accessing the HR Schema tables in SQL Developer. I can get connected to the HR schema but no information is available when i click on the + sign next to the "Tables (filtered)" link in SQL Developer under Human Resources - BTW (I've downloaded Oracle 11G)
Please help, I've tried the following already;
1. Downloaded the HR Schema sample scripts again
2. Resetting the Sample schema with this syntax in SQL PLUS - @?/demo/schema/mksample systempwd syspwd hrpwd oepwd pmpwd ixpwd shpwd bipwd default_tablespace temp_tablespace log_file_directory/
3. I have no Master script file so I cant recreate the sample scripts
I've been reading forums and trying to Google but I am too new at this and just can't get the HR schema to display all the information in SQL Developer. Please help as I really badly need to practice the exercises in the text book.
Any help to resolve this will be greatly appreciated.
Alisqlplus
/ as sysdba
alter user HR identified by hr account unlock;
connect hr/hr
select table_name from user_tables;
exit -
Hallo,
I�ve got an JTable with some data in an Applet. But nothing is shown. Only after i resize the Applet, the data will be shown.
I use JDK1.4 and appletviewer.
Who can help me?Post your code.
-
HGrid hierarchy can not be shown correctly
Hi,
When I implement HGrid in R12, I followed HGrid example. But my result hierarchy is not show correctly.
In my expect hierarchy, it should be 01--02--04 02--03. But in fact, my current result hierrachy is all node seems as each root node shown. A dummy root node is show on top level. Could some one can help to research my case?
I use one custom table, there is item code and parent code in the custom table to be VL. In my VL, source attribute is item code, destination attribute is parent item code, the SQL is generate automatically.
Following is the expect result:
01
--02
----04
--03
Current result is
Root node
--01
----02
------04
----03
--02
----04
--03
--04
Best Regards,
Eileen
Edited by: Eileen on Sep 20, 2009 2:38 AM
Edited by: Eileen on Sep 20, 2009 2:39 AMCould some one help to look into this?
Many thanks,
Eileen -
Record not shown in table control
Hi experts,
I am working on the module pool program with a screen 0100. There is a table control called TABL_MATR in screen 0100.
There is no error while compiling the program. But no record shown when a record added into the table control.
I do not want to use the headerline in the program, because I intented to do it in OO way.
Record shown if I do like this:
DATA: ITAB_TRAY TYPE STANDARD TABLE OF LS_TRAY WITH HEADER LINE.
In PBO
loop at itab_tray " record show in the table control
whereas record not shown if do like this:
DATA: ITAB_TRAY TYPE STANDARD TABLE OF LS_TRAY.
In PBO
loop at itab_tray into wa_tray " no record show in the table control
Can someone guide me how to do it in the right way?
Please help.
Thanks in advance.Hi all,
I have added the below images.
1) http://i566.photobucket.com/albums/ss106/wkw510/pic6.jpg
2) http://i566.photobucket.com/albums/ss106/wkw510/pic7.jpg
3) http://i566.photobucket.com/albums/ss106/wkw510/pic8.jpg
I have also followed what Devendra's suggested, however the same error message I get:
"ITAB_TRAY" is not a structure or internal table with header line.
As such I have changed the statement
module fill_table_control output.
MOVE-CORRESPONDING wa_tray TO itab_tray.
endmodule.
to
module fill_table_control output.
APPEND wa_tray TO itab_tray.
endmodule.
After changed, compiled no error.
But, when I started to use the program I got another error which closed the whole SAP screen.
Therefore I tried to change the TABLE CONTROL setting to
4) http://i566.photobucket.com/albums/ss106/wkw510/pic10.jpg
Now, everything is okay but I only get the latest record shows in the TABLE CONTROL. The record I inserted display more than one time, and filled all the table control.
5) http://i566.photobucket.com/albums/ss106/wkw510/pic11.jpg
I am wondering should we include
MOVE-CORRESPONDING wa_tray TO itab_tray.
or
APPEND wa_tray TO itab_tray.
According from Devendra, the PBO should only has this code
loop at itab_tray into wa_tray
with control tabl_matr
cursor tabl_matr-current_line.
* module fill_table_control. "shoule we exclude this?
endloop.
If I exclude the above code, the table control only show one record, regardless how many records are inserted.
Something is not right here, but just cant find it out.
Please help. -
Material not shown in the MCHB table
Dear MM Gurus,
I have created a batch managed material and posted stock. When I checked the stock in MMBE it shows the available stock for that material. My problem is, the material is not shown in MCHB table, but the material is available in the tables MCHA, MARA and MARD.
Any idea on why this has happened and How to correct the issue.do you see a batch number in MMBE?
do you see a batch number in the movement (display document in MIGO, or via MB51)?
MCHA has no stock information. MCHA can be created manually with MSC1N transaction, must not necessarily mean that it is automatically created from a goods receipt. -
Table Header not shown in Purchase Order Smartform
I have downloaded an installed an SAP SmartForm for Purchase Order (/SMB40/MMPO_DE). Unfortunatelly the document with this form cutting the right side of the document by printing. The width of the tables is 19,5 cm, it should be 19,00 or less. Anyhow, I have started to reduce the width of all windows and included tables and of course the table cells. This works fine with all tables, also with a dynamic content, but if I reduce the static header table t_header(window winheader, cell hd_netwr) for 0,5 cm this doesn't appear on printform. I have tried then to restore everything like it was - no effect.
What could it be ?
Kind RegardsI have found the solution and have localized the problem or vise versa.
The table had the hight 0,99 LN and the window hight was 0,5 cm. It seems to me that this 2 parameters had a size-conflict. When I have changed the line hight to 0,5 cm it starts work.
Why it was done on this matter and why the error was not shown during compiling the form and how it did work before I have touched the window - this questions could be addressed to SAP.
Kind Regards
Alexey Voynikov -
Measure Values are not shown in the pivot tables
Measures without aggregation (in rpd) are not shown in pivot table.
Im trying to add multiple columns in the fact table as measures,one which is summable had has the SUM function and three which are not summable.
The initial report will be as follows and I have been able to get the data displayed.
Year | Month| Company Name| SUM(C1)| C2|C3
However if I pivot the table as follows data in column C2 and C3 are not Displayed.
Columns
Year
Month
Company
Rows
Measure Lablel
Measures
SUM(C1)
C2
C3
Should we have an aggregation rule applued in C2 and C3 ?Yes, all the column entries must have agg rule. You can specify one such as 'first' in the pivot table.
Maybe you are looking for
-
I am trying to make a group or rollovers that display larger versions on images when you rollover their thumbnails. The problem is since everythign is in layers the bottom layers rollovers show up undernieth the other thumbnails. My whole website des
-
Bank key vs Electronic Bank Statement
Hello, What is recommended by SAP is to have bank key for house bank the same as SWIFT code. I have case now that bank from Turkey has TGBATRIS Swift code and the same i use as bank key. But when they have sent bank statement and i import it using FF
-
Premiere cc not displaying video new update
anyone else experiencing that some video isn't showing up in your play back window after this recent update?
-
Hi I did not find this information inside the Encore manual or FAQs here... So it's just a question ir order to know if I can work safety this way.... Suppose I have a 20 minutes of video and need to burn it in a DVD. When exporting to the MPEG-2 (fo
-
Creating Views with DI APIs DoQuery-Method in SQL 2005
Hi @All, I've had the following (solved) problem: The DB installer of one of our AddOns is also creating a bunsh of views for our UDTs. The installer always executes the following two statements for each view: IF OBJECT_ID ('[dbo].[@NSP_EXAMPLE_VIEW]