Hi Experts ,
I am trying to crerate a partitioned table across multiple hana instances(single table spread across different hana instances).
I am using below SQL for the same .
CREATECOLUMNTABLE"SYSTEM"."STOCK_TEST"
(
EXCHANGE VARCHAR(10),
STOCK VARCHAR(10),
DATEDATE,
PRICEOPEN DECIMAL(15,2),
PRICEHIGH DECIMAL(15,2),
PRICELOW DECIMAL(15,2),
PRICECLOSED DECIMAL(15,2),
STOCKVOLUME DECIMAL(15,0),
PRICECLOSEDADJ DECIMAL(15,2),
PRIMARYKEY("EXCHANGE","STOCK","DATE")
)
PARTITIONBY RANGE (year(DATE))
(
PARTITION 1970<=VALUES<1975,
PARTITION 1975<=VALUES<1980,
PARTITION 1980<=VALUES<1985,
PARTITION 1985<=VALUES<1990,
PARTITION 1990<=VALUES<1995,
PARTITION 1995<=VALUES<2000,
PARTITION 2000<=VALUES<2005,
PARTITION 2005<=VALUES<2010,
PARTITION OTHERS
)
AT LOCATION ('uvo1hx9jjjhi3s53mw4.vm.cld.sr:30015')
But It's giving the error message as below.
"SAP DBTech JDBC: [2048]: column store error: invalid service location;location=uvo1hx9jjjhi3s53mw4.vm.cld.sr:30015,object=SYSTEM:STOCK_TESTen "
Looks like some syntactical error at "AT LOCATION ('uvo1hx9jjjhi3s53mw4.vm.cld.sr:30015')".
If I removes the <at_location> tag rest of the query runs fine i.e I am able to create partitioned table in the same instance but problem occurs when I tries to split or partitionit across multiple instances.
I tried all possible combination like changing the quotes,putting {} braces instead of () but nothing worked..
Can anybody help me out in getting correct syntax..
Thanks in addvance...
Best Regards,
Gokul