Tables created with weird names
I ran some insert scripts on a 10g oracle db and found that some tables have been created with wierd names like 'BIN$+2KAmAoPTKO5tzd9l1bmBQ==$0' . I could not even rename/drop these tables. I get the error message
"ORA-27235: Message 27235 not found; product=RDBMS; facility=ORA
if someone has encountered this prob before please help..
They're already deleted tables....
Oracle 10g has a recycle bin, where deleted tables are not actually deleted.
You have to run a command ( think it's "purge recyclebin" ) to delete them permanantly.
regards,
Owen
Similar Messages
-
Tables created with PHP 'while' function
Hi All,
I am new at this, so please be gentle.
I have written a page that uses the PHP "while" function, to
get data from a mysql database, and display it in a page.
I have enclosed the function within a table so that the
results are contained together, but when the next loop of data
comes, the next table is placed on top of the previous. If I just
return one item and don't group it in a table, the data is
displayed side by side (which is what I want).
I am after displaying images in two columns down the screen,
with there name under, both returned from a database.
Heres my code, which returns just a single column.
<?php
{while ($row = mysql_fetch_array($result, MYSQL_NUM))
{ ?> <table width="0"
align="center"><tr><td height="130" valign="top">
<div align="center"><a href="javascript:"
onClick="MM_openBrWindow('descriptions.php','','width=650,height=550')"><img
src="<?php echo $row[0]; ?>" alt="" name="" width="120"
height="120" border="0"></a></div>
<div align="center"><?php echo $row[1];
?></tr></table>
Any ideas???
DanMake sure that your database is up.
Try to connect by user internal password is oracle.
The internal user is synoym for sys user.
You have to create a seperate tablespace and then try to use that tablespace. Because default tablespace is system in which you might not have the permession to create a table.
Hope so this will work.
Nikhil
Vadodara -
Datasource is not getting created with jndi name though ANT
Please help me to come out of this problem. JDBC DATA SOURCE is getting created without jndi name when iam executing below ANT Script.
<?xml version="1.0" ?>
<project name="deploy" default="createDataSource" basedir=".">
<property name="weblogic.jar" location="C:/Oracle/Middleware/wlserver_10.3/server/lib/weblogic.jar"/>
<property name="wls.username" value="weblogic" />
<property name="wls.password" value="weblogic" />
<property name="wls.url" value="t3://000.00.000.000:7001" />
<property name="wls.targetServer" value="AdminServer" />
<property name="wls.targetServer" value="soa_server1" />
<property name="wls.domainName" value="SOA" />
<property name="database.url" value="jdbc:oracle:thin:@000.00.000.000:7001:DEV" />
<property name="database.driver" value="oracle.jdbc.xa.client.OracleXADataSource" />
<property name="database.user" value="user" />
<property name="database.password" value="password" />
<taskdef name="wldeploy" classname="weblogic.ant.taskdefs.management.WLDeploy" classpath="${weblogic.jar}"/>
<taskdef name="wlconfig" classname="weblogic.ant.taskdefs.management.WLConfig" classpath="${weblogic.jar}"/>
<target name="createDataSource">
<wlconfig username="weblogic" password="webfsaD1" url="t3://000.00.000.000:7001:7001">
<query domain="SOA" type="Server" name="AdminServer" property="x" />
<create type="JDBCConnectionPool" name="TestScriptDS" >
<set attribute="CapacityIncrement" value="1"/>
<set attribute="DriverName" value="oracle.jdbc.xa.client.OracleXADataSource"/>
<set attribute="InitialCapacity" value="1"/>
<set attribute="MaxCapacity" value="10"/>
<set attribute="Password" value="Password"/>
<set attribute="Properties" value="user=user"/>
<set attribute="RefreshMinutes" value="0"/>
<set attribute="ShrinkPeriodMinutes" value="15"/>
<set attribute="ShrinkingEnabled" value="true"/>
<set attribute="TestConnectionsOnRelease" value="false"/>
<set attribute="TestConnectionsOnReserve" value="false"/>
<set attribute="TestTableName" value="SQL SELECT 1 FROM DUAL"/>
<set attribute="URL" value="${database.url}"/>
<set attribute="Targets" value="${x}" />
</create>
<create type="JDBCTxDataSource" name="TestScriptDS">
<set attribute="JNDINames" value="jdbc/testScriptDS"/>
<set attribute="PoolName" value="TestScriptDS"/>
<set attribute="Targets" value="${x}"/>
</create>
</wlconfig>
</target>
</project>
Thanks in advance,Thank u very much for ur quick reply.
C:\ANT_DataSource>ant -v
Apache Ant(TM) version 1.8.2 compiled on December 20 2010
Trying the default build file: build.xml
Buildfile: C:\ANT_DataSource\build.xml
Detected Java version: 1.6 in: C:\Oracle\Middleware\jdk160_24\jre
Detected OS: Windows 7
parsing buildfile C:\ANT_DataSource\build.xml with URI = file:/C:/ANT_DataSource/build.xml
Project base dir set to: C:\ANT_DataSource
parsing buildfile jar:file:/D:/ANT/apache-ant-1.8.2/lib/ant.jar!/org/apache/tools/ant/antlib.xml with URI = jar:file:/D:/ANT/apache-ant-1.8.2/lib/ant.jar!/org/a
pache/tools/ant/antlib.xml from a zip file
Build sequence for target(s) `makeDataSource' is [makeDataSource]
Complete build sequence is [makeDataSource, ]
makeDataSource:
Property "AdminServer" has not been set
Property "SoaServer" has not been set
Property "AdminServer" has not been set
Property "SoaServer" has not been set
[wlconfig] QUERY -pattern SOA:*,Name=AdminServer,Type=Server
[wlconfig] Set size is 1
[wlconfig] QUERY -pattern SOA:*,Name=soa_server1,Type=Server
[wlconfig] Set size is 1
[wlconfig] Created MBEAN: SOA:Name=SampleDS,Type=JDBCConnectionPool
[wlconfig] SET -mbean SOA:Name=SampleDS,Type=JDBCConnectionPool -property Capa
cityIncrement 1
[wlconfig] Ok
[wlconfig] SET -mbean SOA:Name=SampleDS,Type=JDBCConnectionPool -property Driv
erName oracle.jdbc.xa.client.OracleXADataSource
[wlconfig] Ok
[wlconfig] SET -mbean SOA:Name=SampleDS,Type=JDBCConnectionPool -property Init
ialCapacity 0
[wlconfig] Ok
[wlconfig] SET -mbean SOA:Name=SampleDS,Type=JDBCConnectionPool -property MaxC
apacity 50
[wlconfig] Ok
[wlconfig] SET -mbean SOA:Name=SampleDS,Type=JDBCConnectionPool -property Stat
ementTimeout 600
[wlconfig] Ok
[wlconfig] SET -mbean SOA:Name=SampleDS,Type=JDBCConnectionPool -property Pass
word USER
[wlconfig] Ok
[wlconfig] SET -mbean SOA:Name=SampleDS,Type=JDBCConnectionPool -property Prop
erties user=PASSWORD
[wlconfig] Ok
[wlconfig] SET -mbean SOA:Name=SampleDS,Type=JDBCConnectionPool -property Refr
eshMinutes 0
[wlconfig] Ok
[wlconfig] SET -mbean SOA:Name=SampleDS,Type=JDBCConnectionPool -property Shri
nkPeriodMinutes 15
[wlconfig] Ok
[wlconfig] SET -mbean SOA:Name=SampleDS,Type=JDBCConnectionPool -property Shri
nkingEnabled true
[wlconfig] Ok
[wlconfig] SET -mbean SOA:Name=SampleDS,Type=JDBCConnectionPool -property Test
ConnectionsOnRelease false
[wlconfig] Ok
[wlconfig] SET -mbean SOA:Name=SampleDS,Type=JDBCConnectionPool -property Test
ConnectionsOnReserve false
[wlconfig] Ok
[wlconfig] SET -mbean SOA:Name=SampleDS,Type=JDBCConnectionPool -property Test
ConnectionsOnCreate true
[wlconfig] Ok
[wlconfig] SET -mbean SOA:Name=SampleDS,Type=JDBCConnectionPool -property Test
TableName SQL SELECT 1 FROM DUAL
[wlconfig] Ok
[wlconfig] SET -mbean SOA:Name=SampleDS,Type=JDBCConnectionPool -property URL
jdbc:oracle:thin:@100.10.000.100:1601:DEVDB
[wlconfig] Ok
[wlconfig] SET -mbean SOA:Name=SampleDS,Type=JDBCConnectionPool -property Targ
ets SOA:Name=AdminServer,Type=Server;SOA:Name=soa_server1,Type=Server
[wlconfig] Ok
[wlconfig] Created MBEAN: SOA:Name=SampleDS,Type=JDBCTxDataSource
[wlconfig] SET -mbean SOA:Name=SampleDS,Type=JDBCTxDataSource -property JNDINa
me jdbc/SampleDS
[wlconfig] Ok
[wlconfig] SET -mbean SOA:Name=SampleDS,Type=JDBCTxDataSource -property PoolNa
me SampleDS
[wlconfig] Ok
[wlconfig] SET -mbean SOA:Name=SampleDS,Type=JDBCTxDataSource -property Target
s SOA:Name=AdminServer,Type=Server;SOA:Name=soa_server1,Type=Server
[wlconfig] Ok
[wlconfig] QUERY -pattern SOA:*,Name=AdminServer,Type=WebServer
[wlconfig] Set size is 1
[wlconfig] SET -mbean SOA:Name=AdminServer,Type=WebServer,Server=AdminServer -p
roperty LogFileName logs/access.log
[wlconfig] Ok
BUILD SUCCESSFUL
Total time: 41 seconds
Edited by: soa.dev on 12-Sep-2012 02:09 -
How to fix tables created with wrong initial extents
1.We have many tables which are created with very large intial extents. Is there a way to reduce or resize initial extent?
2.When I export the *.dmp is about 200MG, but the tablespace is more than a gig full. Why is that?
3.I have a table with about 300,000 rows and calculated the table size to be around 86M. Should I create the initial extent here to be around 100M?
4.I tried to do alter table ExampleTable deallocate unused, but did not help why is that?
OBJECT_NAME = EMP
TOTAL_BLOCKS = 16296
TOTAL_BYTES = 133496832
UNUSED_BLOCKS = 4915
UNUSED BYTES = 40263680
LAST_USED_EXTENT_FILE_ID = 9
LAST_USED_EXTENT_BLOCK_ID = 23250
LAST_USED_BLOCK = 11381
PL/SQL procedure successfully completed.
SQL> analyze table ibs_spec_value compute statistics;
Table analyzed.
SQL> select empty_blocks, empty_blocks*8192 unused_bytes
2 from dba_tables
3 where table_name='IBS_SPEC_VALUE' and owner='SPEC';
EMPTY_BLOCKS UNUSED_BYTES
4915 40263680
SQL> ALTER TABLE SPEC.IBS_SPEC_VALUE DEALLOCATE UNUSED;
Table altered.
SQL> select empty_blocks, empty_blocks*8192 unused_bytes
2 from dba_tables
3 where table_name='IBS_SPEC_VALUE' and owner='SPEC';
EMPTY_BLOCKS UNUSED_BYTES
4915 40263680
Thank you,
Avanti.1.We have many tables which are created with very large intial extents. Is there a way to reduce or resize initial extent?
export/import and CTAS.
2.When I export the *.dmp is about 200MG, but the tablespace is more than a gig full. Why is that?
Probably it is due of inefficient on managing the objects, which are heavily taken by tables/indexes. Tables/indexes were created oversize than estimation of data size.
3.I have a table with about 300,000 rows and calculated the table size to be around 86M. Should I create the initial extent here to be around 100M?
Yes, it is possible. Usually split into 2-5 extents is better.
4.I tried to do alter table ExampleTable deallocate unused, but did not help why is that?
OBJECT_NAME = EMP
TOTAL_BLOCKS = 16296
TOTAL_BYTES = 133496832
UNUSED_BLOCKS = 4915
UNUSED BYTES = 40263680
LAST_USED_EXTENT_FILE_ID = 9
LAST_USED_EXTENT_BLOCK_ID = 23250
LAST_USED_BLOCK = 11381
PL/SQL procedure successfully completed.
SQL> analyze table ibs_spec_value compute statistics;
Table analyzed.
SQL> select empty_blocks, empty_blocks*8192 unused_bytes
2 from dba_tables
3 where table_name='IBS_SPEC_VALUE' and owner='SPEC';
EMPTY_BLOCKS UNUSED_BYTES
4915 40263680
SQL> ALTER TABLE SPEC.IBS_SPEC_VALUE DEALLOCATE UNUSED;
Table altered.
SQL> select empty_blocks, empty_blocks*8192 unused_bytes
2 from dba_tables
3 where table_name='IBS_SPEC_VALUE' and owner='SPEC';
EMPTY_BLOCKS UNUSED_BYTES
4915 40263680
The next paragraph is guoted from Oracle documentation :
"Use the deallocate_unused_clause to explicitly deallocate unused space at the end of the table, partition or subpartition, overflow data segment, LOB data segment, or LOB index and makes the space available for other segments in the tablespace. You can free only unused space above the high water mark (that is, the point beyond which database blocks have not yet been formatted to receive data)".
Most probably on your case there is no unused block over the last used block on this table. So the deallocate function doesn't give any effect. As you described, the last used block is 11381 which is get from TOTAL_BLOCKS minus UNUSED_BLOCKS. -
Oracle deleting rows from tables starting with the name PQ
hai friends
we are given access rights to delete only tables starting with PQ. HAVING PQ_NUM as primary key for all the PQ tables.
totally we have 6 tables. PQ_01,PQ_02, PQ_03,PQ_04,PQ_05,PQ_06.
ALL This tables will have one primary key. for example pq_01 willl have pq01_num as primarykey and pq_02 table will have pq02_num as primary
key.
pq01_num value will exist in all the primary key of pq tables.
i want query to delete rows from the pq tables based on the input value i give.
for example if i give primarykey value 122 then that value in pq tables should be deleted.
One more problem is there. pq_06 table does not have pq02_num column. here the column differs. it is pq06_num_req.
so give your idea of deleting the rows from pq tables
waiting
SI dont have access to databse,this is untested
declare
v_cmd varchar2(2000);
columnname varchar2(30);
input_value number:=??;
tabowner varchar2(30):=???
begin
--step 1 identify table
FOR sub IN (SELECT table_name table_to_delete
FROM all_tables
WHERE table_name LIKE 'PQ%'
and owner=tabowner
) LOOP
----step 2 identify column
v_cmd :='select t.column_name from all_constraints S,All_Ind_Columns T where
S.OWNER=T.TABLE_OWNER
AND S.TABLE_NAME=T.TABLE_NAME
AND S.INDEX_NAME=T.INDEX_NAME
and s.owner=tabowner
AND S.TABLE_NAME='||table_to_delete||'
and s.constraint_type='''P'';
execute immediate v_cmd into columnname;
--step 3 delete records
v_cmd := 'delete from '||tabowner||'.' ||
sub.table_to_delete || '
where '||columnname||'='||input_value;
execute immediate v_cmd;
commit;
END LOOP;
end;Edited by: user5495111 on Aug 11, 2009 6:35 AM -
Export tables starting with same name format
Hi All,
I need to export set of table below
it_approvals
it_attachments
it_dev_schedule
it_dev_schedule_log
it_email
it_email_group
it_filetype
it_group
it_group_system
it_manage_system
it_menu
it_page
it_page_action
it_parameter
it_personal
it_release_update
it_releases
it_request_forms
it_request_update
it_role
it_role_filetypes
etc....
When i perform the export are there any option to take export all tables starting with it,
below is the command i'm willing to use, what are the parameters should i use to do the above task
exp system/oracle tables=ABC.it_it_page,ABC_it_email file=ABC.dmp log=ABC.log owner=ABCTry to use datapump export and import.
Please refer this thread
export issue -
How to stream one table twice (with different names) in another schema ?
hello guys,
i have to replicate one table (TAB_1) from one schema (SCH_1) on source database (DB_1) twice to schema (SCH_2) on target database (DB_2) with two different names (TAB_1 and TAB_1_SHORT). TAB_1_SHORT on target db should be a subset (eg. WHERE STATUS = 1) of TAB_1 !
how to do ? can anyone help me ?
i tried to realize that this way:
1) creating 1 capture process with 1 table rule on source db (without any subset rules to capture all changes) for table TAB_1
2) creating a propagation process without any rules
3) creating 1 apply process with a table rule for table TAB_1 without any subset_rule but with schema transformation from SCH_1 to SCH_2 (DBMS_STREAMS_ADM.RENAME_SCHEMA) => this works correct !
4) creating a subset_rule (WHERE STATUS = 1), a schema transformation from SCH_1 to SCH_2 (DBMS_STREAMS_ADM.RENAME_SCHEMA) and a tablename transformation from TAB_1 to TAB_1_SHORT (DBMS_STREAMS_ADM.RENAME_SCHEMA) for table TAB_1_SHORT => doesn`t work, no errors posted in dba_apply_error !
in another try, i tried to transform the table- and the schemaname in the capture process, with the effect, that my first table TAB_1 wouldn`t be streamed again.
i`m not sure, what is wrong. i think it must be possible to stream a table to two different targettables in the same schema on another db, isn`t it ?
hopefully greetings
FloHello
Adding a normal table rule and also a subset rule would not work since the rule would be evaluated only once in the positive rule set. If the normal rule is evaluated first then the subset rule and rest of the rules would not be evaluated at all hence this would not work.
This can be done using either of the following methods:
Method 1:
1. Use the declarative transformation on the capture/apply and rename the schema from SCH_1 to SCH_2.
2. Now, on the apply site, set a DML Handler for SCH_2.TAB_1
3. In DML Handler perform the following:
a. get the column value for STATUS
b. check if the value for STATUS=1, if yes then modify the object name to TAB_1_SHORT and execute the LCR.
c. else do not modify the object name (leave it as it is, TAB_1) and execute the LCR.
Method 2:
1. Add a DML Handler for SCH_1.TAB_1
2. In the DML Handler perform:
a. use set_object_owner method of LCR$_ROW_RECORD to rename the owner to SCH_2
b. get the column value for STATUS
c. check if the value for STATUS=1, if yes then modify the object name to TAB_1_SHORT and execute the LCR.
d. else do not modify the object name (leave it as it is, TAB_1) and execute the LCR.
Please let me know if you need sample code.
Thanks,
Rijesh -
How could i updated a table created with 5 tables.
Hi everyone,
This is my problem. I have five "tables" and each one contains one row and 7 columns. In the other hand, I have one table(Ireland1) that it retrieves the values of these 5 "tables" through of " insert into" statement.
How would be I able to update of "Ireland1" data, when one of this "tables" (Remenber, I have 5 tables) has changed?
I have been searching information about this but all my search has been fruitless.
Thanks in advance,
From IrelandHi Eric,
Thank you for your quick reply and solution. I have run your statement and appear this error:
Msg 156, Level 15, State 1, Procedure Non_current_assets_Historic_View, Line 426
Incorrect syntax near the keyword 'SELECT'.
I dont know why this error appear
I leave my Sript practically full
USE Aerospace
GO
--TABLE NON-CURRENT ASSETS
IF OBJECT_ID('Non_current_assets_Historic') IS NOT NULL
DROP TABLE Non_current_assets_Historic
GO
CREATE TABLE Non_current_assets_Historic
[IdCuenta] [float] NOT NULL,
[NameCuenta] [nvarchar](255) NULL,
Year_2006 decimal (14,2) NULL,
Year_2007 decimal (14,2) NULL,
Year_2008 decimal (14,2) NULL,
Year_2009 decimal (14,2) NULL,
Year_2010 decimal (14,2) NULL,
Year_2011 decimal (14,2) NULL,
Year_2012 decimal (14,2) NULL,
Year_2013 decimal (14,2) NULL,
Year_2014 decimal (14,2) NULL,
Dif_2007_2006 decimal (14,2) NULL,
Dif_2008_2007 decimal (14,2) NULL,
Dif_2009_2008 decimal (14,2) NULL,
Dif_2010_2009 decimal (14,2) NULL,
Dif_2011_2010 decimal (14,2) NULL,
Dif_2012_2011 decimal (14,2) NULL,
Dif_2013_2012 decimal (14,2) NULL,
Dif_2014_2013 decimal (14,2) NULL,
AHP_2007_2006 decimal (14,2) NULL,
AHP_2008_2007 decimal (14,2) NULL,
AHP_2009_2008 decimal (14,2) NULL,
AHP_2010_2009 decimal (14,2) NULL,
AHP_2011_2010 decimal (14,2) NULL,
AHP_2012_2011 decimal (14,2) NULL,
AHP_2013_2012 decimal (14,2) NULL,
AHP_2014_2013 decimal (14,2) NULL,
GO
ALTER TABLE Non_current_assets_Historic
ADD CONSTRAINT PK_Non_current_assets_Historic PRIMARY KEY (IdCuenta)
GO
UPDATE Non_current_assets_Historic SET Year_2006=0 WHERE Year_2006 IS NULL
UPDATE Non_current_assets_Historic SET Year_2007=0 WHERE Year_2007 IS NULL
UPDATE Non_current_assets_Historic SET Year_2008=0 WHERE Year_2008 IS NULL
UPDATE Non_current_assets_Historic SET Year_2009=0 WHERE Year_2009 IS NULL
UPDATE Non_current_assets_Historic SET Year_2010=0 WHERE Year_2010 IS NULL
UPDATE Non_current_assets_Historic SET Year_2011=0 WHERE Year_2011 IS NULL
UPDATE Non_current_assets_Historic SET Year_2012=0 WHERE Year_2012 IS NULL
UPDATE Non_current_assets_Historic SET Year_2013=0 WHERE Year_2013 IS NULL
UPDATE Non_current_assets_Historic SET Year_2014=0 WHERE Year_2014 IS NULL
GO
INSERT INTO Non_current_assets_Historic
SELECT *
FROM Property_plant_equipment_Historic
INSERT INTO Non_current_assets_Historic
SELECT *
FROM Intangible_assets_Historic
INSERT INTO Non_current_assets_Historic
SELECT *
FROM Available_financial_assets_Historic
INSERT INTO Non_current_assets_Historic
SELECT *
FROM Deferred_tax_assets_Historic
INSERT INTO Non_current_assets_Historic
SELECT *
FROM Deposits_restricted_12M_Historic
GO
--SUMATORIO YEAR 2006
Declare @Cantidad20061 decimal (14,2)
Declare @Cantidad20062 decimal (14,2)
Declare @Cantidad20063 decimal (14,2)
Declare @Cantidad20064 decimal (14,2)
Declare @Cantidad20065 decimal (14,2)
Select @Cantidad20061 = Year_2006 from Non_current_assets_Historic where IdCuenta ='7'
Select @Cantidad20062 = Year_2006 from Non_current_assets_Historic where IdCuenta ='8'
Select @Cantidad20063 = Year_2006 from Non_current_assets_Historic where IdCuenta ='9'
Select @Cantidad20064 = Year_2006 from Non_current_assets_Historic where IdCuenta ='10'
Select @Cantidad20065 = Year_2006 from Non_current_assets_Historic where IdCuenta ='11'
--SUMATORIO YEAR 2007
Declare @Cantidad20071 decimal (14,2)
Declare @Cantidad20072 decimal (14,2)
Declare @Cantidad20073 decimal (14,2)
Declare @Cantidad20074 decimal (14,2)
Declare @Cantidad20075 decimal (14,2)
Select @Cantidad20071 = Year_2007 from Non_current_assets_Historic where IdCuenta ='7'
Select @Cantidad20072 = Year_2007 from Non_current_assets_Historic where IdCuenta ='8'
Select @Cantidad20073 = Year_2007 from Non_current_assets_Historic where IdCuenta ='9'
Select @Cantidad20074 = Year_2007 from Non_current_assets_Historic where IdCuenta ='10'
Select @Cantidad20075 = Year_2007 from Non_current_assets_Historic where IdCuenta ='11'
--SUMATORIO YEAR 2008
Declare @Cantidad20081 decimal (14,2)
Declare @Cantidad20082 decimal (14,2)
Declare @Cantidad20083 decimal (14,2)
Declare @Cantidad20084 decimal (14,2)
Declare @Cantidad20085 decimal (14,2)
Select @Cantidad20081 = Year_2008 from Non_current_assets_Historic where IdCuenta ='7'
Select @Cantidad20082 = Year_2008 from Non_current_assets_Historic where IdCuenta ='8'
Select @Cantidad20083 = Year_2008 from Non_current_assets_Historic where IdCuenta ='9'
Select @Cantidad20084 = Year_2008 from Non_current_assets_Historic where IdCuenta ='10'
Select @Cantidad20085 = Year_2008 from Non_current_assets_Historic where IdCuenta ='11'
--SUMATORIO YEAR 2009
Declare @Cantidad20091 decimal (14,2)
Declare @Cantidad20092 decimal (14,2)
Declare @Cantidad20093 decimal (14,2)
Declare @Cantidad20094 decimal (14,2)
Declare @Cantidad20095 decimal (14,2)
Select @Cantidad20091 = Year_2009 from Non_current_assets_Historic where IdCuenta ='7'
Select @Cantidad20092 = Year_2009 from Non_current_assets_Historic where IdCuenta ='8'
Select @Cantidad20093 = Year_2009 from Non_current_assets_Historic where IdCuenta ='9'
Select @Cantidad20094 = Year_2009 from Non_current_assets_Historic where IdCuenta ='10'
Select @Cantidad20095 = Year_2009 from Non_current_assets_Historic where IdCuenta ='11'
--SUMATORIO YEAR 2010
Declare @Cantidad200101 decimal (14,2)
Declare @Cantidad200102 decimal (14,2)
Declare @Cantidad200103 decimal (14,2)
Declare @Cantidad200104 decimal (14,2)
Declare @Cantidad200105 decimal (14,2)
Select @Cantidad200101 = Year_2010 from Non_current_assets_Historic where IdCuenta ='7'
Select @Cantidad200102 = Year_2010 from Non_current_assets_Historic where IdCuenta ='8'
Select @Cantidad200103 = Year_2010 from Non_current_assets_Historic where IdCuenta ='9'
Select @Cantidad200104 = Year_2010 from Non_current_assets_Historic where IdCuenta ='10'
Select @Cantidad200105 = Year_2010 from Non_current_assets_Historic where IdCuenta ='11'
--SUMATORIO YEAR 2011
Declare @Cantidad200111 decimal (14,2)
Declare @Cantidad200112 decimal (14,2)
Declare @Cantidad200113 decimal (14,2)
Declare @Cantidad200114 decimal (14,2)
Declare @Cantidad200115 decimal (14,2)
Select @Cantidad200111 = Year_2011 from Non_current_assets_Historic where IdCuenta ='7'
Select @Cantidad200112 = Year_2011 from Non_current_assets_Historic where IdCuenta ='8'
Select @Cantidad200113 = Year_2011 from Non_current_assets_Historic where IdCuenta ='9'
Select @Cantidad200114 = Year_2011 from Non_current_assets_Historic where IdCuenta ='10'
Select @Cantidad200115 = Year_2011 from Non_current_assets_Historic where IdCuenta ='11'
--SUMATORIO YEAR 2012
Declare @Cantidad200121 decimal (14,2)
Declare @Cantidad200122 decimal (14,2)
Declare @Cantidad200123 decimal (14,2)
Declare @Cantidad200124 decimal (14,2)
Declare @Cantidad200125 decimal (14,2)
Select @Cantidad200121 = Year_2012 from Non_current_assets_Historic where IdCuenta ='7'
Select @Cantidad200122 = Year_2012 from Non_current_assets_Historic where IdCuenta ='8'
Select @Cantidad200123 = Year_2012 from Non_current_assets_Historic where IdCuenta ='9'
Select @Cantidad200124 = Year_2012 from Non_current_assets_Historic where IdCuenta ='10'
Select @Cantidad200125 = Year_2012 from Non_current_assets_Historic where IdCuenta ='11'
--SUMATORIO YEAR 2013
Declare @Cantidad200131 decimal (14,2)
Declare @Cantidad200132 decimal (14,2)
Declare @Cantidad200133 decimal (14,2)
Declare @Cantidad200134 decimal (14,2)
Declare @Cantidad200135 decimal (14,2)
Select @Cantidad200131 = Year_2013 from Non_current_assets_Historic where IdCuenta ='7'
Select @Cantidad200132 = Year_2013 from Non_current_assets_Historic where IdCuenta ='8'
Select @Cantidad200133 = Year_2013 from Non_current_assets_Historic where IdCuenta ='9'
Select @Cantidad200134 = Year_2013 from Non_current_assets_Historic where IdCuenta ='10'
Select @Cantidad200135 = Year_2013 from Non_current_assets_Historic where IdCuenta ='11'
--SUMATORIO YEAR 2014
Declare @Cantidad200141 decimal (14,2)
Declare @Cantidad200142 decimal (14,2)
Declare @Cantidad200143 decimal (14,2)
Declare @Cantidad200144 decimal (14,2)
Declare @Cantidad200145 decimal (14,2)
Select @Cantidad200141 = Year_2014 from Non_current_assets_Historic where IdCuenta ='7'
Select @Cantidad200142 = Year_2014 from Non_current_assets_Historic where IdCuenta ='8'
Select @Cantidad200143 = Year_2014 from Non_current_assets_Historic where IdCuenta ='9'
Select @Cantidad200144 = Year_2014 from Non_current_assets_Historic where IdCuenta ='10'
Select @Cantidad200145 = Year_2014 from Non_current_assets_Historic where IdCuenta ='11'
--SUMATORIO DIF_2007_2006
Declare @DIF_2007_20061 decimal (14,2)
Declare @DIF_2007_20062 decimal (14,2)
Declare @DIF_2007_20063 decimal (14,2)
Declare @DIF_2007_20064 decimal (14,2)
Declare @DIF_2007_20065 decimal (14,2)
Select @DIF_2007_20061 = Dif_2007_2006 from Non_current_assets_Historic where IdCuenta ='7'
Select @DIF_2007_20062 = Dif_2007_2006 from Non_current_assets_Historic where IdCuenta ='8'
Select @DIF_2007_20063 = Dif_2007_2006 from Non_current_assets_Historic where IdCuenta ='9'
Select @DIF_2007_20064 = Dif_2007_2006 from Non_current_assets_Historic where IdCuenta ='10'
Select @DIF_2007_20065 = Dif_2007_2006 from Non_current_assets_Historic where IdCuenta ='11'
--SUMATORIO DIF_2008_2007
Declare @DIF_2008_20071 decimal (14,2)
Declare @DIF_2008_20072 decimal (14,2)
Declare @DIF_2008_20073 decimal (14,2)
Declare @DIF_2008_20074 decimal (14,2)
Declare @DIF_2008_20075 decimal (14,2)
Select @DIF_2008_20071 = Dif_2008_2007 from Non_current_assets_Historic where IdCuenta ='7'
Select @DIF_2008_20072 = Dif_2008_2007 from Non_current_assets_Historic where IdCuenta ='8'
Select @DIF_2008_20073 = Dif_2008_2007 from Non_current_assets_Historic where IdCuenta ='9'
Select @DIF_2008_20074 = Dif_2008_2007 from Non_current_assets_Historic where IdCuenta ='10'
Select @DIF_2008_20075 = Dif_2008_2007 from Non_current_assets_Historic where IdCuenta ='11'
--SUMATORIO DIF_2009_2008
Declare @DIF_2009_20081 decimal (14,2)
Declare @DIF_2009_20082 decimal (14,2)
Declare @DIF_2009_20083 decimal (14,2)
Declare @DIF_2009_20084 decimal (14,2)
Declare @DIF_2009_20085 decimal (14,2)
Select @DIF_2009_20081 = Dif_2009_2008 from Non_current_assets_Historic where IdCuenta ='7'
Select @DIF_2009_20082 = Dif_2009_2008 from Non_current_assets_Historic where IdCuenta ='8'
Select @DIF_2009_20083 = Dif_2009_2008 from Non_current_assets_Historic where IdCuenta ='9'
Select @DIF_2009_20084 = Dif_2009_2008 from Non_current_assets_Historic where IdCuenta ='10'
Select @DIF_2009_20085 = Dif_2009_2008 from Non_current_assets_Historic where IdCuenta ='11'
--SUMATORIO DIF_2010_2009
Declare @DIF_2010_20091 decimal (14,2)
Declare @DIF_2010_20092 decimal (14,2)
Declare @DIF_2010_20093 decimal (14,2)
Declare @DIF_2010_20094 decimal (14,2)
Declare @DIF_2010_20095 decimal (14,2)
Select @DIF_2010_20091 = Dif_2010_2009 from Non_current_assets_Historic where IdCuenta ='7'
Select @DIF_2010_20092 = Dif_2010_2009 from Non_current_assets_Historic where IdCuenta ='8'
Select @DIF_2010_20093 = Dif_2010_2009 from Non_current_assets_Historic where IdCuenta ='9'
Select @DIF_2010_20094 = Dif_2010_2009 from Non_current_assets_Historic where IdCuenta ='10'
Select @DIF_2010_20095 = Dif_2010_2009 from Non_current_assets_Historic where IdCuenta ='11'
--SUMATORIO DIF_2011_2010
Declare @DIF_2011_20101 decimal (14,2)
Declare @DIF_2011_20102 decimal (14,2)
Declare @DIF_2011_20103 decimal (14,2)
Declare @DIF_2011_20104 decimal (14,2)
Declare @DIF_2011_20105 decimal (14,2)
Select @DIF_2011_20101 = Dif_2011_2010 from Non_current_assets_Historic where IdCuenta ='7'
Select @DIF_2011_20102 = Dif_2011_2010 from Non_current_assets_Historic where IdCuenta ='8'
Select @DIF_2011_20103 = Dif_2011_2010 from Non_current_assets_Historic where IdCuenta ='9'
Select @DIF_2011_20104 = Dif_2011_2010 from Non_current_assets_Historic where IdCuenta ='10'
Select @DIF_2011_20105 = Dif_2011_2010 from Non_current_assets_Historic where IdCuenta ='11'
--SUMATORIO DIF_2012_2011
Declare @DIF_2012_20111 decimal (14,2)
Declare @DIF_2012_20112 decimal (14,2)
Declare @DIF_2012_20113 decimal (14,2)
Declare @DIF_2012_20114 decimal (14,2)
Declare @DIF_2012_20115 decimal (14,2)
Select @DIF_2012_20111 = Dif_2012_2011 from Non_current_assets_Historic where IdCuenta ='7'
Select @DIF_2012_20112 = Dif_2012_2011 from Non_current_assets_Historic where IdCuenta ='8'
Select @DIF_2012_20113 = Dif_2012_2011 from Non_current_assets_Historic where IdCuenta ='9'
Select @DIF_2012_20114 = Dif_2012_2011 from Non_current_assets_Historic where IdCuenta ='10'
Select @DIF_2012_20115 = Dif_2012_2011 from Non_current_assets_Historic where IdCuenta ='11'
--SUMATORIO DIF_2013_2012
Declare @DIF_2013_20121 decimal (14,2)
Declare @DIF_2013_20122 decimal (14,2)
Declare @DIF_2013_20123 decimal (14,2)
Declare @DIF_2013_20124 decimal (14,2)
Declare @DIF_2013_20125 decimal (14,2)
Select @DIF_2013_20121 = Dif_2013_2012 from Non_current_assets_Historic where IdCuenta ='7'
Select @DIF_2013_20122 = Dif_2013_2012 from Non_current_assets_Historic where IdCuenta ='8'
Select @DIF_2013_20123 = Dif_2013_2012 from Non_current_assets_Historic where IdCuenta ='9'
Select @DIF_2013_20124 = Dif_2013_2012 from Non_current_assets_Historic where IdCuenta ='10'
Select @DIF_2013_20125 = Dif_2013_2012 from Non_current_assets_Historic where IdCuenta ='11'
--SUMATORIO DIF_2014_2013
Declare @DIF_2014_20131 decimal (14,2)
Declare @DIF_2014_20132 decimal (14,2)
Declare @DIF_2014_20133 decimal (14,2)
Declare @DIF_2014_20134 decimal (14,2)
Declare @DIF_2014_20135 decimal (14,2)
Select @DIF_2014_20131 = Dif_2014_2013 from Non_current_assets_Historic where IdCuenta ='7'
Select @DIF_2014_20132 = Dif_2014_2013 from Non_current_assets_Historic where IdCuenta ='8'
Select @DIF_2014_20133 = Dif_2014_2013 from Non_current_assets_Historic where IdCuenta ='9'
Select @DIF_2014_20134 = Dif_2014_2013 from Non_current_assets_Historic where IdCuenta ='10'
Select @DIF_2014_20135 = Dif_2014_2013 from Non_current_assets_Historic where IdCuenta ='11'
insert into Non_current_assets_Historic (IdCuenta,NameCuenta,Year_2006 , Year_2007,Year_2008 ,Year_2009 ,Year_2010,Year_2011 ,Year_2012 ,Year_2013 ,
Year_2014,Dif_2007_2006,Dif_2008_2007, Dif_2009_2008, Dif_2010_2009,Dif_2011_2010,Dif_2012_2011,Dif_2013_2012,Dif_2014_2013,
AHP_2007_2006, AHP_2008_2007 , AHP_2009_2008, AHP_2010_2009, AHP_2011_2010, AHP_2012_2011 , AHP_2013_2012,AHP_2014_2013 )
Values (1, 'Non-current assets', NULL,NUll,NUll,NUll,NUll,NUll,NUll,NUll,NUll,NUll,NUll,NUll,NUll,NUll,NUll,NUll,NUll,NUll,NUll,NUll,NUll,NUll,NUll,NUll,NUll),
(19, '', NULL,NUll,NUll,NUll,NUll,NUll,NUll,NUll,NUll,NUll,NUll,NUll,NUll,NUll,NUll,NUll,NUll,NUll,NUll,NUll,NUll,NUll,NUll,NUll,NUll),
(20, 'Total Non-current assets',
--Year_2006
(@Cantidad20061 +@Cantidad20062 +@Cantidad20063 +@Cantidad20064 +@Cantidad20065),
--Year_2007
(@Cantidad20071+ @Cantidad20072 + @Cantidad20073+ @Cantidad20074+ @Cantidad20075),
--Year_2008
(@Cantidad20081 + @Cantidad20082 + @Cantidad20083 + @Cantidad20084 + @Cantidad20085),
--Year_2009
(@Cantidad20091 + @Cantidad20092 + @Cantidad20093+ @Cantidad20094 + @Cantidad20095),
--Year_2010
(@Cantidad200101 + @Cantidad200102 + @Cantidad200103 + @Cantidad200104 + @Cantidad200105),
--Year_2011
(@Cantidad200111 + @Cantidad200112 + @Cantidad200113 + @Cantidad200114 + @Cantidad200115),
--Year_2012
(@Cantidad200121 + @Cantidad200122 + @Cantidad200123 +@Cantidad200124 + @Cantidad200125),
--Year_2013
(@Cantidad200131 + @Cantidad200132 +@Cantidad200133 + @Cantidad200134 + @Cantidad200135),
--Year_2014
(@Cantidad200141 + @Cantidad200142 + @Cantidad200143 + @Cantidad200144 + @Cantidad200145),
--Diferencia Numeria 2007-2006
(@DIF_2007_20061 + @DIF_2007_20062 + @DIF_2007_20063 + @DIF_2007_20064 + @DIF_2007_20065),
--Diferencia Numeria 2008-2007
(@DIF_2008_20071 + @DIF_2008_20072 + @DIF_2008_20073 + @DIF_2008_20074 + @DIF_2008_20075),
--Diferencia Numeria 2009-2008
(@DIF_2009_20081 + @DIF_2009_20082 + @DIF_2009_20083 + @DIF_2009_20084 + @DIF_2009_20085 ),
--Diferencia Numeria 2010-2009
(@DIF_2010_20091 + @DIF_2010_20092 + @DIF_2010_20093 + @DIF_2010_20094 + @DIF_2010_20095),
--Diferencia Numeria 2011-2006
(@DIF_2011_20101 + @DIF_2011_20102 + @DIF_2011_20103 +@DIF_2011_20104 + @DIF_2011_20105 ),
--Diferencia Numeria 2012-2011
(@DIF_2012_20111+@DIF_2012_20112+@DIF_2012_20113+@DIF_2012_20114+@DIF_2012_20115),
--Diferencia Numeria 2013-2012
(@DIF_2013_20121 + @DIF_2013_20122 +@DIF_2013_20123 +@DIF_2013_20124 + @DIF_2013_20125),
--Diferencia Numeria 2014-2013
(@DIF_2014_20131+@DIF_2014_20132+@DIF_2014_20133+@DIF_2014_20134+@DIF_2014_20135),
--Diferencia Porcentual 2007-2006
(@DIF_2007_20061+@DIF_2007_20062+@DIF_2007_20063+@DIF_2007_20064+@DIF_2007_20065)/(@Cantidad20061 +@Cantidad20062 +@Cantidad20063 +@Cantidad20064 +@Cantidad20065),
--Diferencia Porcentual 2008-2007
(@DIF_2008_20071 + @DIF_2008_20072 + @DIF_2008_20073 + @DIF_2008_20074 + @DIF_2008_20075)/(@Cantidad20071+ @Cantidad20072 + @Cantidad20073+ @Cantidad20074+ @Cantidad20075),
--Diferencia Porcentual 2009-2008
(@DIF_2009_20081 + @DIF_2009_20082 + @DIF_2009_20083 + @DIF_2009_20084 + @DIF_2009_20085 )/(@Cantidad20081 + @Cantidad20082 + @Cantidad20083 + @Cantidad20084 + @Cantidad20085),
--Diferencia Porcentual 2010-2009
(@DIF_2010_20091 + @DIF_2010_20092 + @DIF_2010_20093 + @DIF_2010_20094 + @DIF_2010_20095)/(@Cantidad20091 + @Cantidad20092 + @Cantidad20093+ @Cantidad20094 + @Cantidad20095),
--Diferencia Porcentual 2011-2010
(@DIF_2011_20101 + @DIF_2011_20102 + @DIF_2011_20103 +@DIF_2011_20104 + @DIF_2011_20105)/(@Cantidad200101 + @Cantidad200102 + @Cantidad200103 + @Cantidad200104 + @Cantidad200105),
--Diferencia Porcentual 2012-2011
(@DIF_2012_20111+@DIF_2012_20112+@DIF_2012_20113+@DIF_2012_20114+@DIF_2012_20115)/(@Cantidad200111 + @Cantidad200112 + @Cantidad200113 + @Cantidad200114 + @Cantidad200115),
--Diferencia Porcentual 2013-2012
(@DIF_2013_20121 + @DIF_2013_20122 +@DIF_2013_20123 +@DIF_2013_20124 + @DIF_2013_20125)/(@Cantidad200121 + @Cantidad200122 + @Cantidad200123 +@Cantidad200124 + @Cantidad200125),
--Diferencia Porcentual 2014-2013
(@DIF_2014_20131+@DIF_2014_20132+@DIF_2014_20133+@DIF_2014_20134+@DIF_2014_20135)/(@Cantidad200131 + @Cantidad200132 +@Cantidad200133 + @Cantidad200134 + @Cantidad200135))
GO
SELECT IdCuenta ,NameCuenta ,Year_2006 ,Year_2007 ,Year_2008 ,Year_2009 ,Year_2010 ,Year_2011 ,Year_2012 , Year_2013 ,Year_2014
FROM Non_current_assets_Historic
Maybe the error is in the design
of this table
Regards
Francisco
I work with SQL 2014 Management Studio -
I've been following the
Field Engineer example project from the Windows Development Center to guide into mapping many-to-many relationships on my model. What's been bothering me is how to insert entries into many-to-many relationships.
Take my model as example:
An Organization can have many Users.
An User can belong to many Organizations.
My model class for User looks like this:
public class User
public User()
this.Organizations = new HashSet<Organization>();
public int Id { get; set; }
public string Email { get; set; }
public string Password { get; set; }
public string PasswordSalt { get; set; }
public string FirstName { get; set; }
public string LastName { get; set; }
public bool Active { get; set; }
public string Picture { get; set; }
public string PictureMimeType { get; set; }
public bool Confirmed { get; set; }
public string ConfirmationKey { get; set; }
[JsonIgnore]
public virtual ICollection<Organization> Organizations { get; set; }
My UserDTO class is this:
public class UserDTO : EntityData
public string Email { get; set; }
public string Password { get; set; }
public string PasswordSalt { get; set; }
public string FirstName { get; set; }
public string LastName { get; set; }
public bool Active { get; set; }
public string Picture { get; set; }
public string PictureMimeType { get; set; }
public bool Confirmed { get; set; }
public string ConfirmationKey { get; set; }
My Organization class:
public class Organization
public Organization()
this.Users = new List<User>();
public string Id { get; set; }
public string Title { get; set; }
public string LegalName { get; set; }
public string TaxReference { get; set; }
[JsonIgnore]
public virtual ICollection<User> Users { get; set; }
My OrganizationDTO class:
public class OrganizationDTO : EntityData
public string Title { get; set; }
public string LegalName { get; set; }
public string TaxReference { get; set; }
public virtual ICollection<UserDTO> Users { get; set; }
With those classes in mind I created the controller classes, I mapped the DTO and the Model classes using AutoMapper as follows:
cfg.CreateMap<Organization, OrganizationDTO>()
.ForMember(organizationDTO => organizationDTO.Id,
map => map.MapFrom(organization => MySqlFuncs.LTRIM(MySqlFuncs.StringConvert(organization.Id))))
.ForMember(organizationDTO => organizationDTO.Users,
map => map.MapFrom(organization => organization.Users));
cfg.CreateMap<OrganizationDTO, Organization>()
.ForMember(organization => organization.Id,
map => map.MapFrom(organizationDTO => MySqlFuncs.LongParse(organizationDTO.Id)))
.ForMember(organization => organization.Users,
map => map.Ignore());
Using Fluent API, I defined the relationship between these two entities using an EntityTypeConfiguration class like this:
public class UserEntityConfiguration : EntityTypeConfiguration<User>
public UserEntityConfiguration()
this.Property(u => u.Id).HasDatabaseGeneratedOption(DatabaseGeneratedOption.Identity);
this.HasMany<Organization>(u => u.Organizations).WithMany(o => o.Users).Map(uo =>
uo.MapLeftKey("UserId");
uo.MapRightKey("OrganizationId");
uo.ToTable("OrganizationsUsers");
I created a TableController class to handle UserDTO and OrganizationDTO, I have no problem inserting new Users or new Organizations, but the endpoints from each TableController class only allows me to add Users or Organizations individually as far as I understand.
To create an entry into the OrganizationsUser table, how can I achieve this?
I was thinking a PATCH request should be a way to do this, but is it the right way? Do I have to define a TableController for this? How can I expose the Insert, Update, Select and Delete operation for the elements in this relationship? What would be the JSON
to be sent to the endpoints?Hi,
if you accept lists to hold the LOV data, then here is an example : http://www.oracle.com/technetwork/developer-tools/adf/learnmore/index-101235.html#CodeCornerSamples --> sample 70
Frank -
Table updation with field name
Hi All,
There is a question running in my mind. If i am filling multiple data in a same text area then whether it will update the database table for that column or not. Lets take an example.
I have a workspace MTN, USERNAME: [email protected] and PASSWORD is tiyotim. In that i have an application made 41727. Under page 1 of ths application i have created few items in one region and a submit button.
If you see my database i have a table called CLUB which is having columns ID, NAME, CLASS, CLASS_ATTRIBUTE_NAME_1, CLASS_ATTRIBUTE_VALUE_1 etc. The table dont have any data as of now
In my application page when i am putting
ID as 1,
NAME as MARKETING,
CLASS as MARKET,
CLASS_ATTRIBUTE as NAME - COSMETIC
NAME - PEN
NAME - PAPER
When i press the GO button my CLUB table columns should update in this form
ID as 1,
NAME as MARKETING,
CLASS as MARKET,
CLASS_ATTRIBUTE_NAME_1 = NAME
NAME
NAME
CLASS_ATTRIBUTE_VALUE_1 = COSMETIC
PEN
PAPER
Would like to hear from you on all.
Thanks in advance.
RegardsHi Munky,
I understand what you are tried conveying me...but my question is not that. If you see my fields in the application you will find it is taking the database column and on basis of that it is updating the database columns. But for the field CLASS_ATTRIBUTE_NAME_1 which is the text area. If i write in the text area NAME- COSMETIC, it should update NAME data in the CLASS_ATTRIBUTE_NAME_1 column of database and COSMETIC data in the CLASS_ATTRIBUTE_VALUE_1.
Hope i made you able to understand what i am trying to ask.
Regards -
Icloud on pc renames my photostream pictures with weird names
Hi.
I have innstalled the icloud controlpanel on my computer. It automaticaly creates the folder icloud - pictures/Shared/my shared photostream. All my shared photos are automaticaly downloaded, but they have been renamed into something like this: 01a09427c8a7a0eb2ea1f2ff3e9622f48162c2e096.jpg
Does anyone now why ? And how to prevent this from happening ?
ArildMy photo stream is in iCloud, but only for 30 days. Let me explain a bit more about how my photo stream works. When you add a new photo on one of your devices, it is automatically upload to my photo stream (when you device is connected to wifi with the camera app closed and has at least 20% battery power remaining). At this point the photo is on the iCloud server, and will automatically download to your other devices/computers when they connect to wifi. However, it only remains there for 30 days, allowing your other devices/computers adequate time to connect and download the photo. After 30 days the photo is removed from the iCloud server but will remain on any devices/computers that have already downloaded it until deleted. Once it is removed from the iCloud server it cannot be downloaded to another device. Thus, if the older photos are only on your ATV, that's the only place at this point that you'll be able to delete them.
-
Can't access website with weird name
I can't access a website on my computer, neither can my friends (none of whom had tried before I asked them to). However, people elsewhere in the world (and presumably elsewhere in the US) can. The address is http://agro.biodiver.se . Thoughts?
mac ham wrote:
The address is http://agro.biodiver.se . Thoughts?
Yes... quite often DNS caches in the internet are not fully consistent, you could end up using 4 or 5 servers before reaching the originating server. By that, I mean the caches being updated as a flow-out from the originating DNS, all the way to the DNS you are using.
What happens when you try http://www.agro.biodiver.se ? -
How to create device IDs with same name
i am using SE 3310 and its creating different device ids for each node sharing it . since I will be building a RAC enviornment I need these IDs/name to be same .
for example on one node the lun id is /dev/rdsk/c3t0d0s6 but the same lun id on node 2 is /dev/rdsk/c2t0d0s6.
In past with an old storage array I fixed this issue by creating links in /dev/rdsk for c3t0d0s6 ---> c2t0d0s6.
my question is : is there a way in SE3310 that device ids get created with same name or do i still have to rely on creating these soft links ?
thanks
Note: since i need the answer to this quickly i will wait a while and then post this question in other forums and i will update the question here with the answer .This could be a Solaris (I presumed) O.S. question rather than SE3310 or storage question.
The logical device (/dev/[r]dsk/*) is the work of the O.S. when it first configures the device, in this case the LUN from your SE3310. I can go in depth on how the cX number happens (due to device probe order, driver differences, history of device discovery due to need of persistent device naming, etc...) but ... it's a really long story and is really quite irrelevant and most people should not be interested...
If you have COMPLETELY identical servers, i.e. identical hardware down to specific HBA in specific slot are the same, and if you make sure that luns are presented to all servers exactly the same way, same order, and any changes are seen by all servers in the same sequence, in theory, all /dev/rdsk/* devices will be consistent across servers.
But that's still rather irrelevant. Application that is designed to work in a redundant environment should not be dependent on logical devices like /dev/rdsk being the same.
So ... in effect this is also not a question for the Solaris forum, but rather a question for those familiar with RAC, how to configure such that device access is done "safely" through actually identifying the lun rather than assuming /dev/rdsk are consistent. -
How to create an instance of myClass with a name that is in a variable?
Hey Guys,
How can I create an instance of myClass with a name that is in a variable?
Normally a new instance is defined something like:
myClass myName = new myClass ();
I want to make a method which creates instances of a certain class (ie myClass) with names that are given to the method within its arguments.
So something like:
public void myMethod(String className) {
myClass value of className = new myClass();
So if className = "FirstName" then an instance of myClass should be created with the name "Firstname", like:
myClass Firstname = new Firstname;
Thanks.
JasperThanx for your reply's
If I understand the tutorial correctly I should do
something like this to start the map:
Map<String, myClass> myMAP = new HashMap<String,
MyClass>();
and something like this to add a new instance of the
class every time:
myMAP.put(myString, new myClass());
So this would result a link between the Strings and
the instance of the Class?
Thanks
Message was edited by:
JasperLevinkyep. the String is the key, and the MyClass instance is the value. to get the value out of the map, use map.get(key) -
Export tables with lowercase names
Has anyone ever done a table export on a table with a lower case name?
I have set up a parameter file with the entry:
tables=USER."table_name"
but I get a:
EXP-00011: USER."table_name" does not exist
The table DOES exist, and if I ever find the person who designed an entire schema with lower case table names I'll strangle him...
The syntax, with the double quotes, is what's shown in the Docs I have to hand.
Anyone?Yes, so have I. But they still translate to uppercase when the export actually happens.
I actually have a schema full of tables, all with lowercase names, and I can't export them explicitly.
I have tried it with 8.1.5 and 8.1.6 (Solaris).
I'll try it with 9i and 8.0.6 when I get the instances up, but I'd really like it if someone else could try this and tell me I'm hallucinating. (I'd like to see your parameter syntax too of course!)
BTW, if you do try experimenting with lowercase table names, be prepared for things like TOAD and some of the OEM software to screw up too.
Maybe you are looking for
-
HT1349 I cannot send email from IPhone 4. message server was rejected by server
This has happened before and all of a sudden the phone allows messages to be sent. Seems to be no rhyme or reason. I have re-entered my password and shut off phone. my provider is comcast. thanks
-
Code for capture digital data when change of state
Dear Sir, I had written a program to capture the digital data when it change of state. It work well when I check the check box "Lock file for faster access". But error occur when it unchecked. Because I need to open the tdm file at the vi running, th
-
Hi All, I am trying to use @RETURN function in one of the requirments and unfortunately it is not behaving as I expect out to be. My sample psuedo code is: FIX(A,B,C) "SomeAccount" if("Account%age" <> 1) <do some calc> else @RETURN("Percentage is not
-
ESSBASE PERM POSITIONS IN TORONTO
I currently require ESSBASE persons for permanent positions in Toronto. The position is with an insurance company and the pay is currently open. Please forward all resumes to [email protected] for further information.
-
What is "Other" content in Macintosh HD?
My Mac HD has 120 GB: Audio 9G, Photos 13G, Apps 9G, Other 52G. What does "Other" actually contains?